|
@@ -240,7 +240,7 @@ module.exports = app => {
|
|
|
};
|
|
|
mbhList.push(newMbh);
|
|
|
}
|
|
|
- await transaction.insert(this.ctx.service.materialBillsHistory.tableName, mbhList);
|
|
|
+ if(mbhList.length !== 0) await transaction.insert(this.ctx.service.materialBillsHistory.tableName, mbhList);
|
|
|
|
|
|
const materialExponentData = await this.ctx.service.materialExponent.getAllDataByCondition({ where: { tid: this.ctx.tender.id } });
|
|
|
const mehList = [];
|