laiguoran 4 éve
szülő
commit
db01b3c0b3
1 módosított fájl, 1 hozzáadás és 1 törlés
  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 } });