|
@@ -324,7 +324,7 @@ module.exports = app => {
|
|
|
const newList = await transaction.query(sql2, sqlParam2);
|
|
|
// const newList = await transaction.select(this.tableName, { where: { cid: this.ctx.change.cid } });
|
|
|
for (const used of usedList) {
|
|
|
- const newone = this._.find(newList, { code: used.code, lid: used.lid, gcl_id: used.gcl_id, bwmx: used.bwmx });
|
|
|
+ const newone = this._.find(newList, { lid: used.lid, gcl_id: used.gcl_id, bwmx: used.bwmx, mx_id: used.mx_id });
|
|
|
if (newone) {
|
|
|
updateList.push({
|
|
|
row: {
|