Преглед на файлове

导入签约清单调整

MaiXinRong преди 4 години
родител
ревизия
7fa1259bb5
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      app/controller/deal_bills_controller.js

+ 4 - 1
app/controller/deal_bills_controller.js

@@ -85,7 +85,10 @@ module.exports = app => {
                     }
                 }
 
-                const dealBills = await this.ctx.service.dealBills.getAllDataByCondition({ where: { tender_id: ctx.tender.id } });
+                const dealBills = await this.ctx.service.dealBills.getAllDataByCondition({
+                    where: { tender_id: ctx.tender.id },
+                    orders: [['order', 'asc']],
+                });
                 ctx.body = {err: 0, msg: '', data: dealBills};
             } catch (err) {
                 this.log(err);