Commit cb497de3c042de56d77220882156e9ef8c467e48

Authored by hanshaofeng
1 parent 1bf6e45900
Exists in master

add bar code process

Showing 2 changed files with 2 additions and 2 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AutoIncermentService.java View file @ cb497de
... ... @@ -21,7 +21,7 @@
21 21  
22 22 public String nextPatientTicketId() {
23 23 Integer id = patientTicketIdDao.nextId(Patients.class.getSimpleName());
24   - return String.format("%08d", id);
  24 + return String.format("%07d", id);
25 25 }
26 26  
27 27 }
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java View file @ cb497de
... ... @@ -260,7 +260,7 @@
260 260 ticket.setHospitalId(p.getHospitalId());
261 261 ticket.setPatientId(p.getId());
262 262 ticket.setCreated(new Date());
263   - ticket.setId("0335" + ticketPid + String.format("%02d", i));
  263 + ticket.setId("0335" + ticketPid + i);
264 264 patientCheckTicketService.addTicket(ticket);
265 265 }
266 266