| | |
| | | accountService.setOrgIdsByAccount(parameters);
|
| | |
|
| | | List<Map<String, Object>> result = historyMapper.getRegionRankingData(parameters);
|
| | | |
| | | for (Map<String, Object> map : result) {
|
| | | if (ObjectUtils.isEmpty(map.get("avg"))) {
|
| | | map.put("avg", 0);
|
| | | }
|
| | | }
|
| | | if ("profession".equals(parameters.get("dimension"))) {
|
| | | List<Profession> professions = professionMapper.selectAll();
|
| | | for (Map<String, Object> map : result) {
|
| | | for (Profession profession : professions) {
|
| | | if (map.get("name").equals(profession.getName())) {
|
| | | professions.remove(profession);
|
| | | if (ObjectUtils.isEmpty(map.get("avg"))) {
|
| | | map.put("avg", 0);
|
| | | }
|
| | | // if (ObjectUtils.isEmpty(map.get("avg"))) {
|
| | | // map.put("avg", 0);
|
| | | // }
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | | for (Map<String, Object> map : result) {
|
| | | if (regions.contains(map.get("name"))) {
|
| | | regions.remove(map.get("name"));
|
| | | if (ObjectUtils.isEmpty(map.get("avg"))) {
|
| | | map.put("avg", 0);
|
| | | }
|
| | | // if (ObjectUtils.isEmpty(map.get("avg"))) {
|
| | | // map.put("avg", 0);
|
| | | // }
|
| | | }
|
| | |
|
| | | }
|