|
@@ -12,6 +12,10 @@
|
|
<result column="product_comment_count" jdbcType="INTEGER" property="productCommentCount" />
|
|
<result column="product_comment_count" jdbcType="INTEGER" property="productCommentCount" />
|
|
<result column="logo" jdbcType="VARCHAR" property="logo" />
|
|
<result column="logo" jdbcType="VARCHAR" property="logo" />
|
|
<result column="big_pic" jdbcType="VARCHAR" property="bigPic" />
|
|
<result column="big_pic" jdbcType="VARCHAR" property="bigPic" />
|
|
|
|
+ <result column="create_id" jdbcType="BIGINT" property="createId" />
|
|
|
|
+ <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
+ <result column="update_id" jdbcType="BIGINT" property="updateId" />
|
|
|
|
+ <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.hwrj.cloud.admin.model.PmsBrand">
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.hwrj.cloud.admin.model.PmsBrand">
|
|
<result column="brand_story" jdbcType="LONGVARCHAR" property="brandStory" />
|
|
<result column="brand_story" jdbcType="LONGVARCHAR" property="brandStory" />
|
|
@@ -76,7 +80,7 @@
|
|
</sql>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
id, name, first_letter, sort, factory_status, show_status, product_count, product_comment_count,
|
|
id, name, first_letter, sort, factory_status, show_status, product_count, product_comment_count,
|
|
- logo, big_pic
|
|
+ logo, big_pic, create_id, create_time, update_id, update_time
|
|
</sql>
|
|
</sql>
|
|
<sql id="Blob_Column_List">
|
|
<sql id="Blob_Column_List">
|
|
brand_story
|
|
brand_story
|
|
@@ -136,11 +140,13 @@
|
|
insert into pms_brand (name, first_letter, sort,
|
|
insert into pms_brand (name, first_letter, sort,
|
|
factory_status, show_status, product_count,
|
|
factory_status, show_status, product_count,
|
|
product_comment_count, logo, big_pic,
|
|
product_comment_count, logo, big_pic,
|
|
- brand_story)
|
|
+ create_id, create_time, update_id,
|
|
|
|
+ update_time, brand_story)
|
|
values (#{name,jdbcType=VARCHAR}, #{firstLetter,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
|
|
values (#{name,jdbcType=VARCHAR}, #{firstLetter,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
|
|
#{factoryStatus,jdbcType=INTEGER}, #{showStatus,jdbcType=INTEGER}, #{productCount,jdbcType=INTEGER},
|
|
#{factoryStatus,jdbcType=INTEGER}, #{showStatus,jdbcType=INTEGER}, #{productCount,jdbcType=INTEGER},
|
|
#{productCommentCount,jdbcType=INTEGER}, #{logo,jdbcType=VARCHAR}, #{bigPic,jdbcType=VARCHAR},
|
|
#{productCommentCount,jdbcType=INTEGER}, #{logo,jdbcType=VARCHAR}, #{bigPic,jdbcType=VARCHAR},
|
|
- #{brandStory,jdbcType=LONGVARCHAR})
|
|
+ #{createId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateId,jdbcType=BIGINT},
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{brandStory,jdbcType=LONGVARCHAR})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.hwrj.cloud.admin.model.PmsBrand">
|
|
<insert id="insertSelective" parameterType="com.hwrj.cloud.admin.model.PmsBrand">
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
@@ -175,6 +181,18 @@
|
|
<if test="bigPic != null">
|
|
<if test="bigPic != null">
|
|
big_pic,
|
|
big_pic,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="createId != null">
|
|
|
|
+ create_id,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createTime != null">
|
|
|
|
+ create_time,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateId != null">
|
|
|
|
+ update_id,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
+ update_time,
|
|
|
|
+ </if>
|
|
<if test="brandStory != null">
|
|
<if test="brandStory != null">
|
|
brand_story,
|
|
brand_story,
|
|
</if>
|
|
</if>
|
|
@@ -207,6 +225,18 @@
|
|
<if test="bigPic != null">
|
|
<if test="bigPic != null">
|
|
#{bigPic,jdbcType=VARCHAR},
|
|
#{bigPic,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="createId != null">
|
|
|
|
+ #{createId,jdbcType=BIGINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createTime != null">
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateId != null">
|
|
|
|
+ #{updateId,jdbcType=BIGINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
<if test="brandStory != null">
|
|
<if test="brandStory != null">
|
|
#{brandStory,jdbcType=LONGVARCHAR},
|
|
#{brandStory,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -251,6 +281,18 @@
|
|
<if test="record.bigPic != null">
|
|
<if test="record.bigPic != null">
|
|
big_pic = #{record.bigPic,jdbcType=VARCHAR},
|
|
big_pic = #{record.bigPic,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.createId != null">
|
|
|
|
+ create_id = #{record.createId,jdbcType=BIGINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.createTime != null">
|
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.updateId != null">
|
|
|
|
+ update_id = #{record.updateId,jdbcType=BIGINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.updateTime != null">
|
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
<if test="record.brandStory != null">
|
|
<if test="record.brandStory != null">
|
|
brand_story = #{record.brandStory,jdbcType=LONGVARCHAR},
|
|
brand_story = #{record.brandStory,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -271,6 +313,10 @@
|
|
product_comment_count = #{record.productCommentCount,jdbcType=INTEGER},
|
|
product_comment_count = #{record.productCommentCount,jdbcType=INTEGER},
|
|
logo = #{record.logo,jdbcType=VARCHAR},
|
|
logo = #{record.logo,jdbcType=VARCHAR},
|
|
big_pic = #{record.bigPic,jdbcType=VARCHAR},
|
|
big_pic = #{record.bigPic,jdbcType=VARCHAR},
|
|
|
|
+ create_id = #{record.createId,jdbcType=BIGINT},
|
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
+ update_id = #{record.updateId,jdbcType=BIGINT},
|
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
brand_story = #{record.brandStory,jdbcType=LONGVARCHAR}
|
|
brand_story = #{record.brandStory,jdbcType=LONGVARCHAR}
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -287,7 +333,11 @@
|
|
product_count = #{record.productCount,jdbcType=INTEGER},
|
|
product_count = #{record.productCount,jdbcType=INTEGER},
|
|
product_comment_count = #{record.productCommentCount,jdbcType=INTEGER},
|
|
product_comment_count = #{record.productCommentCount,jdbcType=INTEGER},
|
|
logo = #{record.logo,jdbcType=VARCHAR},
|
|
logo = #{record.logo,jdbcType=VARCHAR},
|
|
- big_pic = #{record.bigPic,jdbcType=VARCHAR}
|
|
+ big_pic = #{record.bigPic,jdbcType=VARCHAR},
|
|
|
|
+ create_id = #{record.createId,jdbcType=BIGINT},
|
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
+ update_id = #{record.updateId,jdbcType=BIGINT},
|
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</if>
|
|
@@ -322,6 +372,18 @@
|
|
<if test="bigPic != null">
|
|
<if test="bigPic != null">
|
|
big_pic = #{bigPic,jdbcType=VARCHAR},
|
|
big_pic = #{bigPic,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="createId != null">
|
|
|
|
+ create_id = #{createId,jdbcType=BIGINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createTime != null">
|
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateId != null">
|
|
|
|
+ update_id = #{updateId,jdbcType=BIGINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
<if test="brandStory != null">
|
|
<if test="brandStory != null">
|
|
brand_story = #{brandStory,jdbcType=LONGVARCHAR},
|
|
brand_story = #{brandStory,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -339,6 +401,10 @@
|
|
product_comment_count = #{productCommentCount,jdbcType=INTEGER},
|
|
product_comment_count = #{productCommentCount,jdbcType=INTEGER},
|
|
logo = #{logo,jdbcType=VARCHAR},
|
|
logo = #{logo,jdbcType=VARCHAR},
|
|
big_pic = #{bigPic,jdbcType=VARCHAR},
|
|
big_pic = #{bigPic,jdbcType=VARCHAR},
|
|
|
|
+ create_id = #{createId,jdbcType=BIGINT},
|
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
+ update_id = #{updateId,jdbcType=BIGINT},
|
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
brand_story = #{brandStory,jdbcType=LONGVARCHAR}
|
|
brand_story = #{brandStory,jdbcType=LONGVARCHAR}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
</update>
|
|
@@ -352,7 +418,11 @@
|
|
product_count = #{productCount,jdbcType=INTEGER},
|
|
product_count = #{productCount,jdbcType=INTEGER},
|
|
product_comment_count = #{productCommentCount,jdbcType=INTEGER},
|
|
product_comment_count = #{productCommentCount,jdbcType=INTEGER},
|
|
logo = #{logo,jdbcType=VARCHAR},
|
|
logo = #{logo,jdbcType=VARCHAR},
|
|
- big_pic = #{bigPic,jdbcType=VARCHAR}
|
|
+ big_pic = #{bigPic,jdbcType=VARCHAR},
|
|
|
|
+ create_id = #{createId,jdbcType=BIGINT},
|
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
+ update_id = #{updateId,jdbcType=BIGINT},
|
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
</update>
|
|
</mapper>
|
|
</mapper>
|