Commit 5a8a84b318835f440a20b20b4240034a86b5b1cb
1 parent
665149f33d
Exists in
master
and in
8 other branches
修改新电子病历
Showing 1 changed file with 5 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
5a8a84b
... | ... | @@ -435,8 +435,12 @@ |
435 | 435 | patientsQuery1.setBookbuildingDateEnd(new Date(listDate.get(i).getDate().getTime()+i)); |
436 | 436 | if (listDate.size() > i + 1) { |
437 | 437 | patientsQuery1.setBookbuildingDateStart(listDate.get(i + 1).getDate()); |
438 | - }else{ | |
438 | + }else if(list.size()>1){ | |
439 | 439 | patientsQuery1.setBookbuildingDateStart(new Date()); |
440 | + }else{ | |
441 | + Date end = patientsQuery1.getBookbuildingDateEnd(); | |
442 | + patientsQuery1.setBookbuildingDateEnd(new Date()); | |
443 | + patientsQuery1.setBookbuildingDateStart(end); | |
440 | 444 | } |
441 | 445 | pid=list.get(0).getPid(); |
442 | 446 | patientsQuery1.setPid(pid); |