Browse Source

合同支付,新增合同支付时order问题

MaiXinRong 2 years ago
parent
commit
edd93be21d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/pay.js

+ 1 - 1
app/service/pay.js

@@ -60,7 +60,7 @@ module.exports = app => {
         }
 
         async _getMaxOrder(tenderId) {
-            const sql = 'SELECT Max(??) As value FROM ?? Where tid = ' + tenderId;
+            const sql = 'SELECT Max(??) As value FROM ?? Where valid = 1 and tid = ' + tenderId;
             const sqlParam = ['order', this.tableName];
             const queryResult = await this.db.queryOne(sql, sqlParam);
             return queryResult.value;