|
@@ -170,6 +170,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="reason" column="reason"/>
|
|
<result property="reason" column="reason"/>
|
|
<result property="projectName" column="project_name"/>
|
|
<result property="projectName" column="project_name"/>
|
|
<result property="businessName" column="business_name"/>
|
|
<result property="businessName" column="business_name"/>
|
|
|
|
+ <result property="educationName" column="education_name"/>
|
|
<result property="sevenYear" column="seven_year"/>
|
|
<result property="sevenYear" column="seven_year"/>
|
|
<result property="orgId" column="org_id"/>
|
|
<result property="orgId" column="org_id"/>
|
|
|
|
|
|
@@ -594,6 +595,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
cgu.period_plush_msg,
|
|
cgu.period_plush_msg,
|
|
cgu.learn_status,
|
|
cgu.learn_status,
|
|
cgu.period_wait_time as end_time,
|
|
cgu.period_wait_time as end_time,
|
|
|
|
+ (case WHEN (select COUNT(uu.id) FROM user_update uu where cgu.user_id = uu.user_id and uu.status = 2) >0 then 1 ELSE 0 end) as user_status,
|
|
(SELECT COUNT(m.id) FROM course_menu_exam m LEFT JOIN goods_course c on m.course_id=c.course_id where c.goods_id=og.goods_id and m.type in (1,3) ) as exam_num,
|
|
(SELECT COUNT(m.id) FROM course_menu_exam m LEFT JOIN goods_course c on m.course_id=c.course_id where c.goods_id=og.goods_id and m.type in (1,3) ) as exam_num,
|
|
(SELECT COUNT(DISTINCT ubr.module_id,ubr.chapter_id,ubr.exam_id) FROM user_bank_record ubr where ubr.`status`=1 and ubr.type in (1,3) and ubr.user_id = u.user_id and ubr.grade_id = cgu.grade_id and ubr.order_goods_id = cgu.order_goods_id and ubr.report_status=1 and ubr.current_status = 1) as record_num,
|
|
(SELECT COUNT(DISTINCT ubr.module_id,ubr.chapter_id,ubr.exam_id) FROM user_bank_record ubr where ubr.`status`=1 and ubr.type in (1,3) and ubr.user_id = u.user_id and ubr.grade_id = cgu.grade_id and ubr.order_goods_id = cgu.order_goods_id and ubr.report_status=1 and ubr.current_status = 1) as record_num,
|
|
(og.study_count) as study_count,
|
|
(og.study_count) as study_count,
|
|
@@ -618,7 +620,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
ueg.do_number,
|
|
ueg.do_number,
|
|
ueg.expend_number,
|
|
ueg.expend_number,
|
|
ueg.expend_before,
|
|
ueg.expend_before,
|
|
- up.`status` as profile_status
|
|
|
|
|
|
+ up.`status` as profile_status,
|
|
|
|
+ cet.education_name
|
|
FROM
|
|
FROM
|
|
class_grade_user cgu
|
|
class_grade_user cgu
|
|
LEFT JOIN class_grade cg ON cgu.grade_id = cg.grade_id
|
|
LEFT JOIN class_grade cg ON cgu.grade_id = cg.grade_id
|
|
@@ -628,6 +631,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
LEFT JOIN major m ON g.major_id = m.id
|
|
LEFT JOIN major m ON g.major_id = m.id
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
|
|
+ LEFT JOIN course_education_type cet ON g.education_type_id = cet.id
|
|
LEFT JOIN user_exam_goods ueg ON ueg.order_goods_id = og.order_goods_id
|
|
LEFT JOIN user_exam_goods ueg ON ueg.order_goods_id = og.order_goods_id
|
|
LEFT JOIN user_profile up on cgu.order_goods_id = up.order_goods_id and up.type_status=1 and up.current_status = 1
|
|
LEFT JOIN user_profile up on cgu.order_goods_id = up.order_goods_id and up.type_status=1 and up.current_status = 1
|
|
where 1=1 and cgu.`status` = 1
|
|
where 1=1 and cgu.`status` = 1
|