| | |
| | | import com.ycl.bo.AdminUserDetails; |
| | | import com.ycl.bo.casePool.CasePoolIllegalBuildingDO; |
| | | import com.ycl.bo.casePool.CasePoolViolationDO; |
| | | import com.ycl.common.constant.BaseCaseStatus; |
| | | import com.ycl.common.util.DateUtil; |
| | | import com.ycl.dto.casePool.IllegalBuildingParam; |
| | | import com.ycl.dto.casePool.ViolationParam; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Boolean saveViolationCase(ViolationParam violationParam, Integer id) { |
| | | public Boolean saveViolationCase(ViolationParam violationParam, Long id) { |
| | | Violations violations = new Violations(); |
| | | BeanUtils.copyProperties(violationParam, violations); |
| | | violations.setId(id); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Boolean saveIllegalBuildingCase(IllegalBuildingParam illegalBuildingParam, Integer id) { |
| | | public Boolean saveIllegalBuildingCase(IllegalBuildingParam illegalBuildingParam, Long id) { |
| | | IllegalBuilding illegalBuilding = new IllegalBuilding(); |
| | | BeanUtils.copyProperties(illegalBuilding, illegalBuildingParam); |
| | | BeanUtils.copyProperties(illegalBuildingParam, illegalBuilding); |
| | | illegalBuilding.setBaseCaseId(id); |
| | | Integer value = 1; |
| | | return illegalBuildingMapper.insert(illegalBuilding) == value ? true : false; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void endCase(Integer caseId, String result) { |
| | | public void endCase(Long caseId, String result) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | Integer endCaseState = 6; |
| | | Integer state = 2; |
| | | Integer state = 1; |
| | | String endCaseName = "结案"; |
| | | BaseCase baseCase = new BaseCase(); |
| | | baseCase.setState(endCaseState); |
| | | baseCase.setState(BaseCaseStatus.CLOSING_REGISTER); |
| | | baseCase.setId(caseId); |
| | | baseCaseMapper.updateById(baseCase); |
| | | DisposeRecord disposeRecord = new DisposeRecord(); |
| | |
| | | disposeRecord.setWorkflowConfigStepId(workflowConfigStepMapper |
| | | .selectOne(new LambdaQueryWrapper<WorkflowConfigStep>().eq(WorkflowConfigStep::getName, endCaseName)) |
| | | .getWorkflowConfigId()); |
| | | disposeRecord.setCreateUser(user.getUserId().intValue()); |
| | | disposeRecord.setCreateUser(user.getUserId().longValue()); |
| | | disposeRecord.setResult(result); |
| | | disposeRecord.setState(state); |
| | | disposeRecord.setCreateTime(LocalDateTime.now()); |