|
@@ -33,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="people" column="people"/>
|
|
<result property="people" column="people"/>
|
|
<result property="businessName" column="business_name"/>
|
|
<result property="businessName" column="business_name"/>
|
|
<result property="subscribeId" column="subscribe_id"/>
|
|
<result property="subscribeId" column="subscribe_id"/>
|
|
|
|
+ <result property="applyNum" column="apply_num"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
@@ -159,7 +160,8 @@ 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 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 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 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.before_id = eb.before_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,
|
|
|
|
+ (SELECT COUNT(eba.apply_id) FROM exam_before_apply eba where eba.before_id = eb.before_id) as apply_num
|
|
FROM
|
|
FROM
|
|
exam_before eb
|
|
exam_before eb
|
|
LEFT JOIN exam_before_url ebu on eb.before_url=ebu.before_url_id
|
|
LEFT JOIN exam_before_url ebu on eb.before_url=ebu.before_url_id
|