Commit 4c82647c6e16661524a4ecf00883e54186c65120
1 parent
4adb68bbe2
Exists in
master
and in
8 other branches
增加设置parentid
Showing 2 changed files with 9 additions and 3 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PatientsService.java
View file @
4c82647
... | ... | @@ -38,8 +38,6 @@ |
38 | 38 | private ISieveDao sieveDao; |
39 | 39 | @Autowired |
40 | 40 | private IAntenatalExaminationDao iAntenatalExaminationDao; |
41 | - @Autowired | |
42 | - private ISieveApplyOrderDao iSieveApplyOrderDao; | |
43 | 41 | |
44 | 42 | public Patients addPatient(Patients obj) { |
45 | 43 | return iPatientDao.addPatient(obj); |
46 | 44 | |
... | ... | @@ -58,7 +56,15 @@ |
58 | 56 | |
59 | 57 | return iPatientDao.queryPatient(query.addOrder(Sort.Direction.DESC, "id")); |
60 | 58 | } |
59 | + public List<Patients> queryPatient1(PatientsQuery patientsQuery) { | |
60 | + MongoQuery query = patientsQuery.convertToQuery(); | |
61 | + if (StringUtils.isNotEmpty(patientsQuery.getNeed())) { | |
62 | + patientsQuery.mysqlBuild(iPatientDao.queryPatientCount(patientsQuery.convertToQuery())); | |
63 | + query.start(patientsQuery.getOffset()).end(patientsQuery.getLimit()); | |
64 | + } | |
61 | 65 | |
66 | + return iPatientDao.queryPatient(query.addOrder(Sort.Direction.DESC, "modified")); | |
67 | + } | |
62 | 68 | |
63 | 69 | public int queryPatientCount(PatientsQuery patientsQuery) { |
64 | 70 | return iPatientDao.queryPatientCount(patientsQuery.convertToQuery()); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java
View file @
4c82647
... | ... | @@ -217,7 +217,7 @@ |
217 | 217 | patientsQuery.setHospitalId(autoMatchFacade.getHospitalId(userId)); |
218 | 218 | patientsQuery.setNeed("1"); |
219 | 219 | //查询符合条件的孕妇 |
220 | - List<Patients> patientses = patientsService.queryPatient(patientsQuery); | |
220 | + List<Patients> patientses = patientsService.queryPatient1(patientsQuery); | |
221 | 221 | List data = new ArrayList<>(); |
222 | 222 | if (CollectionUtils.isNotEmpty(patientses)) { |
223 | 223 | //如果是查高危孕妇 |