|
@@ -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 } });
|