|
@@ -194,6 +194,8 @@ module.exports = app => {
|
|
|
ex_calc: JSON.stringify(ex_calc),
|
|
|
};
|
|
|
await transaction.update(this.tableName, updateMaterialData);
|
|
|
+ // 删除material_list表冗余数据,减少表数据量
|
|
|
+ await transaction.delete(this.ctx.service.materialList.tableName, { tid: this.ctx.tender.id, gather_qty: null });
|
|
|
}
|
|
|
|
|
|
await transaction.commit();
|