|
@@ -30,6 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
inner join fs_user_course b on a.course_id = b.course_id
|
|
inner join fs_user_course b on a.course_id = b.course_id
|
|
inner join fs_user_course_video c on a.video_id = c.video_id
|
|
inner join fs_user_course_video c on a.video_id = c.video_id
|
|
<where>
|
|
<where>
|
|
|
|
+ and a.del_flag ='0'
|
|
<if test="periodId != null "> and period_id = #{periodId}</if>
|
|
<if test="periodId != null "> and period_id = #{periodId}</if>
|
|
<if test="courseId != null "> and a.course_id = #{courseId}</if>
|
|
<if test="courseId != null "> and a.course_id = #{courseId}</if>
|
|
<if test="videoId != null "> and a.video_id = #{videoId}</if>
|
|
<if test="videoId != null "> and a.video_id = #{videoId}</if>
|
|
@@ -119,7 +120,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<select id="selectCourseVideoList" resultType="FsUserCoursePeriodDays">
|
|
<select id="selectCourseVideoList" resultType="FsUserCoursePeriodDays">
|
|
- select * from fs_user_course_period_days where period_id in
|
|
|
|
|
|
+ select * from fs_user_course_period_days where del_flag ='0' and period_id in
|
|
<foreach collection="periodIds" item="item" open="(" separator="," close=")">
|
|
<foreach collection="periodIds" item="item" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -132,6 +133,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
ucp.period_name dictLabel
|
|
ucp.period_name dictLabel
|
|
from fs_user_course_period ucp
|
|
from fs_user_course_period ucp
|
|
<where>
|
|
<where>
|
|
|
|
+ and ucp.del_flag ='0'
|
|
<if test="params.name != null and params.name != ''">
|
|
<if test="params.name != null and params.name != ''">
|
|
and ucp.period_name like concat('%', #{params.name}, '%')
|
|
and ucp.period_name like concat('%', #{params.name}, '%')
|
|
</if>
|
|
</if>
|
|
@@ -214,7 +216,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
left join fs_user_course_period period on period.period_id = a.period_id
|
|
left join fs_user_course_period period on period.period_id = a.period_id
|
|
left join company on FIND_IN_SET(company.company_id, period.company_id) > 0
|
|
left join company on FIND_IN_SET(company.company_id, period.company_id) > 0
|
|
left join company_user on company_user.company_id = company.company_id
|
|
left join company_user on company_user.company_id = company.company_id
|
|
- where period.period_name is not null
|
|
|
|
|
|
+ where period.period_name is not null and del_flag ='0'
|
|
ORDER BY
|
|
ORDER BY
|
|
a.day_date
|
|
a.day_date
|
|
</select>
|
|
</select>
|