Commit 9637594b authored by luzhuang's avatar luzhuang

未考试数

parent aebf5b1b
...@@ -212,9 +212,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> { ...@@ -212,9 +212,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
" and bl.del_flag != 1 AND bl.flag = 1 " + " and bl.del_flag != 1 AND bl.flag = 1 " +
" and blp.is_finish = 2 " + " and blp.is_finish = 2 " +
" and bl.release_state = 2 " + " and bl.release_state = 2 " +
" and bl.lesson_type = '0' " + " and bl.lesson_type = 0 " +
// " and bl.corp_id = #{corpId} "+
" and blp.person_id = #{userId}) lessonCount, " + " and blp.person_id = #{userId}) lessonCount, " +
...@@ -223,17 +221,12 @@ public interface SysUserMapper extends BaseMapper<SysUser> { ...@@ -223,17 +221,12 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
" where blp.del_flag != 1 AND blp.flag = 1 " + " where blp.del_flag != 1 AND blp.flag = 1 " +
" and bl.del_flag != 1 AND bl.flag = 1 " + " and bl.del_flag != 1 AND bl.flag = 1 " +
" and bl.release_state = 2 " + " and bl.release_state = 2 " +
" and blp.train_is_sign = 0" +
" and blp.person_id = #{userId}) trainCount, " + " and blp.person_id = #{userId}) trainCount, " +
" (select count(1) from " + "(SELECT (SELECT count(0) FROM tm_paper tp left join tm_paper_link_branch tpb on tpb.ln_pid = tp.p_id\n" +
" b_lesson_person blp left join b_lesson bl on blp.lesson_id = bl.business_id " + "where 1=1 and tpb.ln_buid = #{userId} and tp.p_endtime > now()) - " +
" where blp.del_flag != 1 AND blp.flag = 1 " + "(select count(0) from tm_examdata where e_uid = #{userId})) as notFinishedExam " +
" and bl.del_flag != 1 AND bl.flag = 1 " +
" and bl.lesson_type = '1' " +
// " and bl.corp_id = #{corpId} "+
" and blp.person_id = #{userId}) notFinishedExam " +
"</script>") "</script>")
MyInfoDTO queryMyLessonCount(CurUser curUser); MyInfoDTO queryMyLessonCount(CurUser curUser);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment