Commit 0716cde46c4e0d1c0a7d9eb4681ee984a06eeafe
1 parent
766cb55279
Exists in
master
and in
6 other branches
听力转诊
Showing 1 changed file with 33 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/HighriskChangeHospitalController.java
View file @
0716cde
| ... | ... | @@ -17,10 +17,7 @@ |
| 17 | 17 | import org.springframework.web.bind.annotation.ResponseBody; |
| 18 | 18 | |
| 19 | 19 | import javax.servlet.http.HttpServletRequest; |
| 20 | -import java.util.Date; | |
| 21 | -import java.util.LinkedHashMap; | |
| 22 | -import java.util.List; | |
| 23 | -import java.util.Map; | |
| 20 | +import java.util.*; | |
| 24 | 21 | |
| 25 | 22 | /** |
| 26 | 23 | * @auther yangfei |
| ... | ... | @@ -34,6 +31,38 @@ |
| 34 | 31 | private HighriskChangeHospitalService highriskChangeHospitalService; |
| 35 | 32 | @Autowired |
| 36 | 33 | private AutoMatchFacade autoMatchFacade; |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + /** | |
| 38 | + * 听力转诊初始化数据 | |
| 39 | + * | |
| 40 | + * @param babyId 儿童档案ID | |
| 41 | + * @return | |
| 42 | + */ | |
| 43 | + @RequestMapping(method = RequestMethod.GET, value = "/initHighrChangeHosp") | |
| 44 | + @ResponseBody | |
| 45 | + public BaseResponse initHighrChangeHosp(String babyId, HttpServletRequest request){ | |
| 46 | + //根据babyId和当前医院id | |
| 47 | + //获取当前登录用户ID | |
| 48 | + LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
| 49 | + if (loginState == null) { | |
| 50 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.TOKEN_EXPIRE).setErrormsg("请重新登录"); | |
| 51 | + } | |
| 52 | + //医院id | |
| 53 | + String hospitalId = autoMatchFacade.getHospitalId(loginState.getId()); | |
| 54 | + | |
| 55 | + //根据医院ID和babyid查询听筛初筛第一条记录和复筛最后一条记录进行并集。前端显示 | |
| 56 | + Map<String,String> map = new HashMap<>(); | |
| 57 | + map.put("firstResu","未通过(左耳)"); | |
| 58 | + map.put("firstMethod","OAE/AABR"); | |
| 59 | + map.put("endResu","未通过(左耳)"); | |
| 60 | + map.put("endMethod","AABR"); | |
| 61 | + BaseResponse baseResp = new BaseResponse(); | |
| 62 | + baseResp.setObject(map); | |
| 63 | + return baseResp.setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("查询成功"); | |
| 64 | + } | |
| 65 | + | |
| 37 | 66 | |
| 38 | 67 | /** |
| 39 | 68 | * 导出听力转诊列表 |