| | |
| | | } |
| | | 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()); |
| | |
| | | public BaseCaseDetail baseCaseDetail(String code) { |
| | | BaseCaseDetail bcd = new BaseCaseDetail(); |
| | | //1.查询案件基本信息 |
| | | QueryWrapper<BaseCase> wrapper = new QueryWrapper<>(); |
| | | wrapper.lambda().eq(BaseCase::getCode, code); |
| | | BaseCase baseCase = baseCaseMapper.selectOne(wrapper); |
| | | Map map = new HashMap(); |
| | | map.put("code", code); |
| | | BaseCase baseCase = baseCaseMapper.selectCondMap(map); |
| | | if (baseCase == null) { |
| | | return null; |
| | | } |
| | | //查询案件违规信息 |
| | | if (baseCase.getCategory() == 1) { |
| | | Map mapV = new HashMap(); |
| | | mapV.put("id", baseCase.getId()); |
| | | Violations violations = violationsMapper.selectCondMap(mapV); |
| | | baseCase.setViolations(violations); |
| | | } else { |
| | | IllegalBuilding illegalBuilding = illegalBuildingMapper.selectById(baseCase.getId()); |
| | | baseCase.setIllegalBuilding(illegalBuilding); |
| | | } |
| | | bcd.setBaseCase(baseCase); |
| | | //案件相关信息 |
| | | //2.查询办理经过信息 |
| | | //2.1查询处置流程配置 |
| | | HandlePassVo handlePassVo = new HandlePassVo(); |