拍卖行:分红数据的生成和计算

This commit is contained in:
liangtongchuan
2021-03-18 00:00:56 +08:00
parent 18c3e724e6
commit 0d478e25b9
7 changed files with 81 additions and 13 deletions
+2 -2
View File
@@ -56,8 +56,8 @@ export default class Lot extends BaseModel {
return result;
}
public static async findGuildLotsByTime(guildCode: string, time: Date) {
const results = await LotModel.find({ guildCode, createdAt: { $gte: time } }).select('-_id -__v').lean();
public static async findGuildLotsByTime(guildCode: string, sourceType: number, time: Date) {
const results = await LotModel.find({ guildCode, sourceType, createdAt: { $gte: time } }).select('-_id -__v').lean();
return results;
}
}