Browse Source

修复bug

laiguoran 4 years atrás
parent
commit
ead5dfb2db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/stage_change_final.js

+ 1 - 1
app/service/stage_change_final.js

@@ -62,7 +62,7 @@ module.exports = app => {
                     qty: c.qty,
                 });
             }
-            await transaction.insert(this.tableName, data);
+            if (data.length > 0) await transaction.insert(this.tableName, data);
         }
 
         /**