Commit c295b225e58c5c25d17b7b6ccce6757f267f9062
1 parent
9643daae5e
Exists in
master
and in
7 other branches
分娩作废产检劵
Showing 2 changed files with 17 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java
View file @
c295b22
| ... | ... | @@ -262,7 +262,7 @@ |
| 262 | 262 | patientCheckTicketQuery.setStatus(1); |
| 263 | 263 | patientCheckTicketQuery.setCreatedStart(pa.getLastMenses()); |
| 264 | 264 | patientCheckTicketQuery.setCreatedEnd(pa.getFmDate()); |
| 265 | - | |
| 265 | + patientCheckTicketQuery.setPid(pa.getPid()); | |
| 266 | 266 | PatientCheckTicket patientCheckTicket=new PatientCheckTicket(); |
| 267 | 267 | patientCheckTicket.setStatus(3); |
| 268 | 268 | patientCheckTicket.setConsumeHospitalId(hospitalId); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/StopPregnancyFacade.java
View file @
c295b22
| ... | ... | @@ -55,6 +55,8 @@ |
| 55 | 55 | private MatDeliverService matDeliverService; |
| 56 | 56 | @Autowired |
| 57 | 57 | private OrganizationGroupsFacade groupsFacade; |
| 58 | + @Autowired | |
| 59 | + private PatientCheckTicketService patientCheckTicketService; | |
| 58 | 60 | |
| 59 | 61 | /** |
| 60 | 62 | * 更新终止妊娠 |
| ... | ... | @@ -207,6 +209,20 @@ |
| 207 | 209 | model.setModified(new Date()); |
| 208 | 210 | |
| 209 | 211 | stopPregnancyService.addStopPreg(model); |
| 212 | + | |
| 213 | + //作废产检劵 | |
| 214 | + PatientCheckTicketQuery patientCheckTicketQuery=new PatientCheckTicketQuery(); | |
| 215 | + Patients pa=patientsService.findOnePatientById(pat.getId()); | |
| 216 | + patientCheckTicketQuery.setStatus(1); | |
| 217 | + patientCheckTicketQuery.setCreatedStart(pa.getLastMenses()); | |
| 218 | + patientCheckTicketQuery.setCreatedEnd(pa.getFmDate()); | |
| 219 | + patientCheckTicketQuery.setPid(pa.getPid()); | |
| 220 | + | |
| 221 | + PatientCheckTicket patientCheckTicket=new PatientCheckTicket(); | |
| 222 | + patientCheckTicket.setStatus(3); | |
| 223 | + patientCheckTicket.setConsumeHospitalId(autoMatchFacade.getHospitalId(userId)); | |
| 224 | + patientCheckTicketService.findAndModify(patientCheckTicketQuery,patientCheckTicket); | |
| 225 | + | |
| 210 | 226 | BaseResponse objectResponse = new BaseResponse(); |
| 211 | 227 | objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); |
| 212 | 228 | objectResponse.setErrormsg("成功"); |