|
@@ -632,10 +632,7 @@ module.exports = app => {
|
|
|
// if (delList.length > 0) await transaction.delete(this.tableName, { id: delList });
|
|
|
// 新增工料清单关联
|
|
|
if (list.length > 0) {
|
|
|
- const result = await transaction.insert(this.tableName, list);
|
|
|
- if (result.affectedRows === 0) {
|
|
|
- throw '新增工料数据失败';
|
|
|
- }
|
|
|
+ await this.insertBigDatas(transaction, list);
|
|
|
}
|
|
|
if (listGcl.length > 0) {
|
|
|
const result2 = await transaction.insert(this.ctx.service.materialListGcl.tableName, listGcl);
|