소스 검색

变更令检查,增加排序

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]);
         }
     }