Sfoglia il codice sorgente

Merge branch 'dev' of http://192.168.1.41:3000/maixinrong/Calculation into dev

laiguoran 3 anni fa
parent
commit
32624d46ed
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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();
             const transaction = await this.db.beginTransaction();
             try {
             try {
                 if (newChanges.length > 0) await transaction.insert(this.tableName, newChanges);
                 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 this.ctx.service.stagePos.updateChangeQuantity(transaction, pos, posQty);
                 await transaction.commit();
                 await transaction.commit();
             } catch (err) {
             } catch (err) {