Explorar el Código

期删除进度数据删除

laiguoran hace 4 años
padre
commit
8ba97eedc0
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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.stageBonus.tableName, { sid: id });
                 await transaction.delete(this.ctx.service.stageOther.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 this.ctx.service.projectLog.addProjectLog(transaction, projectLogConst.type.stage, projectLogConst.status.delete, '第' + stageInfo.order + '期');
                 await transaction.commit();
                 await transaction.commit();