Commit 72c701d5ef046a1e2215be716b5d37d2d37c8697
1 parent
b99204f06e
Exists in
master
and in
1 other branch
增加统计
Showing 1 changed file with 17 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java
View file @
72c701d
| ... | ... | @@ -4,11 +4,14 @@ |
| 4 | 4 | import com.lyms.platform.common.base.BaseController; |
| 5 | 5 | import com.lyms.platform.common.base.LoginContext; |
| 6 | 6 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
| 7 | +import com.lyms.platform.common.result.BaseObjectResponse; | |
| 7 | 8 | import com.lyms.platform.common.result.BaseResponse; |
| 8 | 9 | import com.lyms.platform.common.utils.DateUtil; |
| 9 | 10 | import com.lyms.platform.common.utils.JsonUtil; |
| 10 | 11 | import com.lyms.platform.common.utils.ResultUtils; |
| 12 | +import com.lyms.platform.common.utils.SystemConfig; | |
| 11 | 13 | import com.lyms.platform.operate.web.facade.AntExRecordFacade; |
| 14 | +import com.lyms.platform.operate.web.facade.BasicConfigFacade; | |
| 12 | 15 | import com.lyms.platform.operate.web.request.CjStatisticsQueryRequest; |
| 13 | 16 | import com.lymsh.platform.reportdata.model.AreaData; |
| 14 | 17 | import com.lymsh.platform.reportdata.model.AreaDataQuery; |
| ... | ... | @@ -37,6 +40,8 @@ |
| 37 | 40 | private StatisticsService statisticsService; |
| 38 | 41 | @Autowired |
| 39 | 42 | private AntExRecordFacade antExRecordFacade; |
| 43 | + @Autowired | |
| 44 | + private BasicConfigFacade basicConfigFacade; | |
| 40 | 45 | |
| 41 | 46 | |
| 42 | 47 | |
| ... | ... | @@ -1172,6 +1177,18 @@ |
| 1172 | 1177 | public BaseResponse cjStatistics(HttpServletRequest request,@Valid CjStatisticsQueryRequest statisticsQueryRequest){ |
| 1173 | 1178 | LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); |
| 1174 | 1179 | return antExRecordFacade.queryStatis(loginState.getId(),statisticsQueryRequest); |
| 1180 | + } | |
| 1181 | + @RequestMapping(value = "/cjStatistics/enums", method = RequestMethod.GET) | |
| 1182 | + @ResponseBody | |
| 1183 | + @TokenRequired | |
| 1184 | + public BaseResponse cjStatisticsEnums(HttpServletRequest request){ | |
| 1185 | + Map<String, Object> map = new HashMap<>(); | |
| 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); | |
| 1191 | + return new BaseObjectResponse().setData(map).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); | |
| 1175 | 1192 | } |
| 1176 | 1193 | } |