| | |
| | | } |
| | | |
| | | @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(illegalBuildingParam, illegalBuilding); |
| | | illegalBuilding.setBaseCaseId(id); |
| | |
| | | //2.2查询处置流程环节配置 |
| | | Map mapWcs = new HashMap(); |
| | | mapWcs.put("workflowConfigId", ddlcId); |
| | | mapWcs.put("baseCaseId", ddlcId); |
| | | mapWcs.put("baseCaseId", baseCase.getId()); |
| | | List<WorkflowConfigStep> listWcs = workflowConfigStepMapper.selectRecordByWorkflowConfigStepId(mapWcs); |
| | | //处理用环节时间 |
| | | for (WorkflowConfigStep step : listWcs) { |
| | |
| | | continue; |
| | | } |
| | | for (DisposeRecord record : records) { |
| | | record.setLinkTime( |
| | | DateUtil.getDistanceDateTime( |
| | | DateUtil.fromLocalDateTime(baseCase.getAlarmTime()), |
| | | DateUtil.fromLocalDateTime(record.getCreateTime()))); |
| | | if (record != null&&record.getCreateTime()!=null) { |
| | | record.setLinkTime( |
| | | DateUtil.getDistanceDateTime( |
| | | DateUtil.fromLocalDateTime(baseCase.getAlarmTime()), |
| | | DateUtil.fromLocalDateTime(record.getCreateTime()))); |
| | | } |
| | | } |
| | | step.setDisposeRecords(records); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void endCase(Integer caseId, String result) { |
| | | public void endCase(Long caseId, String result) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | Integer state = 1; |
| | | String endCaseName = "结案"; |
| | |
| | | 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()); |