|
|
@@ -14,10 +14,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="isDel" column="is_del" />
|
|
|
<result property="userId" column="user_id" />
|
|
|
+ <result property="categoryType" column="category_type" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsUserCourseCategoryVo">
|
|
|
- select cate_id, pid, cate_name, sort, is_show, create_time, update_time, is_del from fs_user_course_category
|
|
|
+ select cate_id, pid, cate_name, sort, is_show, create_time, update_time, is_del, category_type from fs_user_course_category
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsUserCourseCategoryList" parameterType="FsUserCourseCategory" resultMap="FsUserCourseCategoryResult">
|
|
|
@@ -29,6 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isShow != null "> and is_show = #{isShow}</if>
|
|
|
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
+ <if test="categoryType != null "> and category_type = #{categoryType}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -48,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="isDel != null">is_del,</if>
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
+ <if test="categoryType != null">category_type,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="pid != null">#{pid},</if>
|
|
|
@@ -58,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="isDel != null">#{isDel},</if>
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
+ <if test="categoryType != null">#{categoryType},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -71,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="isDel != null">is_del = #{isDel},</if>
|
|
|
+ <if test="categoryType != null">category_type = #{categoryType},</if>
|
|
|
</trim>
|
|
|
where cate_id = #{cateId}
|
|
|
</update>
|