change 3 vuotta sitten
vanhempi
commit
96ef83e476

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/exam/ExamBeforeMapper.xml

@@ -107,7 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             (select cet.education_name FROM course_education_type cet where eb.education_type_id= cet.id) as education_name,
             (select cpt.project_name FROM course_project_type cpt where eb.project_id= cpt.id) as project_name,
             (select cb.business_name FROM course_business cb where eb.business_id= cb.id) as business_name,
-            (SELECT COUNT(us.apply_id) FROM user_subscribe us where us.apply_id = ea.apply_id and us.before_status = 1) as people
+            (SELECT COUNT(us.apply_id) FROM user_subscribe us where us.before_id = eb.before_id and us.before_status = 1) as people
         FROM
             exam_before eb
                 LEFT JOIN exam_before_url ebu on eb.before_url=ebu.before_url_id