|
|
@@ -43,11 +43,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="isPrivate" column="is_private" />
|
|
|
<result property="secondImg" column="second_img" />
|
|
|
<result property="companyIds" column="company_ids" />
|
|
|
-
|
|
|
+ <result property="configJson" column="config_json" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsUserCourseVo">
|
|
|
- select course_id,is_private,company_ids,is_next,talent_id,second_img,is_del, cate_id,sub_cate_id, course_name, title, img_url, sort, create_time, update_time, status, is_vip, is_hot, is_show, views, duration, description, hot_ranking, integral, price, sell_price, project, tags, likes, favorite_num, shares, is_auto_play, is_fast, is_best, is_tui, hot_num, is_integral, course_type from fs_user_course
|
|
|
+ select course_id,is_private,company_ids,is_next,talent_id,second_img,is_del, cate_id,sub_cate_id, course_name, title, img_url, sort, create_time, update_time, status, is_vip, is_hot, is_show, views, duration, description, hot_ranking, integral, price, sell_price, project, tags, likes, favorite_num, shares, is_auto_play, is_fast, is_best, is_tui, hot_num, is_integral, course_type, config_json from fs_user_course
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsUserCourseList" parameterType="FsUserCourse" resultMap="FsUserCourseResult">
|
|
|
@@ -86,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isNext != null "> and is_next = #{isNext}</if>
|
|
|
<if test="isPrivate != null "> and is_private = #{isPrivate}</if>
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
+ <if test="configJson != null "> and config_json = #{configJson}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -204,6 +205,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="secondImg != null">second_img,</if>
|
|
|
<if test="companyIds != null">company_ids,</if>
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
+ <if test="configJson != null">config_json,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="cateId != null">#{cateId},</if>
|
|
|
@@ -244,7 +246,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="secondImg != null">#{secondImg},</if>
|
|
|
<if test="companyIds != null">#{companyIds},</if>
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
- </trim>
|
|
|
+ <if test="configJson != null">config_json = #{configJson},</if>
|
|
|
+ </trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateFsUserCourse" parameterType="FsUserCourse">
|