|
@@ -296,8 +296,6 @@ module.exports = app => {
|
|
|
await transaction.delete(this.ctx.service.materialBillsHistory.tableName, { tid: id });
|
|
|
await transaction.delete(this.ctx.service.materialList.tableName, { tid: id });
|
|
|
await transaction.delete(this.ctx.service.materialListNotjoin.tableName, { tid: id });
|
|
|
- await transaction.delete(this.ctx.service.materialFile.tableName, { tid: id });
|
|
|
-
|
|
|
await transaction.delete(this.ctx.service.signatureUsed.tableName, { tender_id: id });
|
|
|
await transaction.delete(this.ctx.service.signatureRole.tableName, { tender_id: id });
|
|
|
// 先删除附件文件
|
|
@@ -306,6 +304,7 @@ module.exports = app => {
|
|
|
attList.concat(newAttList);
|
|
|
await this.ctx.helper.delFiles(attList);
|
|
|
await transaction.delete(this.ctx.service.changeAtt.tableName, { tid: id });
|
|
|
+ await transaction.delete(this.ctx.service.materialFile.tableName, { tid: id });
|
|
|
await transaction.commit();
|
|
|
return true;
|
|
|
} catch (err) {
|