Commit a479685897af7fcf3d6e800ce3c2851f5d2c6bfd
1 parent
ebd7fb5c1f
Exists in
master
and in
6 other branches
异常体重管理建档时间查询
Showing 1 changed file with 4 additions and 7 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java
View file @
a479685
| ... | ... | @@ -784,20 +784,17 @@ |
| 784 | 784 | } |
| 785 | 785 | |
| 786 | 786 | //根据建档时间查询 |
| 787 | - String bookbuildingDate=null; | |
| 788 | 787 | if (StringUtils.isNotEmpty(riskPatientsQueryRequest.getBookbuildingDate())) { |
| 789 | 788 | //根据建档时间查询整理传来的时间 |
| 790 | 789 | Date bookbuildingDateStart=null; |
| 791 | 790 | Date bookbuildingDateEnd=null; |
| 792 | - if (StringUtils.isNotEmpty(bookbuildingDate)) { | |
| 793 | - String[] dates = bookbuildingDate.split(" - "); | |
| 794 | - bookbuildingDateStart=DateUtil.parseYMD(dates[0]); | |
| 795 | - if (dates.length == 2) { | |
| 791 | + String[] dates = riskPatientsQueryRequest.getBookbuildingDate().split(" - "); | |
| 792 | + bookbuildingDateStart=DateUtil.parseYMD(dates[0]); | |
| 793 | + if (dates.length == 2) { | |
| 796 | 794 | bookbuildingDateEnd=new Date(DateUtil.parseYMD(dates[1]).getTime() + 24 * 60 * 60 * 1000 - 1); |
| 797 | - } | |
| 798 | 795 | } |
| 799 | 796 | //根据建档时间查询 拼查询语句 |
| 800 | - if(null!=bookbuildingDateStart&&null!=bookbuildingDateEnd){ | |
| 797 | + if(null!=bookbuildingDateStart && null!=bookbuildingDateEnd){ | |
| 801 | 798 | criteria=criteria.and("buildDate").gte(bookbuildingDateStart).lte(bookbuildingDateEnd); |
| 802 | 799 | }else { |
| 803 | 800 | if(null!=bookbuildingDateStart){ |