| | |
| | | |
| | | 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); |
| | | for (CountEntity ce : list) { |
| | | ce.setM2("count".equals(ce.getM2()) ? ce.getCount() + "个" : ("area".equals(ce.getM2()) ? ce.getM3() : ce.getLen() + "千米")); |
| | |
| | | from lf.sys_line_buffer |
| | | <where> |
| | | <if test="null != code"> |
| | | code like #{code}) |
| | | code like #{code} |
| | | </if> |
| | | </where> |
| | | ) |
| | | union all |
| | | (select '数字高程模型' "m1", 'area' "m2", 0 "count", cast( coalesce(sum(b.area), 0) as decimal(20, 2) ) "area", 0 "len" |
| | | from lf.sys_meta b inner join lf.sys_dir c on b.dircode = c.code |