| | |
| | | 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) { |
| | | Violations violations = violationsMapper.selectById(baseCase.getId()); |
| | | Map mapV = new HashMap(); |
| | | mapV.put("id", baseCase.getId()); |
| | | Violations violations = violationsMapper.selectCondMap(mapV); |
| | | baseCase.setViolations(violations); |
| | | } else { |
| | | IllegalBuilding illegalBuilding = illegalBuildingMapper.selectById(baseCase.getId()); |