Explorar el Código

导入签约清单调整

MaiXinRong hace 4 años
padre
commit
7fa1259bb5
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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);