|
@@ -15,7 +15,7 @@
|
|
|
<select id="statList" resultType="com.ym.mec.biz.dal.wrapper.StudentCoursewarePlayRecordWrapper$StatQueryData">
|
|
|
select o.id_ as organizationId
|
|
|
, o.name_ as organizationName
|
|
|
- , count(s.user_id_) as memberNum
|
|
|
+ , count(distinct s.user_id_) as memberNum
|
|
|
, (count(distinct s.user_id_) - count(distinct pr.user_id_)) as noPlayNum
|
|
|
, count(distinct if(10 * 60 >= pr.play_time_, pr.user_id_, null)) as playTimeLess10
|
|
|
, count(distinct if(pr.play_time_ > 10 * 60 and 60 * 60 >= pr.play_time_, pr.user_id_, null)) as playTimeLess60
|
|
@@ -39,7 +39,7 @@
|
|
|
select o.id_ as organizationId
|
|
|
, o.name_ as organizationName
|
|
|
, su2.username_ as teacherName
|
|
|
- , count(s.user_id_) as memberNum
|
|
|
+ , count(distinct s.user_id_) as memberNum
|
|
|
, (count(distinct s.user_id_) - count(distinct pr.user_id_)) as noPlayNum
|
|
|
, count(distinct if(10 * 60 >= pr.play_time_, pr.user_id_, null)) as playTimeLess10
|
|
|
, count(distinct if(pr.play_time_ > 10 * 60 and 60 * 60 >= pr.play_time_, pr.user_id_, null)) as playTimeLess60
|