| | |
| | | } |
| | | casePoolViolationVO.setCategory(dataDictionaryMapper.selectById(item.getCategoryId()).getName()); |
| | | casePoolViolationVO.setType(dataDictionaryMapper.selectById(item.getTypeId()).getName()); |
| | | casePoolViolationVO.setStreet(dataDictionaryMapper.selectById(item.getStreetId()).getName()); |
| | | return casePoolViolationVO; |
| | | }).collect(Collectors.toList()); |
| | | Page<CasePoolViolationVO> casePoolViolationVOPage = new Page<>(); |
| | |
| | | CasePoolIllegalBuildingVO casePoolIllegalBuildingVO = new CasePoolIllegalBuildingVO(); |
| | | BeanUtils.copyProperties(item, casePoolIllegalBuildingVO); |
| | | casePoolIllegalBuildingVO.setCategory(dataDictionaryMapper.selectById(item.getCategoryId()).getName()); |
| | | casePoolIllegalBuildingVO.setCommunity(dataDictionaryMapper.selectById(item.getCommunityId()).getName()); |
| | | return casePoolIllegalBuildingVO; |
| | | } |
| | | ).collect(Collectors.toList()); |
| | |
| | | if (baseCase == null) { |
| | | return null; |
| | | } |
| | | //查询案件违规信息 |
| | | if (baseCase.getCategory() == 1) { |
| | | Violations violations = violationsMapper.selectById(baseCase.getId()); |
| | | baseCase.setViolations(violations); |
| | | } else { |
| | | IllegalBuilding illegalBuilding = illegalBuildingMapper.selectById(baseCase.getId()); |
| | | baseCase.setIllegalBuilding(illegalBuilding); |
| | | } |
| | | bcd.setBaseCase(baseCase); |
| | | //案件相关信息 |
| | | //2.查询办理经过信息 |
| | | //2.1查询处置流程配置 |
| | | HandlePassVo handlePassVo = new HandlePassVo(); |
| | |
| | | //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); |
| | | } |