活动:修改任务接口
This commit is contained in:
@@ -63,6 +63,12 @@ export default class UserOrder extends BaseModel {
|
||||
return result;
|
||||
}
|
||||
|
||||
//查询成功订单详情
|
||||
public static async findSuccessOrderByProductID(productID: string, roleId: string, activityId: number) {
|
||||
let result: UserOrderModelType[] = await UserOrderModel.find({ productID, roleId, activityId, state: ORDER_STATE.RESULT_SUCCESS }).lean(true);
|
||||
return result;
|
||||
}
|
||||
|
||||
//查询订单详情
|
||||
public static async findOrderByProductID(productID: string, roleId: string, activityId: number) {
|
||||
let result: UserOrderModelType[] = await UserOrderModel.find({ productID, roleId, activityId }).lean(true);
|
||||
|
||||
Reference in New Issue
Block a user