瀏覽代碼

修复bug

laiguoran 4 年之前
父節點
當前提交
ead5dfb2db
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
         }
 
         /**