Kaynağa Gözat

导入签约清单调整

MaiXinRong 4 yıl önce
ebeveyn
işleme
7fa1259bb5
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  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);