Commit fdc74d392d0c5685ed7cdfde95632c6fcf344dac
1 parent
bfb2354196
Exists in
master
and in
1 other branch
修改新电子病历
Showing 3 changed files with 4 additions and 4 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PatientsService.java
View file @
fdc74d3
| ... | ... | @@ -64,14 +64,14 @@ |
| 64 | 64 | return iPatientDao.queryPatient(mongoQuery); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - public List<Patients> queryPatient1(PatientsQuery patientsQuery) { | |
| 67 | + public List<Patients> queryPatient1(PatientsQuery patientsQuery,String field) { | |
| 68 | 68 | MongoQuery query = patientsQuery.convertToQuery(); |
| 69 | 69 | if (StringUtils.isNotEmpty(patientsQuery.getNeed())) { |
| 70 | 70 | patientsQuery.mysqlBuild(iPatientDao.queryPatientCount(patientsQuery.convertToQuery())); |
| 71 | 71 | query.start(patientsQuery.getOffset()).end(patientsQuery.getLimit()); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - return iPatientDao.queryPatient(query.addOrder(Sort.Direction.DESC, "created")); | |
| 74 | + return iPatientDao.queryPatient(query.addOrder(Sort.Direction.DESC, field)); | |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | public int queryPatientCount(PatientsQuery patientsQuery) { |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
fdc74d3
| ... | ... | @@ -572,7 +572,7 @@ |
| 572 | 572 | } |
| 573 | 573 | pid = list.get(0).getPid(); |
| 574 | 574 | patientsQuery1.setPid(pid); |
| 575 | - List<Patients> patientses = patientsService.queryPatient1(patientsQuery1); | |
| 575 | + List<Patients> patientses = patientsService.queryPatient1(patientsQuery1,"created"); | |
| 576 | 576 | if (CollectionUtils.isNotEmpty(patientses)) { |
| 577 | 577 | count=count+patientses.size(); |
| 578 | 578 | Iterator<Patients> iterator = patientses.iterator(); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java
View file @
fdc74d3
| ... | ... | @@ -227,7 +227,7 @@ |
| 227 | 227 | patientsQuery.setHospitalId(autoMatchFacade.getHospitalId(userId)); |
| 228 | 228 | patientsQuery.setNeed("1"); |
| 229 | 229 | //查询符合条件的孕妇 |
| 230 | - List<Patients> patientses = patientsService.queryPatient1(patientsQuery); | |
| 230 | + List<Patients> patientses = patientsService.queryPatient1(patientsQuery,"modified"); | |
| 231 | 231 | List data = new ArrayList<>(); |
| 232 | 232 | if (CollectionUtils.isNotEmpty(patientses)) { |
| 233 | 233 | //如果是查高危孕妇 |