Commit 009874cca2c013f5d32a417348a4ef562e326c82
1 parent
72c701d5ef
Exists in
master
and in
1 other branch
增加统计
Showing 1 changed file with 12 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java
View file @
009874c
| ... | ... | @@ -1184,10 +1184,18 @@ |
| 1184 | 1184 | public BaseResponse cjStatisticsEnums(HttpServletRequest request){ |
| 1185 | 1185 | Map<String, Object> map = new HashMap<>(); |
| 1186 | 1186 | map.put("gwfz", basicConfigFacade.getBaseicConfigByParentId(SystemConfig.HIGH_RISK_ID)); |
| 1187 | - Map<Integer, Object> map1 = new HashMap<>(); | |
| 1188 | - map1.put(1,"已分娩"); | |
| 1189 | - map1.put(2,"未分娩"); | |
| 1190 | - map.put("status",map1); | |
| 1187 | + Map<String, Object> map1 = new HashMap<>(); | |
| 1188 | + map1.put("id",1); | |
| 1189 | + map1.put("name","已分娩"); | |
| 1190 | + | |
| 1191 | + Map<String, Object> map2 = new HashMap<>(); | |
| 1192 | + map2.put("id",2); | |
| 1193 | + map2.put("name","未分娩"); | |
| 1194 | + List list = new ArrayList(); | |
| 1195 | + list.add(map1); | |
| 1196 | + list.add(map2); | |
| 1197 | + | |
| 1198 | + map.put("status",list); | |
| 1191 | 1199 | return new BaseObjectResponse().setData(map).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); |
| 1192 | 1200 | } |
| 1193 | 1201 | } |