|
@@ -42,13 +42,13 @@
|
|
|
select count(log_id) from fs_course_watch_log
|
|
select count(log_id) from fs_course_watch_log
|
|
|
<where>
|
|
<where>
|
|
|
<if test="userType != null">
|
|
<if test="userType != null">
|
|
|
- and send_type=${userType}
|
|
|
|
|
|
|
+ and send_type=#{userType}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="startTime != null and endTime != null">
|
|
<if test="startTime != null and endTime != null">
|
|
|
and create_time between #{startTime} and #{endTime}
|
|
and create_time between #{startTime} and #{endTime}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyId != null">
|
|
<if test="companyId != null">
|
|
|
- and company_id = #{companyId}
|
|
|
|
|
|
|
+ AND company_id = #{companyId}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
@@ -57,13 +57,13 @@
|
|
|
<where>
|
|
<where>
|
|
|
finish_time is not null
|
|
finish_time is not null
|
|
|
<if test="userType != null">
|
|
<if test="userType != null">
|
|
|
- and send_type=${userType}
|
|
|
|
|
|
|
+ and send_type=#{userType}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="startTime != null and endTime != null">
|
|
<if test="startTime != null and endTime != null">
|
|
|
and create_time between #{startTime} and #{endTime}
|
|
and create_time between #{startTime} and #{endTime}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyId != null">
|
|
<if test="companyId != null">
|
|
|
- and company_id = #{companyId}
|
|
|
|
|
|
|
+ AND company_id = #{companyId}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
@@ -71,13 +71,13 @@
|
|
|
select count(distinct user_id) from fs_course_watch_log
|
|
select count(distinct user_id) from fs_course_watch_log
|
|
|
<where>
|
|
<where>
|
|
|
<if test="userType != null">
|
|
<if test="userType != null">
|
|
|
- and send_type=${userType}
|
|
|
|
|
|
|
+ and send_type=#{userType}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="startTime != null and endTime != null">
|
|
<if test="startTime != null and endTime != null">
|
|
|
and create_time between #{startTime} and #{endTime}
|
|
and create_time between #{startTime} and #{endTime}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyId != null">
|
|
<if test="companyId != null">
|
|
|
- and company_id = #{companyId}
|
|
|
|
|
|
|
+ AND company_id = #{companyId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
</where>
|
|
@@ -90,10 +90,10 @@
|
|
|
AND create_time BETWEEN #{startTime} AND #{endTime}
|
|
AND create_time BETWEEN #{startTime} AND #{endTime}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="userType != null">
|
|
<if test="userType != null">
|
|
|
- and send_type=${userType}
|
|
|
|
|
|
|
+ and send_type=#{userType}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyId != null">
|
|
<if test="companyId != null">
|
|
|
- and company_id = #{companyId}
|
|
|
|
|
|
|
+ AND company_id = #{companyId}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
@@ -104,7 +104,7 @@
|
|
|
create_time BETWEEN #{startTime} AND #{endTime}
|
|
create_time BETWEEN #{startTime} AND #{endTime}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyId != null">
|
|
<if test="companyId != null">
|
|
|
- and company_id = #{companyId}
|
|
|
|
|
|
|
+ AND company_id = #{companyId}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
@@ -116,7 +116,7 @@
|
|
|
and create_time BETWEEN #{startTime} AND #{endTime}
|
|
and create_time BETWEEN #{startTime} AND #{endTime}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyId != null">
|
|
<if test="companyId != null">
|
|
|
- and company_id = #{companyId}
|
|
|
|
|
|
|
+ AND company_id = #{companyId}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
@@ -129,7 +129,7 @@
|
|
|
and rpl.create_time BETWEEN #{startTime} AND #{endTime}
|
|
and rpl.create_time BETWEEN #{startTime} AND #{endTime}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="userType != null">
|
|
<if test="userType != null">
|
|
|
- and log.send_type = ${userType}
|
|
|
|
|
|
|
+ and log.send_type = #{userType}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyId != null">
|
|
<if test="companyId != null">
|
|
|
and log.company_id = #{companyId}
|
|
and log.company_id = #{companyId}
|
|
@@ -145,7 +145,7 @@
|
|
|
and rpl.create_time BETWEEN #{startTime} AND #{endTime}
|
|
and rpl.create_time BETWEEN #{startTime} AND #{endTime}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="userType != null">
|
|
<if test="userType != null">
|
|
|
- and log.send_type = ${userType}
|
|
|
|
|
|
|
+ and log.send_type = #{userType}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyId != null">
|
|
<if test="companyId != null">
|
|
|
and log.company_id = #{companyId}
|
|
and log.company_id = #{companyId}
|
|
@@ -190,7 +190,7 @@
|
|
|
AND create_time <![CDATA[<]]> #{endTime}
|
|
AND create_time <![CDATA[<]]> #{endTime}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="userType != null">
|
|
<if test="userType != null">
|
|
|
- AND send_type = ${userType}
|
|
|
|
|
|
|
+ AND send_type = #{userType}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
GROUP BY
|
|
GROUP BY
|
|
@@ -220,10 +220,10 @@
|
|
|
AND create_time <![CDATA[<]]> #{endTime}
|
|
AND create_time <![CDATA[<]]> #{endTime}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="userType != null">
|
|
<if test="userType != null">
|
|
|
- AND send_type = ${userType}
|
|
|
|
|
|
|
+ AND send_type = #{userType}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyId != null">
|
|
<if test="companyId != null">
|
|
|
- AND company_id = ${companyId}
|
|
|
|
|
|
|
+ AND company_id = #{companyId}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
GROUP BY company_id
|
|
GROUP BY company_id
|
|
@@ -423,10 +423,10 @@
|
|
|
AND rpl.create_time <![CDATA[<]]> #{endTime}
|
|
AND rpl.create_time <![CDATA[<]]> #{endTime}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="userType != null">
|
|
<if test="userType != null">
|
|
|
- and log.send_type = ${userType}
|
|
|
|
|
|
|
+ and log.send_type = #{userType}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyId != null">
|
|
<if test="companyId != null">
|
|
|
- and log.company_id = ${companyId}
|
|
|
|
|
|
|
+ and log.company_id = #{companyId}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
GROUP BY
|
|
GROUP BY
|
|
@@ -462,10 +462,10 @@
|
|
|
AND rpl.create_time <![CDATA[<]]> #{endTime}
|
|
AND rpl.create_time <![CDATA[<]]> #{endTime}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="userType != null">
|
|
<if test="userType != null">
|
|
|
- and log.send_type = ${userType}
|
|
|
|
|
|
|
+ and log.send_type = #{userType}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyId != null">
|
|
<if test="companyId != null">
|
|
|
- and log.company_id = ${companyId}
|
|
|
|
|
|
|
+ and log.company_id = #{companyId}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
group by start_date
|
|
group by start_date
|
|
@@ -509,7 +509,7 @@
|
|
|
(select COUNT(*) FROM qw_user
|
|
(select COUNT(*) FROM qw_user
|
|
|
<where>
|
|
<where>
|
|
|
<if test="companyId != null">
|
|
<if test="companyId != null">
|
|
|
- AND company_id = ${companyId}
|
|
|
|
|
|
|
+ AND company_id = #{companyId}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
) AS qw_member_num
|
|
) AS qw_member_num
|