|
@@ -66,8 +66,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<select id="selectQwWatchLogAllStatisticsListVONew"
|
|
<select id="selectQwWatchLogAllStatisticsListVONew"
|
|
resultType="com.fs.qw.vo.QwWatchLogAllStatisticsListVO">
|
|
resultType="com.fs.qw.vo.QwWatchLogAllStatisticsListVO">
|
|
select
|
|
select
|
|
- any_value(company_id),
|
|
|
|
- any_value(company_user_id),
|
|
|
|
|
|
+ any_value(company_id) as company_id,
|
|
|
|
+ company_user_id,
|
|
COUNT(CASE WHEN day = 0 and status in (1,2) THEN 1 END) AS firstOnline,
|
|
COUNT(CASE WHEN day = 0 and status in (1,2) THEN 1 END) AS firstOnline,
|
|
COUNT(CASE WHEN day = 0 and status=2 THEN 1 END) AS firstOver,
|
|
COUNT(CASE WHEN day = 0 and status=2 THEN 1 END) AS firstOver,
|
|
COUNT(CASE WHEN day = 1 and status in (1,2) THEN 1 END) AS d1Online,
|
|
COUNT(CASE WHEN day = 1 and status in (1,2) THEN 1 END) AS d1Online,
|
|
@@ -148,7 +148,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="videoId != null">
|
|
<if test="videoId != null">
|
|
and video_id =#{videoId}
|
|
and video_id =#{videoId}
|
|
</if>
|
|
</if>
|
|
- and DATE(line_time) between #{sDate} AND #{eDate} group by project,course_id,video_id
|
|
|
|
|
|
+ and DATE(line_time) between #{sDate} AND #{eDate} group by project,course_id,video_id,company_user_id
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
<select id="selectQwWatchLogByCompanyUserIdCount" resultType="java.lang.Long">
|
|
<select id="selectQwWatchLogByCompanyUserIdCount" resultType="java.lang.Long">
|
|
@@ -174,7 +174,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</if>
|
|
</if>
|
|
and DATE(line_time) between #{sTime} and #{dTime}
|
|
and DATE(line_time) between #{sTime} and #{dTime}
|
|
</where>
|
|
</where>
|
|
- GROUP BY project, course_id, video_id
|
|
|
|
|
|
+ GROUP BY project, course_id, video_id,company_user_id
|
|
) AS count_temp_table
|
|
) AS count_temp_table
|
|
</select>
|
|
</select>
|
|
<select id="selectQwExtCountByDayAndCount" resultType="java.lang.Long">
|
|
<select id="selectQwExtCountByDayAndCount" resultType="java.lang.Long">
|