|
@@ -20,6 +20,7 @@
|
|
|
<result column="product_brand" jdbcType="VARCHAR" property="productBrand" />
|
|
|
<result column="product_sn" jdbcType="VARCHAR" property="productSn" />
|
|
|
<result column="product_attr" jdbcType="VARCHAR" property="productAttr" />
|
|
|
+ <result column="hidden_" jdbcType="VARCHAR" property="hidden" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -82,7 +83,7 @@
|
|
|
<sql id="Base_Column_List">
|
|
|
id, product_id, product_sku_id, member_id, quantity, price, product_pic, product_name,
|
|
|
product_sub_title, product_sku_code, member_nickname, create_date, modify_date, delete_status,
|
|
|
- product_category_id, product_brand, product_sn, product_attr
|
|
|
+ product_category_id, product_brand, product_sn, product_attr,hidden_
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsCartItemExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -123,13 +124,13 @@
|
|
|
product_name, product_sub_title, product_sku_code,
|
|
|
member_nickname, create_date, modify_date,
|
|
|
delete_status, product_category_id, product_brand,
|
|
|
- product_sn, product_attr)
|
|
|
+ product_sn, product_attr,hidden_)
|
|
|
values (#{productId,jdbcType=BIGINT}, #{productSkuId,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT},
|
|
|
#{quantity,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, #{productPic,jdbcType=VARCHAR},
|
|
|
#{productName,jdbcType=VARCHAR}, #{productSubTitle,jdbcType=VARCHAR}, #{productSkuCode,jdbcType=VARCHAR},
|
|
|
#{memberNickname,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{modifyDate,jdbcType=TIMESTAMP},
|
|
|
#{deleteStatus,jdbcType=INTEGER}, #{productCategoryId,jdbcType=BIGINT}, #{productBrand,jdbcType=VARCHAR},
|
|
|
- #{productSn,jdbcType=VARCHAR}, #{productAttr,jdbcType=VARCHAR})
|
|
|
+ #{productSn,jdbcType=VARCHAR}, #{productAttr,jdbcType=VARCHAR},#{hidden})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yonge.cooleshow.mbg.model.OmsCartItem">
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
@@ -188,6 +189,9 @@
|
|
|
<if test="productAttr != null">
|
|
|
product_attr,
|
|
|
</if>
|
|
|
+ <if test="hidden != null">
|
|
|
+ hidden_,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="productId != null">
|
|
@@ -241,6 +245,9 @@
|
|
|
<if test="productAttr != null">
|
|
|
#{productAttr,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="hidden != null">
|
|
|
+ #{hidden},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsCartItemExample" resultType="java.lang.Long">
|
|
@@ -306,6 +313,9 @@
|
|
|
<if test="record.productAttr != null">
|
|
|
product_attr = #{record.productAttr,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.hidden != null">
|
|
|
+ hidden_ = #{record.hidden},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -330,7 +340,8 @@
|
|
|
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
|
|
|
product_brand = #{record.productBrand,jdbcType=VARCHAR},
|
|
|
product_sn = #{record.productSn,jdbcType=VARCHAR},
|
|
|
- product_attr = #{record.productAttr,jdbcType=VARCHAR}
|
|
|
+ product_attr = #{record.productAttr,jdbcType=VARCHAR},
|
|
|
+ hidden_ = #{record.hidden}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -389,6 +400,9 @@
|
|
|
<if test="productAttr != null">
|
|
|
product_attr = #{productAttr,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="hidden != null">
|
|
|
+ hidden_ = #{hidden},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
@@ -410,7 +424,8 @@
|
|
|
product_category_id = #{productCategoryId,jdbcType=BIGINT},
|
|
|
product_brand = #{productBrand,jdbcType=VARCHAR},
|
|
|
product_sn = #{productSn,jdbcType=VARCHAR},
|
|
|
- product_attr = #{productAttr,jdbcType=VARCHAR}
|
|
|
+ product_attr = #{productAttr,jdbcType=VARCHAR},
|
|
|
+ hidden_ = #{hidden}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|