| | |
| | | import org.springblade.modules.system.entity.DictBiz; |
| | | import org.springblade.modules.system.service.IDictBizService; |
| | | import org.springblade.modules.task.dto.TaskPlaceSelfCheckDTO; |
| | | import org.springblade.modules.task.entity.TaskEntity; |
| | | import org.springblade.modules.task.entity.TaskPlaceRecordEntity; |
| | | import org.springblade.modules.task.entity.TaskPlaceSelfCheckEntity; |
| | | import org.springblade.modules.task.excel.TaskPlaceSelfCheckExcel; |
| | |
| | | isState.set(true); |
| | | } |
| | | } |
| | | if (taskPlaceSelfCheck.getTaskId() == null) { |
| | | if (StringUtils.isNotBlank(taskPlaceSelfCheck.getType()) && taskPlaceSelfCheck.getType().equals("2")) { |
| | | // 不存在隐患。状态直接为已审核 |
| | | if (!isState.get()) { |
| | |
| | | return false; |
| | | } |
| | | taskPlaceSelfCheck.setTaskId(restults); |
| | | } else { |
| | | iTaskService.update(Wrappers.<TaskEntity>lambdaUpdate() |
| | | .set(TaskEntity::getStatus, taskPlaceSelfCheck.getStatus()) |
| | | .eq(TaskEntity::getId, taskPlaceSelfCheck.getTaskId())); |
| | | } |
| | | |
| | | // 2.保存任务详情 |
| | | boolean save = save(taskPlaceSelfCheck); |
| | | boolean save = saveOrUpdate(taskPlaceSelfCheck); |
| | | if (save) { |
| | | // 3.保存题目记录 |
| | | taskPlaceRecordList.stream().forEach(item -> { |