|
@@ -3,7 +3,7 @@
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.fs.hisStore.mapper.FsStoreProductCategoryScrmMapper">
|
|
<mapper namespace="com.fs.hisStore.mapper.FsStoreProductCategoryScrmMapper">
|
|
-
|
|
|
|
|
|
+
|
|
<resultMap type="FsStoreProductCategoryScrm" id="FsStoreProductCategoryResult">
|
|
<resultMap type="FsStoreProductCategoryScrm" id="FsStoreProductCategoryResult">
|
|
<result property="cateId" column="cate_id" />
|
|
<result property="cateId" column="cate_id" />
|
|
<result property="pid" column="pid" />
|
|
<result property="pid" column="pid" />
|
|
@@ -14,29 +14,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="isDel" column="is_del" />
|
|
<result property="isDel" column="is_del" />
|
|
|
|
+ <result property="storeId" column="store_id" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsStoreProductCategoryVo">
|
|
<sql id="selectFsStoreProductCategoryVo">
|
|
- select cate_id, pid, cate_name, sort, pic, is_show, create_time, update_time, is_del from fs_store_product_category_scrm
|
|
|
|
|
|
+ select cate_id, pid, cate_name, sort, pic, is_show, create_time, update_time, is_del,store_id from fs_store_product_category_scrm
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsStoreProductCategoryList" parameterType="FsStoreProductCategoryScrm" resultMap="FsStoreProductCategoryResult">
|
|
<select id="selectFsStoreProductCategoryList" parameterType="FsStoreProductCategoryScrm" resultMap="FsStoreProductCategoryResult">
|
|
<include refid="selectFsStoreProductCategoryVo"/>
|
|
<include refid="selectFsStoreProductCategoryVo"/>
|
|
- <where>
|
|
|
|
|
|
+ <where>
|
|
<if test="pid != null "> and pid = #{pid}</if>
|
|
<if test="pid != null "> and pid = #{pid}</if>
|
|
<if test="cateName != null and cateName != ''"> and cate_name like concat('%', #{cateName}, '%')</if>
|
|
<if test="cateName != null and cateName != ''"> and cate_name like concat('%', #{cateName}, '%')</if>
|
|
<if test="sort != null "> and sort = #{sort}</if>
|
|
<if test="sort != null "> and sort = #{sort}</if>
|
|
<if test="pic != null and pic != ''"> and pic = #{pic}</if>
|
|
<if test="pic != null and pic != ''"> and pic = #{pic}</if>
|
|
<if test="isShow != null "> and is_show = #{isShow}</if>
|
|
<if test="isShow != null "> and is_show = #{isShow}</if>
|
|
<if test="isDel != null "> and is_del = #{isDel}</if>
|
|
<if test="isDel != null "> and is_del = #{isDel}</if>
|
|
|
|
+ <if test="storeId != null "> and store_id = #{storeId}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<select id="selectFsStoreProductCategoryById" parameterType="Long" resultMap="FsStoreProductCategoryResult">
|
|
<select id="selectFsStoreProductCategoryById" parameterType="Long" resultMap="FsStoreProductCategoryResult">
|
|
<include refid="selectFsStoreProductCategoryVo"/>
|
|
<include refid="selectFsStoreProductCategoryVo"/>
|
|
where cate_id = #{cateId}
|
|
where cate_id = #{cateId}
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<insert id="insertFsStoreProductCategory" parameterType="FsStoreProductCategoryScrm" useGeneratedKeys="true" keyProperty="cateId">
|
|
<insert id="insertFsStoreProductCategory" parameterType="FsStoreProductCategoryScrm" useGeneratedKeys="true" keyProperty="cateId">
|
|
insert into fs_store_product_category_scrm
|
|
insert into fs_store_product_category_scrm
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -48,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<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>
|
|
<if test="isDel != null">is_del,</if>
|
|
<if test="isDel != null">is_del,</if>
|
|
|
|
+ <if test="storeId != null">store_id,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="pid != null">#{pid},</if>
|
|
<if test="pid != null">#{pid},</if>
|
|
@@ -58,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="isDel != null">#{isDel},</if>
|
|
<if test="isDel != null">#{isDel},</if>
|
|
|
|
+ <if test="storeId != null">#{storeId},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -86,5 +90,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
#{cateId}
|
|
#{cateId}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
-
|
|
|
|
-</mapper>
|
|
|
|
|
|
+
|
|
|
|
+</mapper>
|