| | |
| | | |
| | | @Override |
| | | public List<CountEntity> countVariousDataByPrj(String code) { |
| | | code = StringHelper.getRightLike(code); |
| | | code = StringUtils.isEmpty(code) || "ALL".equals(code) ? null : StringHelper.getRightLike(code); |
| | | return reportMapper.countVariousDataByPrj(code); |
| | | } |
| | | |
| | |
| | | |
| | | Map<String, String> textMap = new HashMap<>(); |
| | | if (!StringHelper.isEmpty(code)) { |
| | | textMap.put("title", dirService.selectNameByCode(code)); |
| | | textMap.put("title", "ALL".equals(code) ? "所有项目" : dirService.selectNameByCode(code)); |
| | | list.remove(list.size() - 1); |
| | | } |
| | | |
| | |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | if (!StringHelper.isEmpty(code)) { |
| | | map.put("title", dirService.selectNameByCode(code)); |
| | | map.put("title", "ALL".equals(code) ? "所有项目" : dirService.selectNameByCode(code)); |
| | | list.remove(list.size() - 1); |
| | | } |
| | | if (null != code) { |
| | | for (CountEntity ce : list) { |
| | | ce.setM2("count".equals(ce.getM2()) ? ce.getCount() + "个" : ("area".equals(ce.getM2()) ? ce.getM3() : ce.getLen() + "千米")); |
| | | } |