|
@@ -496,6 +496,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
) AS grouped_results_count
|
|
) AS grouped_results_count
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <!-- 根据条件查询条数 -->
|
|
|
|
+ <select id="countByMap" resultType="java.lang.Integer">
|
|
|
|
+ select count(fcwl.log_id) from fs_course_watch_log fcwl
|
|
|
|
+ <where>
|
|
|
|
+ <if test="params.logTypes != null and params.logTypes.size() > 0">
|
|
|
|
+ and fcwl.log_type in
|
|
|
|
+ <foreach collection="params.logTypes" open="(" close=")" separator="," item="logType">
|
|
|
|
+ #{logType}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="params.companyUserId != null">
|
|
|
|
+ and fcwl.company_user_id = #{params.companyUserId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="params.date != null">
|
|
|
|
+ and date(fcwl.create_time) = #{params.date}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ </select>
|
|
|
|
|
|
<update id="batchUpdateWatchLog" parameterType="java.util.List">
|
|
<update id="batchUpdateWatchLog" parameterType="java.util.List">
|
|
UPDATE fs_course_watch_log
|
|
UPDATE fs_course_watch_log
|