提交 85fe0d16 authored 作者: xyy's avatar xyy

feat(核查模块):

当市通过核查任务后,在市查看区的详情页中,要有“撤销”功能按钮,即使通过之后也可以撤回 市的自查也可以撤回
上级 bf1312ac
...@@ -1288,6 +1288,12 @@ public class DeviceCheckController { ...@@ -1288,6 +1288,12 @@ public class DeviceCheckController {
DeviceCheckStat dcs = statRepo.findById(fatherTask.getBillId()).get(); DeviceCheckStat dcs = statRepo.findById(fatherTask.getBillId()).get();
removeDetailFromDcs(currentDetail, dcs); removeDetailFromDcs(currentDetail, dcs);
//撤销时恢复市统计任务;
if(END.id.equals(fatherTask.getBillStatus())) {
fatherTask.setBillStatus(StatusEnum.CHECK_EXAM_STAT_1.id);
taskService.update(fatherTask);
}
return ResponseEntity.ok("回退成功!回滚该任务到初始状态,id = " + currentTask.getId()); return ResponseEntity.ok("回退成功!回滚该任务到初始状态,id = " + currentTask.getId());
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论