瀏覽代碼

删除标段调整

laiguoran 5 年之前
父節點
當前提交
01801e3174
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/service/tender.js

+ 1 - 2
app/service/tender.js

@@ -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) {