Commit 37c00178e9e5577e0e1a950f6b4f430ae852e2e4

Authored by jiangjiazhi
1 parent 960c6cb0ab

修改新电子病历

Showing 1 changed file with 3 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PostReviewController.java View file @ 37c0017
... ... @@ -90,11 +90,12 @@
90 90 @RequestMapping(method = RequestMethod.DELETE,value = "/postreview")
91 91 @ResponseBody
92 92 @TokenRequired
93   - public BaseResponse delPostReview(@RequestParam("id") String id) {
  93 + public BaseResponse delPostReview(@RequestParam("id") String id,HttpServletRequest request) {
94 94 if(StringUtils.isEmpty(id)){
95 95 return new BaseResponse().setErrorcode(ErrorCodeConstants.PARAMETER_ERROR).setErrormsg("id不能为空.");
96 96 }
97   - return postReviewFacade.updateOnePost(id);
  97 + LoginContext loginState = (LoginContext) request.getAttribute("loginContext");
  98 + return postReviewFacade.updateOnePost(id,loginState.getId());
98 99 }
99 100 }