Parcourir la source

修复变更bug

laiguoran il y a 4 ans
Parent
commit
db01b3c0b3
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/service/change_audit_list.js

+ 1 - 1
app/service/change_audit_list.js

@@ -230,7 +230,7 @@ module.exports = app => {
                 // 更新stage_change和stage_change_final的cbid
                 if (usedList.length > 0) {
                     const updateList = [];
-                    const sql2 = 'SELECT * FROM ?? WHERE `cid` = ? AND `lid` != 0';
+                    const sql2 = 'SELECT * FROM ?? WHERE `cid` = ? AND `lid` != "0"';
                     const sqlParam2 = [this.tableName, this.ctx.change.cid];
                     const newList = await transaction.query(sql2, sqlParam2);
                     // const newList = await transaction.select(this.tableName, { where: { cid: this.ctx.change.cid } });