拍卖行:分红时间问题修改
This commit is contained in:
@@ -46,18 +46,18 @@ export default class Dividend extends BaseModel {
|
||||
return result;
|
||||
}
|
||||
|
||||
public static async findWorldDividendsByBegin(serverId: number, begin: Date) {
|
||||
const results = await DividendModel.find({ serverId, begin }).select('-_id -__v').lean();
|
||||
public static async findWorldDividendsByBegin(serverId: number, begins: Date[]) {
|
||||
const results = await DividendModel.find({ serverId, begin: { $in: begins } }).select('-_id -__v').lean();
|
||||
return results;
|
||||
}
|
||||
|
||||
public static async findGuildDividendsByBegin(guildCode: string, begin: Date) {
|
||||
const results = await DividendModel.find({ guildCode, begin }).select('-_id -__v').lean();
|
||||
public static async findGuildDividendsByBegin(guildCode: string, begins: Date[]) {
|
||||
const results = await DividendModel.find({ guildCode, begin: { $in: begins } }).select('-_id -__v').lean();
|
||||
return results;
|
||||
}
|
||||
|
||||
public static async findDividendByRoleAndBegin(roleId: string, begin: Date) {
|
||||
const results = await DividendModel.find({ 'dividends.roleId': roleId, begin }).select('-_id -__v').lean();
|
||||
public static async findDividendByRoleAndBegin(roleId: string, begins: Date[]) {
|
||||
const results = await DividendModel.find({ 'dividends.roleId': roleId, begin: { $in: begins } }).select('-_id -__v').lean();
|
||||
return results;
|
||||
}
|
||||
public static async findDividendsByBegin(begin: Date) {
|
||||
|
||||
Reference in New Issue
Block a user