|
@@ -8,8 +8,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="periodId" column="period_id" />
|
|
<result property="periodId" column="period_id" />
|
|
<result property="periodName" column="period_name" />
|
|
<result property="periodName" column="period_name" />
|
|
<result property="companyId" column="company_id" />
|
|
<result property="companyId" column="company_id" />
|
|
- <result property="courseId" column="course_id" />
|
|
|
|
- <result property="videoId" column="video_id" />
|
|
|
|
<result property="trainingCampId" column="training_camp_id" />
|
|
<result property="trainingCampId" column="training_camp_id" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
@@ -22,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsUserCoursePeriodVo">
|
|
<sql id="selectFsUserCoursePeriodVo">
|
|
- select period_id, period_name, company_id, course_id, video_id, training_camp_id, create_time, update_time, course_style, live_room_style, red_packet_grant_method, period_type, period_starting_time, period_end_time from fs_user_course_period
|
|
|
|
|
|
+ select * from fs_user_course_period
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsUserCoursePeriodList" parameterType="FsUserCoursePeriod" resultMap="FsUserCoursePeriodResult">
|
|
<select id="selectFsUserCoursePeriodList" parameterType="FsUserCoursePeriod" resultMap="FsUserCoursePeriodResult">
|
|
@@ -30,8 +28,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<where>
|
|
<where>
|
|
<if test="periodName != null and periodName != ''"> and period_name like concat('%', #{periodName}, '%')</if>
|
|
<if test="periodName != null and periodName != ''"> and period_name like concat('%', #{periodName}, '%')</if>
|
|
<if test="companyId != null "> and company_id = #{companyId}</if>
|
|
<if test="companyId != null "> and company_id = #{companyId}</if>
|
|
- <if test="courseId != null "> and course_id = #{courseId}</if>
|
|
|
|
- <if test="videoId != null "> and video_id = #{videoId}</if>
|
|
|
|
<if test="trainingCampId != null "> and training_camp_id = #{trainingCampId}</if>
|
|
<if test="trainingCampId != null "> and training_camp_id = #{trainingCampId}</if>
|
|
<if test="courseStyle != null and courseStyle != ''"> and course_style = #{courseStyle}</if>
|
|
<if test="courseStyle != null and courseStyle != ''"> and course_style = #{courseStyle}</if>
|
|
<if test="liveRoomStyle != null and liveRoomStyle != ''"> and live_room_style = #{liveRoomStyle}</if>
|
|
<if test="liveRoomStyle != null and liveRoomStyle != ''"> and live_room_style = #{liveRoomStyle}</if>
|
|
@@ -47,8 +43,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
period_id,
|
|
period_id,
|
|
period_name,
|
|
period_name,
|
|
fs_user_course_period.company_id,
|
|
fs_user_course_period.company_id,
|
|
- course_id,
|
|
|
|
- video_id,
|
|
|
|
training_camp_id,
|
|
training_camp_id,
|
|
fs_user_course_period.create_time,
|
|
fs_user_course_period.create_time,
|
|
fs_user_course_period.update_time,
|
|
fs_user_course_period.update_time,
|
|
@@ -56,23 +50,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
live_room_style,
|
|
live_room_style,
|
|
red_packet_grant_method,
|
|
red_packet_grant_method,
|
|
period_type,
|
|
period_type,
|
|
- period_starting_time,
|
|
|
|
- GROUP_CONCAT( company.company_name ) AS companyName
|
|
|
|
|
|
+ period_end_time,
|
|
|
|
+ period_starting_time
|
|
FROM
|
|
FROM
|
|
fs_user_course_period
|
|
fs_user_course_period
|
|
- LEFT JOIN company ON fs_user_course_period.company_id = company.company_id
|
|
|
|
<where>
|
|
<where>
|
|
|
|
+ <if test="trainingCampId != null"> and training_camp_id = #{trainingCampId}</if>
|
|
<if test="periodName != null and periodName != ''"> and period_name like concat('%', #{periodName}, '%')</if>
|
|
<if test="periodName != null and periodName != ''"> and period_name like concat('%', #{periodName}, '%')</if>
|
|
- <if test="companyIdList != null and companyIdList.size() > 0 ">
|
|
|
|
- and fs_user_course_period.company_id in
|
|
|
|
- <foreach item="companyId" index="index" collection="companyIdList"
|
|
|
|
- open="(" separator="," close=")">
|
|
|
|
- #{companyId}
|
|
|
|
- </foreach>
|
|
|
|
- </if>
|
|
|
|
<if test="periodStartingTime != null "> and period_starting_time = #{periodStartingTime}</if>
|
|
<if test="periodStartingTime != null "> and period_starting_time = #{periodStartingTime}</if>
|
|
<if test="periodEndTime != null "> and period_end_time = #{periodEndTime}</if>
|
|
<if test="periodEndTime != null "> and period_end_time = #{periodEndTime}</if>
|
|
</where>
|
|
</where>
|
|
|
|
+ order by create_time desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectFsUserCoursePeriodById" parameterType="Long" resultMap="FsUserCoursePeriodResult">
|
|
<select id="selectFsUserCoursePeriodById" parameterType="Long" resultMap="FsUserCoursePeriodResult">
|
|
@@ -86,8 +74,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="periodId != null">period_id,</if>
|
|
<if test="periodId != null">period_id,</if>
|
|
<if test="periodName != null">period_name,</if>
|
|
<if test="periodName != null">period_name,</if>
|
|
<if test="companyId != null">company_id,</if>
|
|
<if test="companyId != null">company_id,</if>
|
|
- <if test="courseId != null">course_id,</if>
|
|
|
|
- <if test="videoId != null">video_id,</if>
|
|
|
|
<if test="trainingCampId != null">training_camp_id,</if>
|
|
<if test="trainingCampId != null">training_camp_id,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
@@ -102,8 +88,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="periodId != null">#{periodId},</if>
|
|
<if test="periodId != null">#{periodId},</if>
|
|
<if test="periodName != null">#{periodName},</if>
|
|
<if test="periodName != null">#{periodName},</if>
|
|
<if test="companyId != null">#{companyId},</if>
|
|
<if test="companyId != null">#{companyId},</if>
|
|
- <if test="courseId != null">#{courseId},</if>
|
|
|
|
- <if test="videoId != null">#{videoId},</if>
|
|
|
|
<if test="trainingCampId != null">#{trainingCampId},</if>
|
|
<if test="trainingCampId != null">#{trainingCampId},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
@@ -121,8 +105,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="periodName != null">period_name = #{periodName},</if>
|
|
<if test="periodName != null">period_name = #{periodName},</if>
|
|
<if test="companyId != null">company_id = #{companyId},</if>
|
|
<if test="companyId != null">company_id = #{companyId},</if>
|
|
- <if test="courseId != null">course_id = #{courseId},</if>
|
|
|
|
- <if test="videoId != null">video_id = #{videoId},</if>
|
|
|
|
<if test="trainingCampId != null">training_camp_id = #{trainingCampId},</if>
|
|
<if test="trainingCampId != null">training_camp_id = #{trainingCampId},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|