MaiXinRong %!s(int64=3) %!d(string=hai) anos
pai
achega
1e33e93c5c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {