瀏覽代碼

还原部分代码,该部分,未测试性能,待测试后再考虑是否使用

MaiXinRong 5 年之前
父節點
當前提交
ec383e089c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/service/stage_pos_final.js

+ 2 - 2
app/service/stage_pos_final.js

@@ -72,8 +72,8 @@ module.exports = app => {
                     c.qc_qty = this.ctx.helper.add(c.qc_qty, p.qc_qty);
                     pre.splice(pre.index(p), 1);
                 }
-                //await transaction.insert(this.tableName, cur);
-                await transaction.insert(this.tableName, cur.concat(pre));
+                await transaction.insert(this.tableName, cur);
+                //await transaction.insert(this.tableName, cur.concat(pre));
             } else {
                 const sql = 'Insert Into ??(tid, sid, lid, pid, sorder, contract_qty, qc_qty)' +
                             '  SELECT p.tid, p.sid, p.lid, p.pid, ? As `sorder`, p.contract_qty, p.qc_qty' +