MaiXinRong 3 년 전
부모
커밋
1e33e93c5c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/stage_change.js

+ 1 - 1
app/service/stage_change.js

@@ -259,7 +259,7 @@ module.exports = app => {
             const transaction = await this.db.beginTransaction();
             try {
                 if (newChanges.length > 0) await transaction.insert(this.tableName, newChanges);
-                if (updateChanges.length > 0) await transaction.updateRows(this.tableName, c);
+                if (updateChanges.length > 0) await transaction.updateRows(this.tableName, updateChanges);
                 await this.ctx.service.stagePos.updateChangeQuantity(transaction, pos, posQty);
                 await transaction.commit();
             } catch (err) {