瀏覽代碼

变更令检查,增加排序

MaiXinRong 2 年之前
父節點
當前提交
71da2175b1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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]);
         }
     }