Commit 511f8b3aabe8d883d7503aa793c58b2e9942bddd
1 parent
8a0acba160
Exists in
master
and in
6 other branches
修改电子病历
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyCheckController.java
View file @
511f8b3
| ... | ... | @@ -40,11 +40,11 @@ |
| 40 | 40 | @ResponseBody |
| 41 | 41 | @TokenRequired |
| 42 | 42 | public BaseResponse addOrUpBabyCheck(@Valid @RequestBody BabyCheckRequest request,HttpServletRequest httpServletRequest) { |
| 43 | + LoginContext loginState = (LoginContext) httpServletRequest.getAttribute("loginContext"); | |
| 43 | 44 | if (request != null && !StringUtils.isEmpty(request.getId())) |
| 44 | 45 | { |
| 45 | - return babyCheckFacade.updateBabyCheck(request); | |
| 46 | + return babyCheckFacade.updateBabyCheck(request,loginState.getId()); | |
| 46 | 47 | } |
| 47 | - LoginContext loginState = (LoginContext) httpServletRequest.getAttribute("loginContext"); | |
| 48 | 48 | return babyCheckFacade.addBabyCheck(request,loginState.getId()); |
| 49 | 49 | } |
| 50 | 50 |