Commit 0b0d0ead7ae81802ceda38e11d094dda3a09683a
1 parent
a513482e03
Exists in
master
and in
8 other branches
增加是否通知
Showing 2 changed files with 30 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PostReviewController.java
View file @
0b0d0ea
| ... | ... | @@ -70,5 +70,21 @@ |
| 70 | 70 | } |
| 71 | 71 | return postReviewFacade.findById(id); |
| 72 | 72 | } |
| 73 | + /** | |
| 74 | + * | |
| 75 | + * 查询产后复查对象 | |
| 76 | + * | |
| 77 | + * @param id | |
| 78 | + * | |
| 79 | + * @return | |
| 80 | + */ | |
| 81 | + @RequestMapping(method = RequestMethod.DELETE,value = "/postreview") | |
| 82 | + @ResponseBody | |
| 83 | + public BaseResponse delPostReview(@RequestParam("id") String id) { | |
| 84 | + if(StringUtils.isEmpty(id)){ | |
| 85 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.PARAMETER_ERROR).setErrormsg("id不能为空."); | |
| 86 | + } | |
| 87 | + return postReviewFacade.updateOnePost(id); | |
| 88 | + } | |
| 73 | 89 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PostReviewFacade.java
View file @
0b0d0ea
| ... | ... | @@ -82,7 +82,7 @@ |
| 82 | 82 | dueDate= list.get(0).getDueDate(); |
| 83 | 83 | |
| 84 | 84 | } |
| 85 | - postReviewListResult.convertToResult(postReviewModels, patientsList,dueDate); | |
| 85 | + postReviewListResult.convertToResult(postReviewModels, patientsList, dueDate); | |
| 86 | 86 | } |
| 87 | 87 | return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功").setData(postReviewListResult); |
| 88 | 88 | } |
| ... | ... | @@ -107,6 +107,19 @@ |
| 107 | 107 | } catch (Exception e) { |
| 108 | 108 | } |
| 109 | 109 | return new BaseObjectResponse().setData(postReviewResult).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); |
| 110 | + } | |
| 111 | + | |
| 112 | + /** | |
| 113 | + * 修改数据 | |
| 114 | + * @param id | |
| 115 | + * @return | |
| 116 | + */ | |
| 117 | + public BaseResponse updateOnePost(String id){ | |
| 118 | + PostReviewModel postReviewModel=new PostReviewModel(); | |
| 119 | + postReviewModel.setYn(YnEnums.NO.getId()); | |
| 120 | + postReviewModel.setId(id); | |
| 121 | + postReviewService.updatePostById(postReviewModel,id); | |
| 122 | + return new BaseResponse().setErrormsg("成功").setErrorcode(ErrorCodeConstants.SUCCESS); | |
| 110 | 123 | } |
| 111 | 124 | } |