浏览代码

合同支付,新增合同支付时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;