|
@@ -24,6 +24,8 @@
|
|
|
<result column="gift_growth" jdbcType="INTEGER" property="giftGrowth" />
|
|
|
<result column="product_attr" jdbcType="VARCHAR" property="productAttr" />
|
|
|
<result column="returnStatus" jdbcType="INTEGER" property="returnStatus" />
|
|
|
+ <result column="promoter_id" jdbcType="INTEGER" property="promoterId" />
|
|
|
+ <result column="share_proportion_" jdbcType="INTEGER" property="shareProportion" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -87,7 +89,7 @@
|
|
|
id, order_id, order_sn, product_id, product_pic, product_name, product_brand, product_sn,
|
|
|
product_price, product_quantity, product_sku_id, product_sku_code, product_category_id,
|
|
|
promotion_name, promotion_amount, coupon_amount, integration_amount, real_amount,
|
|
|
- gift_integration, gift_growth, product_attr
|
|
|
+ gift_integration, gift_growth, product_attr,promoter_id,share_proportion_
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderItemExample" resultMap="BaseResultMap">
|
|
|
select a.*,if(oora.status is null,-1,oora.status) as returnStatus from (
|
|
@@ -131,14 +133,14 @@
|
|
|
product_sku_id, product_sku_code, product_category_id,
|
|
|
promotion_name, promotion_amount, coupon_amount,
|
|
|
integration_amount, real_amount, gift_integration,
|
|
|
- gift_growth, product_attr)
|
|
|
+ gift_growth, product_attr,promoter_id,share_proportion_)
|
|
|
values (#{orderId,jdbcType=BIGINT}, #{orderSn,jdbcType=VARCHAR}, #{productId,jdbcType=BIGINT},
|
|
|
#{productPic,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, #{productBrand,jdbcType=VARCHAR},
|
|
|
#{productSn,jdbcType=VARCHAR}, #{productPrice,jdbcType=DECIMAL}, #{productQuantity,jdbcType=INTEGER},
|
|
|
#{productSkuId,jdbcType=BIGINT}, #{productSkuCode,jdbcType=VARCHAR}, #{productCategoryId,jdbcType=BIGINT},
|
|
|
#{promotionName,jdbcType=VARCHAR}, #{promotionAmount,jdbcType=DECIMAL}, #{couponAmount,jdbcType=DECIMAL},
|
|
|
#{integrationAmount,jdbcType=DECIMAL}, #{realAmount,jdbcType=DECIMAL}, #{giftIntegration,jdbcType=INTEGER},
|
|
|
- #{giftGrowth,jdbcType=INTEGER}, #{productAttr,jdbcType=VARCHAR})
|
|
|
+ #{giftGrowth,jdbcType=INTEGER}, #{productAttr,jdbcType=VARCHAR},#{promoterId},#{shareProportion})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderItem">
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
@@ -206,6 +208,12 @@
|
|
|
<if test="productAttr != null">
|
|
|
product_attr,
|
|
|
</if>
|
|
|
+ <if test="promoterId != null">
|
|
|
+ promoter_id,
|
|
|
+ </if>
|
|
|
+ <if test="shareProportion != null">
|
|
|
+ share_proportion_,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="orderId != null">
|
|
@@ -268,6 +276,12 @@
|
|
|
<if test="productAttr != null">
|
|
|
#{productAttr,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="promoterId != null">
|
|
|
+ #{promoterId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="shareProportion != null">
|
|
|
+ #{shareProportion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderItemExample" resultType="java.lang.Long">
|
|
@@ -342,6 +356,12 @@
|
|
|
<if test="record.productAttr != null">
|
|
|
product_attr = #{record.productAttr,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.promoterId != null">
|
|
|
+ promoter_id = #{record.promoterId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.shareProportion != null">
|
|
|
+ share_proportion_ = #{record.shareProportion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -369,6 +389,8 @@
|
|
|
real_amount = #{record.realAmount,jdbcType=DECIMAL},
|
|
|
gift_integration = #{record.giftIntegration,jdbcType=INTEGER},
|
|
|
gift_growth = #{record.giftGrowth,jdbcType=INTEGER},
|
|
|
+ promoter_id = #{record.promoterId,jdbcType=INTEGER},
|
|
|
+ share_proportion_ = #{record.shareProportion},
|
|
|
product_attr = #{record.productAttr,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -437,6 +459,12 @@
|
|
|
<if test="productAttr != null">
|
|
|
product_attr = #{productAttr,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="promoterId != null">
|
|
|
+ promoter_id = #{promoterId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="shareProportion != null">
|
|
|
+ share_proportion_ = #{shareProportion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
@@ -461,6 +489,8 @@
|
|
|
real_amount = #{realAmount,jdbcType=DECIMAL},
|
|
|
gift_integration = #{giftIntegration,jdbcType=INTEGER},
|
|
|
gift_growth = #{giftGrowth,jdbcType=INTEGER},
|
|
|
+ promoter_id = #{promoterId,jdbcType=INTEGER},
|
|
|
+ share_proportion_ = #{shareProportion},
|
|
|
product_attr = #{productAttr,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|