|
@@ -596,7 +596,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
cgu.official_status_msg,
|
|
cgu.official_status_msg,
|
|
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,
|
|
(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,
|
|
@@ -616,7 +616,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
cgu.tenant_id as org_id,
|
|
cgu.tenant_id as org_id,
|
|
cb.business_name,
|
|
cb.business_name,
|
|
cpt.project_name,
|
|
cpt.project_name,
|
|
- (SELECT IFNULL(SUM(usr.study_duration),0) from user_study_record usr where usr.user_id = cgu.user_id and usr.grade_id = cgu.grade_id) as user_study_duration,
|
|
|
|
(SELECT count(*) from class_grade_user cgu where cgu.order_goods_id = og.order_goods_id) as use_study_count,
|
|
(SELECT count(*) from class_grade_user cgu where cgu.order_goods_id = og.order_goods_id) as use_study_count,
|
|
ueg.exam_number,
|
|
ueg.exam_number,
|
|
ueg.do_number,
|
|
ueg.do_number,
|
|
@@ -661,6 +660,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="studyCountMore != null and studyCountMore == 0 ">
|
|
<if test="studyCountMore != null and studyCountMore == 0 ">
|
|
AND og.study_count = 0
|
|
AND og.study_count = 0
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="periodStatus != null ">
|
|
|
|
+ AND cgu.period_status = #{periodStatus}
|
|
|
|
+ </if>
|
|
<if test="officialStatus != null and officialStatus == 1 ">
|
|
<if test="officialStatus != null and officialStatus == 1 ">
|
|
AND cgu.official_status = 1
|
|
AND cgu.official_status = 1
|
|
</if>
|
|
</if>
|
|
@@ -727,6 +729,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="hasInterface != null and hasInterface == 2">
|
|
<if test="hasInterface != null and hasInterface == 2">
|
|
AND cg.no_interface_account_id is not null
|
|
AND cg.no_interface_account_id is not null
|
|
</if>
|
|
</if>
|
|
|
|
+ order by cgu.id desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="listGradeInform" parameterType="com.zhongzheng.modules.grade.bo.ClassGradeQueryBo" resultMap="ClassGradeUserListVo">
|
|
<select id="listGradeInform" parameterType="com.zhongzheng.modules.grade.bo.ClassGradeQueryBo" resultMap="ClassGradeUserListVo">
|