拍卖行:已拍出的拍品不进入世界拍卖

This commit is contained in:
liangtongchuan
2021-03-24 16:53:12 +08:00
parent 4253a5f02a
commit 5290b257b8
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -123,6 +123,11 @@ export default class Lot extends BaseModel {
return results;
}
public static async updateUnSoldLotsStageByBegin(begin: Date, auctionStage: number) {
const results = await LotModel.updateMany({ begin, status: { $in: [LOT_STATUS.DEFAULT, LOT_STATUS.ING] } }, { auctionStage }).select('-_id -__v').lean();
return results;
}
public static async setLotSoldByBegin(begin: Date) {
const results = await LotModel.updateMany({ begin, status: LOT_STATUS.ING }, { status: LOT_STATUS.SOLD }).select('-_id -__v').lean();
return results;