Browse Source

添加材料调差内容到删除标段那

laiguoran 5 years ago
parent
commit
d2c5e72212
1 changed files with 7 additions and 0 deletions
  1. 7 0
      app/service/tender.js

+ 7 - 0
app/service/tender.js

@@ -283,6 +283,13 @@ module.exports = app => {
                 await transaction.delete(this.ctx.service.reviseBills.tableName, { tender_id: id });
                 await transaction.delete(this.ctx.service.revisePos.tableName, { tid: id });
 
+                await transaction.delete(this.ctx.service.material.tableName, { tid: id });
+                await transaction.delete(this.ctx.service.materialAudit.tableName, { tid: id });
+                await transaction.delete(this.ctx.service.materialBills.tableName, { tid: id });
+                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.signatureUsed.tableName, { tender_id: id });
                 await transaction.delete(this.ctx.service.signatureRole.tableName, { tender_id: id });
                 // 先删除附件文件