Commit 0b2122a66e0e5d6334e541795bcea0e6e8dfdd3e

Authored by baohanddd
1 parent 0dba52a869

update assconfig table name

Showing 1 changed file with 6 additions and 3 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyHisService.java View file @ 0b2122a
... ... @@ -70,13 +70,16 @@
70 70  
71 71 for (LisReport report:list) {
72 72 patientsQuery.setVcCardNo(report.getVcCardNo());
73   - List<Patients> patientsList = patientsService.queryPatient(patientsQuery);
74   -
  73 + int count = patientsService.queryPatientCount(patientsQuery);
75 74 LisReportQuery lisReportQuery = new LisReportQuery();
76 75 lisReportQuery.setVcCardNo(report.getVcCardNo());
77 76 lisReportQuery.setHospitalId(""+hospitalId);
78 77 int reportCount = lisReportService.queryLisReportCount(lisReportQuery);
79   - if (patientsList != null && patientsList.size() > 0 && reportCount == 0) {
  78 + if (count > 0 && reportCount == 0) {
  79 + patientsQuery.setLimit(1);
  80 + patientsQuery.setPage(0);
  81 + patientsQuery.setNeed("y");
  82 + List<Patients> patientsList = patientsService.queryPatient(patientsQuery);
80 83 Patients patients = patientsList.get(0);
81 84 LisCrisisItem crisisItem = new LisCrisisItem();
82 85 crisisItem.setPhone(patients.getPhone());