Commit accae54a8417b1ea9abb6d1fe663cb0a13b1d346

Authored by liquanyu
1 parent 9bb35f73c2

孕妇学校

Showing 1 changed file with 4 additions and 10 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/worker/CourseCountWorker.java View file @ accae54
... ... @@ -56,26 +56,20 @@
56 56 courseTypeQuery.setHospitalId(hospitalId);
57 57 courseTypeQuery.setYn(YnEnums.YES.getId());
58 58  
59   -
60   - PatientCourseQuery patientCourseQuery = new PatientCourseQuery();
61   - patientCourseQuery.setYn(YnEnums.YES.getId());
62   - patientCourseQuery.setHospitalId(hospitalId);
63   -
64 59 for (CourseModel courseModel : courseModelList)
65 60 {
66 61 Map<String,String> topmap = new HashMap();
67 62  
68 63 topmap.put("courseId",courseModel.getId());
69 64  
70   - patientCourseQuery.setCourseId(courseModel.getId());
71 65 topmap.put("title", courseModel.getCourseName());
72 66  
73   - patientCourseQuery.setStatus(1);
74   - int courseOrders = patientCourseService.queryPatientCourseCount(patientCourseQuery);
  67 + //int courseOrders = patientCourseService.queryPatientCourseCount(patientCourseQuery);
  68 + int courseOrders = courseModel.getEnrolmentNum() == null ? 0 : courseModel.getEnrolmentNum();
75 69 topmap.put("order", String.valueOf(courseOrders));
76 70  
77   - patientCourseQuery.setStatus(2);
78   - int courseSigns = patientCourseService.queryPatientCourseCount(patientCourseQuery);
  71 +// int courseSigns = patientCourseService.queryPatientCourseCount(patientCourseQuery);
  72 + int courseSigns = courseModel.getSignNum() == null ? 0 : courseModel.getSignNum();
79 73 topmap.put("courseSigns", String.valueOf(courseSigns));
80 74  
81 75 int courseSends = MessageCenterService.getCourseCountData(hospitalId, String.valueOf(SmsServiceEnums.YFXXKCTX.getId()), 3,