Commit 6ad83b3c017eb6769ce1b4d54ad7c4b25563b450
1 parent
024cf673b9
Exists in
master
and in
7 other branches
分娩作废产检劵
Showing 3 changed files with 4 additions and 4 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AutoIncermentService.java
View file @
6ad83b3
... | ... | @@ -19,8 +19,8 @@ |
19 | 19 | return patientTicketIdDao.nextId(cls.getSimpleName()); |
20 | 20 | } |
21 | 21 | |
22 | - public String nextPatientTicketId() { | |
23 | - Integer id = patientTicketIdDao.nextId(Patients.class.getSimpleName()); | |
22 | + public String nextPatientTicketId(String hospital) { | |
23 | + Integer id = patientTicketIdDao.nextId(hospital); | |
24 | 24 | return String.format("%07d", id); |
25 | 25 | } |
26 | 26 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
6ad83b3
... | ... | @@ -276,7 +276,7 @@ |
276 | 276 | } |
277 | 277 | if (null != areaCode) { |
278 | 278 | // 建档成功后,给孕妇造五个条形码 |
279 | - String ticketPid = autoIncermentService.nextPatientTicketId(); | |
279 | + String ticketPid = autoIncermentService.nextPatientTicketId(p.getHospitalId()); | |
280 | 280 | for (Integer i = 1; i <= 5; i++) { |
281 | 281 | PatientCheckTicket ticket = new PatientCheckTicket(); |
282 | 282 | ticket.setStatus(1); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientCheckTicketFacade.java
View file @
6ad83b3
... | ... | @@ -111,7 +111,7 @@ |
111 | 111 | } |
112 | 112 | if (null != areaCode) { |
113 | 113 | // 建档成功后,给孕妇造五个条形码 |
114 | - String ticketPid = autoIncermentService.nextPatientTicketId(); | |
114 | + String ticketPid = autoIncermentService.nextPatientTicketId(p.getHospitalId()); | |
115 | 115 | for (Integer i = 1; i <= 5; i++) { |
116 | 116 | PatientCheckTicket ticket = new PatientCheckTicket(); |
117 | 117 | ticket.setStatus(1); |