Browse Source

期删除进度数据删除

laiguoran 4 years ago
parent
commit
8ba97eedc0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/service/stage.js

+ 2 - 0
app/service/stage.js

@@ -547,6 +547,8 @@ module.exports = app => {
                 }
                 await transaction.delete(this.ctx.service.stageBonus.tableName, { sid: id });
                 await transaction.delete(this.ctx.service.stageOther.tableName, { sid: id });
+                // 同步删除进度里所选的期
+                await transaction.delete(this.ctx.service.scheduleStage.tableName, { tid: this.ctx.tender.id, order: stageInfo.order });
                 // 记录删除日志
                 await this.ctx.service.projectLog.addProjectLog(transaction, projectLogConst.type.stage, projectLogConst.status.delete, '第' + stageInfo.order + '期');
                 await transaction.commit();