Commit 911e92ec13c073f985f61a73b6458abd0abad5c7
1 parent
72ebed6492
Exists in
master
and in
6 other branches
基层辅助建档接口
Showing 3 changed files with 62 additions and 14 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/AssistBuildController.java
View file @
911e92e
... | ... | @@ -54,16 +54,16 @@ |
54 | 54 | /** |
55 | 55 | * 更新密码 |
56 | 56 | * @param newPwd |
57 | - * @param userId | |
57 | + * @param phone | |
58 | 58 | * @param httpServletRequest |
59 | 59 | */ |
60 | 60 | @RequestMapping(value = "/updatePwd", method = RequestMethod.GET) |
61 | 61 | @ResponseBody |
62 | 62 | public BaseResponse updatePwd( |
63 | 63 | @RequestParam("newPwd") String newPwd, |
64 | - @RequestParam("userId") Integer userId, | |
64 | + @RequestParam("phone") String phone, | |
65 | 65 | HttpServletRequest httpServletRequest) { |
66 | - return assistBuildFacade.updatePwd(userId, newPwd); | |
66 | + return assistBuildFacade.updatePwd(phone, newPwd); | |
67 | 67 | |
68 | 68 | } |
69 | 69 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
View file @
911e92e
... | ... | @@ -2121,6 +2121,40 @@ |
2121 | 2121 | } |
2122 | 2122 | |
2123 | 2123 | |
2124 | + @RequestMapping(value="/lis/lpcs") | |
2125 | + @ResponseBody | |
2126 | + public Map<String,String> getLpLis(@RequestParam("vcCardNo")String vcCardNo){ | |
2127 | + Map<String,String> map = new HashMap<String,String>(); | |
2128 | + map.put("xhdb","1");//血红蛋白 | |
2129 | + map.put("bxbjs","2");//白细胞计数 | |
2130 | + map.put("xxbjs","3");//血小板计数 | |
2131 | + map.put("ndb","4");//尿蛋白 | |
2132 | + map.put("nt","5");//尿糖 | |
2133 | + map.put("ntt","6");//尿酮体 | |
2134 | + map.put("nqx","7");//尿潜血 | |
2135 | + map.put("xx","8");//血型 | |
2136 | + map.put("rhxx","yin");//RH血型 | |
2137 | + map.put("xt","1");//血糖 | |
2138 | + map.put("xqgbzam","1");//血清谷丙转氨酶 | |
2139 | + map.put("xqgczam","1");//血清谷草转氨酶 | |
2140 | + map.put("bdb","1");//白蛋白 | |
2141 | + map.put("zdhs","1");//总胆红素 | |
2142 | + map.put("bg","yin");//丙肝 | |
2143 | + map.put("ygbmky","yin");//乙肝表面抗原 | |
2144 | + map.put("ygbmkt","yin");//乙肝表面抗体 | |
2145 | + map.put("ygeky","yin");//乙肝E抗原 | |
2146 | + map.put("ygekt","yang");//乙肝E抗体 | |
2147 | + map.put("yghxkt","yang");//乙肝核心抗体 | |
2148 | + map.put("xqjg","1");//血清肌酐 | |
2149 | + map.put("xnsd","1");//血尿素氮 | |
2150 | + map.put("md","yin");//梅毒 | |
2151 | + map.put("hivkt","yin");//HIV抗体 | |
2152 | + map.put("ydqjd","5769ef930cf2d37f03479387");//阴道清洁度 | |
2153 | + map.put("xt1","1");//血糖1 | |
2154 | + map.put("xt2","2");//血糖2 | |
2155 | + map.put("xt3","3");//血糖3 | |
2156 | + return map; | |
2157 | + } | |
2124 | 2158 | |
2125 | 2159 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AssistBuildFacade.java
View file @
911e92e
... | ... | @@ -55,21 +55,35 @@ |
55 | 55 | return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功").setData(userModels); |
56 | 56 | } |
57 | 57 | |
58 | - public BaseResponse updatePwd(Integer userId, String newPwd) { | |
58 | + public BaseResponse updatePwd(String phone, String newPwd) { | |
59 | 59 | |
60 | - Map param = new HashMap<>(); | |
61 | - param.put("id", userId); | |
60 | + try { | |
61 | + Map map = new HashMap<>(); | |
62 | + map.put("phone",phone); | |
62 | 63 | |
63 | - List<AssistBuildUserModel> userModels = assistBuildService.queryAssistBuildUsers(param); | |
64 | - if (CollectionUtils.isNotEmpty(userModels)) | |
65 | - { | |
66 | - AssistBuildUserModel model = userModels.get(0); | |
64 | + List<AssistBuildUserModel> dbUsers = assistBuildService.queryAssistBuildUsers(map); | |
65 | + if (CollectionUtils.isNotEmpty(dbUsers)) | |
66 | + { | |
67 | + Map param = new HashMap<>(); | |
68 | + param.put("id", dbUsers.get(0).getId()); | |
67 | 69 | |
68 | - AssistBuildUserModel updateModel = new AssistBuildUserModel(); | |
69 | - updateModel.setId(model.getId()); | |
70 | - updateModel.setPassword(newPwd); | |
71 | - assistBuildService.updateAssistBuildUser(updateModel); | |
70 | + List<AssistBuildUserModel> userModels = assistBuildService.queryAssistBuildUsers(param); | |
71 | + if (CollectionUtils.isNotEmpty(userModels)) | |
72 | + { | |
73 | + AssistBuildUserModel model = userModels.get(0); | |
74 | + | |
75 | + AssistBuildUserModel updateModel = new AssistBuildUserModel(); | |
76 | + updateModel.setId(model.getId()); | |
77 | + updateModel.setPassword(newPwd); | |
78 | + assistBuildService.updateAssistBuildUser(updateModel); | |
79 | + } | |
80 | + } | |
72 | 81 | } |
82 | + catch (Exception e) | |
83 | + { | |
84 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.SYSTEM_ERROR).setErrormsg("失败"); | |
85 | + } | |
86 | + | |
73 | 87 | return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); |
74 | 88 | } |
75 | 89 |