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

fix class filter bug

parent 84b21636
Pipeline #23253 passed with stage
in 3 seconds
...@@ -332,25 +332,25 @@ class ReportService extends Service { ...@@ -332,25 +332,25 @@ class ReportService extends Service {
if (v.column_type === 1) { // 课程字段 if (v.column_type === 1) { // 课程字段
switch (v.column) { switch (v.column) {
case 'filter_price': case 'filter_price':
where.filter_price = await this.getOptionValue(v); where.filter_price = ctx.isEmpty(where.filter_price) ? await this.getOptionValue(v) : Object.assign({}, where.filter_price, await this.getOptionValue(v));
break; break;
case 'price_type': case 'price_type':
where.price_type = await this.getOptionValue(v); where.price_type = ctx.isEmpty(where.price_type) ? await this.getOptionValue(v) : Object.assign({}, where.price_type, await this.getOptionValue(v));
break; break;
case 'mode': case 'mode':
where.mode = await this.getOptionValue(v); where.mode = ctx.isEmpty(where.mode) ? await this.getOptionValue(v) : Object.assign({}, where.mode, await this.getOptionValue(v));
break; break;
case 'time': case 'time':
where.time = await this.getOptionValue(v); where.time = ctx.isEmpty(where.time) ? await this.getOptionValue(v) : Object.assign({}, where.time, await this.getOptionValue(v));
break; break;
case 'class_amount': case 'class_amount':
where.class_amount = await this.getOptionValue(v); where.class_amount = ctx.isEmpty(where.class_amount) ? await this.getOptionValue(v) : Object.assign({}, where.class_amount, await this.getOptionValue(v));
break; break;
case 'multi_classes': case 'multi_classes':
where.multi_classes = await this.getOptionValue(v); where.multi_classes = ctx.isEmpty(where.multi_classes) ? await this.getOptionValue(v) : Object.assign({}, where.multi_classes, await this.getOptionValue(v));
break; break;
case 'cycle': case 'cycle':
where.cycle = await this.getOptionValue(v); where.cycle = ctx.isEmpty(where.cycle) ? await this.getOptionValue(v) : Object.assign({}, where.cycle, await this.getOptionValue(v));
break; break;
case 'type': case 'type':
tmpFilter = { where: { type_id: await this.getOptionValue(v), status: 1, is_deleted: 0 }, attributes: [ 'class_id' ] }; tmpFilter = { where: { type_id: await this.getOptionValue(v), status: 1, is_deleted: 0 }, attributes: [ 'class_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