Commit 20cfbe325fc9bbaedd4bb885edebf586683a2285
1 parent
014a519f45
Exists in
dev
#fix:优化孕产妇管理产检时间查询逻辑
Showing 1 changed file with 5 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java
View file @
20cfbe3
| ... | ... | @@ -750,11 +750,15 @@ |
| 750 | 750 | patientsQuery.setNextCheckTimeIs(true); |
| 751 | 751 | patientsQuery.setNextCheckTimeNe(false); |
| 752 | 752 | patientses = patientsService.queryPatientBySort(patientsQuery, "created","desc"); |
| 753 | - } else{ | |
| 753 | + } else if ("1".equals(riskPatientsQueryRequest.getYyzt())){ | |
| 754 | 754 | //获取有检查数据 |
| 755 | 755 | patientsQuery.setNextCheckTimeNe(true); |
| 756 | 756 | patientsQuery.setNextCheckTimeIs(false); |
| 757 | 757 | patientses = patientsService.queryPatientBySort(patientsQuery, "nextCheckTime","asc"); |
| 758 | + }else { | |
| 759 | + patientsQuery.setNextCheckTimeNe(false); | |
| 760 | + patientsQuery.setNextCheckTimeIs(false); | |
| 761 | + patientses = patientsService.queryPatientBySort(patientsQuery, "created","desc"); | |
| 758 | 762 | } |
| 759 | 763 | }else { |
| 760 | 764 | //这里排序参考RiskPatientsQueryRequest里面的sort和order字段逻辑 |