|
@@ -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' +
|