Browse Source

变更令检查,增加排序

MaiXinRong 2 years ago
parent
commit
71da2175b1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/change.js

+ 1 - 1
app/service/change.js

@@ -1692,7 +1692,7 @@ module.exports = app => {
         }
 
         async getAllChangeHasMinus(tenderId) {
-            const sql = `SELECT * FROM ${this.tableName} WHERE tid = ? and negative_tp < 0`;
+            const sql = `SELECT * FROM ${this.tableName} WHERE tid = ? AND negative_tp < 0 ORDER BY code asc`;
             return this.db.query(sql, [tenderId]);
         }
     }