|
@@ -15,7 +15,6 @@
|
|
<result property="goodsDesc" column="goods_desc"/>
|
|
<result property="goodsDesc" column="goods_desc"/>
|
|
<result property="isOnSale" column="is_on_sale"/>
|
|
<result property="isOnSale" column="is_on_sale"/>
|
|
<result property="addTime" column="add_time"/>
|
|
<result property="addTime" column="add_time"/>
|
|
- <result property="updateTime" column="update_time"/>
|
|
|
|
<result property="sortOrder" column="sort_order"/>
|
|
<result property="sortOrder" column="sort_order"/>
|
|
<result property="isDelete" column="is_delete"/>
|
|
<result property="isDelete" column="is_delete"/>
|
|
<result property="attributeCategory" column="attribute_category"/>
|
|
<result property="attributeCategory" column="attribute_category"/>
|
|
@@ -36,10 +35,14 @@
|
|
<result property="isLimited" column="is_limited"/>
|
|
<result property="isLimited" column="is_limited"/>
|
|
<result property="isHot" column="is_hot"/>
|
|
<result property="isHot" column="is_hot"/>
|
|
<result property="marketPrice" column="market_price"/>
|
|
<result property="marketPrice" column="market_price"/>
|
|
- <result property="createUserId" column="create_user_id"/>
|
|
|
|
- <result property="createUserDeptId" column="create_user_dept_id"/>
|
|
|
|
- <result property="updateUserId" column="update_user_id"/>
|
|
|
|
<result property="goodsType" column="goodsType"/>
|
|
<result property="goodsType" column="goodsType"/>
|
|
|
|
+ <result property="sku" column="sku"/>
|
|
|
|
+ <result property="goodsBizType" column="goods_biz_type"/>
|
|
|
|
+ <result column="creater_sn" property="createrSn" jdbcType="VARCHAR" />
|
|
|
|
+ <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
|
+ <result column="moder_sn" property="moderSn" jdbcType="VARCHAR" />
|
|
|
|
+ <result column="mod_time" property="modTime" jdbcType="TIMESTAMP" />
|
|
|
|
+ <result column="tstm" property="tstm" jdbcType="TIMESTAMP" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<select id="queryObject" resultType="com.kmall.admin.entity.GoodsEntity">
|
|
<select id="queryObject" resultType="com.kmall.admin.entity.GoodsEntity">
|
|
@@ -76,7 +79,6 @@
|
|
mall_goods.goods_brief,
|
|
mall_goods.goods_brief,
|
|
mall_goods.is_on_sale,
|
|
mall_goods.is_on_sale,
|
|
mall_goods.add_time,
|
|
mall_goods.add_time,
|
|
- mall_goods.update_time,
|
|
|
|
mall_goods.sort_order,
|
|
mall_goods.sort_order,
|
|
mall_goods.is_delete,
|
|
mall_goods.is_delete,
|
|
mall_goods.attribute_category,
|
|
mall_goods.attribute_category,
|
|
@@ -97,9 +99,6 @@
|
|
mall_goods.is_limited,
|
|
mall_goods.is_limited,
|
|
mall_goods.is_hot,
|
|
mall_goods.is_hot,
|
|
mall_goods.market_price,
|
|
mall_goods.market_price,
|
|
- mall_goods.create_user_id,
|
|
|
|
- mall_goods.create_user_dept_id,
|
|
|
|
- mall_goods.update_user_id,
|
|
|
|
mall_category.name category_name,
|
|
mall_category.name category_name,
|
|
mall_attribute_category.name attribute_category_name,
|
|
mall_attribute_category.name attribute_category_name,
|
|
mall_brand.name brand_name,
|
|
mall_brand.name brand_name,
|
|
@@ -166,7 +165,6 @@
|
|
`goods_desc`,
|
|
`goods_desc`,
|
|
`is_on_sale`,
|
|
`is_on_sale`,
|
|
`add_time`,
|
|
`add_time`,
|
|
- `update_time`,
|
|
|
|
`sort_order`,
|
|
`sort_order`,
|
|
`is_delete`,
|
|
`is_delete`,
|
|
`attribute_category`,
|
|
`attribute_category`,
|
|
@@ -187,9 +185,13 @@
|
|
`is_limited`,
|
|
`is_limited`,
|
|
`is_hot`,
|
|
`is_hot`,
|
|
`market_price`,
|
|
`market_price`,
|
|
- `create_user_id`,
|
|
|
|
- `create_user_dept_id`,
|
|
|
|
- `update_user_id`
|
|
|
|
|
|
+ `sku`,
|
|
|
|
+ `goods_biz_type`,
|
|
|
|
+ `create_sn`,
|
|
|
|
+ `create_time`,
|
|
|
|
+ `moder_sn`,
|
|
|
|
+ `mod_time`,
|
|
|
|
+ `tstm`
|
|
)
|
|
)
|
|
values
|
|
values
|
|
(
|
|
(
|
|
@@ -204,7 +206,6 @@
|
|
#{goodsDesc},
|
|
#{goodsDesc},
|
|
#{isOnSale},
|
|
#{isOnSale},
|
|
#{addTime},
|
|
#{addTime},
|
|
- #{updateTime},
|
|
|
|
#{sortOrder},
|
|
#{sortOrder},
|
|
#{isDelete},
|
|
#{isDelete},
|
|
#{attributeCategory},
|
|
#{attributeCategory},
|
|
@@ -225,9 +226,13 @@
|
|
#{isLimited},
|
|
#{isLimited},
|
|
#{isHot},
|
|
#{isHot},
|
|
#{marketPrice},
|
|
#{marketPrice},
|
|
- #{createUserId},
|
|
|
|
- #{createUserDeptId},
|
|
|
|
- #{updateUserId}
|
|
|
|
|
|
+ #{sku},
|
|
|
|
+ #{goodsBizType},
|
|
|
|
+ #{createrSn},
|
|
|
|
+ #{createTime},
|
|
|
|
+ #{moderSn},
|
|
|
|
+ #{modTime},
|
|
|
|
+ #{tstm}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -244,7 +249,6 @@
|
|
<if test="goodsDesc != null">`goods_desc` = #{goodsDesc},</if>
|
|
<if test="goodsDesc != null">`goods_desc` = #{goodsDesc},</if>
|
|
<if test="isOnSale != null">`is_on_sale` = #{isOnSale},</if>
|
|
<if test="isOnSale != null">`is_on_sale` = #{isOnSale},</if>
|
|
<if test="addTime != null">`add_time` = #{addTime},</if>
|
|
<if test="addTime != null">`add_time` = #{addTime},</if>
|
|
- <if test="updateTime != null">`update_time` = #{updateTime},</if>
|
|
|
|
<if test="sortOrder != null">`sort_order` = #{sortOrder},</if>
|
|
<if test="sortOrder != null">`sort_order` = #{sortOrder},</if>
|
|
<if test="isDelete != null">`is_delete` = #{isDelete},</if>
|
|
<if test="isDelete != null">`is_delete` = #{isDelete},</if>
|
|
<if test="attributeCategory != null">`attribute_category` = #{attributeCategory},</if>
|
|
<if test="attributeCategory != null">`attribute_category` = #{attributeCategory},</if>
|
|
@@ -265,9 +269,27 @@
|
|
<if test="isLimited != null">`is_limited` = #{isLimited},</if>
|
|
<if test="isLimited != null">`is_limited` = #{isLimited},</if>
|
|
<if test="isHot != null">`is_hot` = #{isHot},</if>
|
|
<if test="isHot != null">`is_hot` = #{isHot},</if>
|
|
<if test="marketPrice != null">`market_price` = #{marketPrice},</if>
|
|
<if test="marketPrice != null">`market_price` = #{marketPrice},</if>
|
|
- <if test="createUserId != null">`create_user_id` = #{createUserId},</if>
|
|
|
|
- <if test="createUserId != null">`create_user_dept_id` = #{createUserDeptId},</if>
|
|
|
|
- <if test="updateUserId != null">`update_user_id` = #{updateUserId},</if>
|
|
|
|
|
|
+ <if test="sku != null" >
|
|
|
|
+ sku = #{sku,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="goodsBizType != null" >
|
|
|
|
+ goods_biz_type = #{goodsBizType,jdbcType=CHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createrSn != null" >
|
|
|
|
+ creater_sn = #{createrSn,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createTime != null" >
|
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="moderSn != null" >
|
|
|
|
+ moder_sn = #{moderSn,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="modTime != null" >
|
|
|
|
+ mod_time = #{modTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="tstm != null" >
|
|
|
|
+ tstm = #{tstm,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|