MaiXinRong před 3 roky
rodič
revize
1e33e93c5c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {