Commit a65e426a authored by 任国军's avatar 任国军

back add act

parent 19862e17
Pipeline #27812 passed with stage
in 4 seconds
...@@ -88,7 +88,7 @@ class BackService extends Service { ...@@ -88,7 +88,7 @@ class BackService extends Service {
ctx.failed('用户异常'); ctx.failed('用户异常');
} }
const filter = { where: { type: 1, status: 1, is_deleted: 0 }, limit, offset, attributes: [ 'id', 'order_no', 'class_id', 'pay', 'pay_time', 'redeem', 'address', 'columns' ], order: [[ 'pay_time', 'desc' ]] }; const filter = { where: { type: { $or: [ 1, 3 ] }, status: 1, is_deleted: 0 }, limit, offset, attributes: [ 'id', 'order_no', 'class_id', 'pay', 'pay_time', 'redeem', 'address', 'columns' ], order: [[ 'pay_time', 'desc' ]] };
let filterClassIds = []; let filterClassIds = [];
if (!ctx.isEmpty(input.class_name)) { if (!ctx.isEmpty(input.class_name)) {
const classList = await ctx.classModel.V5.CourseV5Class.findAll({ where: { name: { $like: `%${input.class_name}%` } }, attributes: [ 'id' ] }); const classList = await ctx.classModel.V5.CourseV5Class.findAll({ where: { name: { $like: `%${input.class_name}%` } }, attributes: [ 'id' ] });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment