Explorar o código

变更概况界面,排序

MaiXinRong %!s(int64=3) %!d(string=hai) anos
pai
achega
c538a8fe5a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/service/stage_change.js

+ 2 - 1
app/service/stage_change.js

@@ -444,7 +444,8 @@ module.exports = app => {
 
         async getChangeWithUsedInfo(stage) {
             const change = await this.ctx.service.change.getAllDataByCondition({
-                where: { tid: stage.tid, status: audit.flow.status.checked }
+                where: { tid: stage.tid, status: audit.flow.status.checked },
+                orders: [['code', 'asc']],
             });
             if (change.length === 0) return [];