|
@@ -4,11 +4,19 @@
|
|
|
<mapper namespace="com.yonge.cooleshow.biz.dal.dao.HomeDao">
|
|
|
<select id="getUserToDoNum" resultType="com.yonge.cooleshow.biz.dal.vo.res.HomeUserToDoNum">
|
|
|
select
|
|
|
- (select count(1) from teacher_auth_entry_record where teacher_auth_status_ = 'DOING') as entryNum,
|
|
|
- (select count(1) from teacher_auth_musician_record where teacher_auth_status_ = 'DOING') as musicianNum,
|
|
|
- (select count(1) from music_sheet where del_flag_ = 0 and audit_status_ = 'DOING') as musicNum,
|
|
|
+ (select count(1) from teacher_auth_entry_record a
|
|
|
+ left join sys_user u on a.user_id_ = u.id_
|
|
|
+ where u.del_flag_ =0 and a.teacher_auth_status_ = 'DOING') as entryNum,
|
|
|
+ (select count(1) from teacher_auth_musician_record a
|
|
|
+ left join sys_user u on a.user_id_ = u.id_
|
|
|
+ where u.del_flag_ =0 and a.teacher_auth_status_ = 'DOING') as musicianNum,
|
|
|
+ (select count(1) from music_sheet a
|
|
|
+ left join sys_user u on a.user_id_ = u.id_
|
|
|
+ where u.del_flag_ =0 and a.del_flag_ = 0 and a.audit_status_ = 'DOING') as musicNum,
|
|
|
(select count(1) from video_lesson_auth_record where audit_status_ = 'DOING') as videoCourseNum,
|
|
|
- (select count(1) from teacher_style_video where del_flag_ = 0 and auth_status_ = 'DOING') as styleNum
|
|
|
+ (select count(1) from teacher_style_video a
|
|
|
+ left join sys_user u on a.user_id_ = u.id_
|
|
|
+ where u.del_flag_ =0 and a.del_flag_ = 0 and a.auth_status_ = 'DOING') as styleNum
|
|
|
from dual
|
|
|
</select>
|
|
|
|