Преглед на файлове

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

MaiXinRong преди 2 години
родител
ревизия
edd93be21d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;