|
@@ -20,6 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="maxViewNum" column="max_view_num" />
|
|
|
<result property="courseLogo" column="course_logo" />
|
|
|
<result property="openCommentStatus" column="open_comment_status" />
|
|
|
+ <result property="periodLine" column="period_line" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsUserCoursePeriodVo">
|
|
@@ -39,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="periodType != null "> and period_type = #{periodType}</if>
|
|
|
<if test="periodStartingTime != null "> and period_starting_time = #{periodStartingTime}</if>
|
|
|
<if test="periodEndTime != null "> and period_end_time = #{periodEndTime}</if>
|
|
|
+ <if test="periodLine != null "> and period_line = #{periodLine}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -58,6 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
period_type,
|
|
|
period_end_time,
|
|
|
period_starting_time,
|
|
|
+ period_line,
|
|
|
fctc.training_camp_name AS trainingCampName,
|
|
|
GROUP_CONCAT( company.company_name ) AS companyName
|
|
|
FROM
|
|
@@ -77,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
|
<if test="periodStartingTime != null "> and period_starting_time >= #{periodStartingTime}</if>
|
|
|
<if test="periodEndTime != null "> and period_end_time <= #{periodEndTime}</if>
|
|
|
+ <if test="periodLine != null "> and period_line = #{periodLine}</if>
|
|
|
</where>
|
|
|
group by fs_user_course_period.period_id
|
|
|
order by create_time desc
|
|
@@ -109,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maxViewNum != null">max_view_num,</if>
|
|
|
<if test="courseLogo != null">course_logo,</if>
|
|
|
<if test="openCommentStatus != null">open_comment_status,</if>
|
|
|
+ <if test="periodLine != null">period_line,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="periodId != null">#{periodId},</if>
|
|
@@ -130,6 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maxViewNum != null">#{maxViewNum},</if>
|
|
|
<if test="courseLogo != null">#{courseLogo},</if>
|
|
|
<if test="openCommentStatus != null">#{openCommentStatus},</if>
|
|
|
+ <if test="periodLine != null">#{periodLine},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -154,6 +160,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maxViewNum != null">max_view_num = #{maxViewNum},</if>
|
|
|
<if test="courseLogo != null and courseLogo !=''">course_logo = #{courseLogo},</if>
|
|
|
<if test="openCommentStatus != null">open_comment_status = #{openCommentStatus},</if>
|
|
|
+ <if test="periodLine != null">period_line = #{periodLine},</if>
|
|
|
</trim>
|
|
|
where period_id = #{periodId}
|
|
|
</update>
|