Commit 10db54a18e06cda770225f2ee0a13f572ccc5d3f
1 parent
06ceada729
Exists in
master
and in
6 other branches
出院
Showing 2 changed files with 18 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PatientRegistrationController.java
View file @
10db54a
| ... | ... | @@ -81,6 +81,12 @@ |
| 81 | 81 | return patientRegistrationFacade.queryPatientRegistrationEdit(id); |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | + @RequestMapping(value = "/updatePatientRegistrationStatus/{id}", method = RequestMethod.GET) | |
| 85 | + @ResponseBody | |
| 86 | + public BaseResponse updatePatientRegistrationStatus(@PathVariable("id") String id) { | |
| 87 | + return patientRegistrationFacade.updatePatientRegistrationStatus(id); | |
| 88 | + } | |
| 89 | + | |
| 84 | 90 | /** |
| 85 | 91 | * 查询单人所有记录 |
| 86 | 92 | * @param |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientRegistrationFacade.java
View file @
10db54a
| ... | ... | @@ -134,7 +134,7 @@ |
| 134 | 134 | |
| 135 | 135 | String bedType = model.getBedType() == null ? "" : (model.getBedType() == 1 ? "LDRP(家庭化产房)" : |
| 136 | 136 | (model.getBedType() == 2 ? "普通房间(产前)+单人分娩产房+单间(产后)" : "普通房间(产前+产后)")); |
| 137 | - String content = "您已成功预约"+bedType+",预约日期为:"+DateUtil.getyyyy_MM_dd(model.getOrderDate())+",请保存本条短信后期作为预约成功凭证。"; | |
| 137 | + String content = "您已成功预约"+bedType+",预约入住日期:"+DateUtil.getyyyy_MM_dd(model.getOrderDate())+",请保存本条短信后期作为预约成功凭证。"; | |
| 138 | 138 | |
| 139 | 139 | mr.setFirst("【秦皇岛市妇幼保健院】" + content); |
| 140 | 140 | mr.setObjType(ServiceObjEnums.YUNOBJ.getId()); |
| ... | ... | @@ -375,6 +375,16 @@ |
| 375 | 375 | cnames.put("createDate", "登记时间"); |
| 376 | 376 | } |
| 377 | 377 | |
| 378 | - | |
| 378 | + public BaseResponse updatePatientRegistrationStatus(String id) { | |
| 379 | + BaseObjectResponse br = new BaseObjectResponse(); | |
| 380 | + if (StringUtils.isNotEmpty(id)) { | |
| 381 | + PatientRegistrationModel model = patientRegistrationService.queryById(id); | |
| 382 | + model.setOutType(2); | |
| 383 | + patientRegistrationService.update(model,model.getId()); | |
| 384 | + br.setErrorcode(ErrorCodeConstants.SUCCESS); | |
| 385 | + br.setErrormsg("成功"); | |
| 386 | + } | |
| 387 | + return br; | |
| 388 | + } | |
| 379 | 389 | } |