|  | @@ -27,6 +27,7 @@
 | 
	
		
			
				|  |  |      <result column="promoter_id" jdbcType="INTEGER" property="promoterId" />
 | 
	
		
			
				|  |  |      <result column="share_proportion_" jdbcType="INTEGER" property="shareProportion" />
 | 
	
		
			
				|  |  |      <result column="precision_amount" jdbcType="INTEGER" property="precisionAmount" />
 | 
	
		
			
				|  |  | +    <result column="stock_json" jdbcType="VARCHAR" property="stockJson" />
 | 
	
		
			
				|  |  |    </resultMap>
 | 
	
		
			
				|  |  |    <sql id="Example_Where_Clause">
 | 
	
		
			
				|  |  |      <where>
 | 
	
	
		
			
				|  | @@ -90,7 +91,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,promoter_id,share_proportion_,precision_amount
 | 
	
		
			
				|  |  | +    gift_integration, gift_growth, product_attr,promoter_id,share_proportion_,precision_amount,stock_json
 | 
	
		
			
				|  |  |    </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  (
 | 
	
	
		
			
				|  | @@ -134,14 +135,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,promoter_id,share_proportion_,precision_amount)
 | 
	
		
			
				|  |  | +      gift_growth, product_attr,promoter_id,share_proportion_,precision_amount,stock_json)
 | 
	
		
			
				|  |  |      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},#{promoterId},#{shareProportion},#{precisionAmount})
 | 
	
		
			
				|  |  | +      #{giftGrowth,jdbcType=INTEGER}, #{productAttr,jdbcType=VARCHAR},#{promoterId},#{shareProportion},#{precisionAmount},#{stockJson})
 | 
	
		
			
				|  |  |    </insert>
 | 
	
		
			
				|  |  |    <insert id="insertSelective" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderItem">
 | 
	
		
			
				|  |  |      <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
 | 
	
	
		
			
				|  | @@ -218,6 +219,9 @@
 | 
	
		
			
				|  |  |        <if test="precisionAmount != null">
 | 
	
		
			
				|  |  |          precision_amount,
 | 
	
		
			
				|  |  |        </if>
 | 
	
		
			
				|  |  | +        <if test="stockJson != null">
 | 
	
		
			
				|  |  | +        stock_json,
 | 
	
		
			
				|  |  | +        </if>
 | 
	
		
			
				|  |  |      </trim>
 | 
	
		
			
				|  |  |      <trim prefix="values (" suffix=")" suffixOverrides=",">
 | 
	
		
			
				|  |  |        <if test="orderId != null">
 | 
	
	
		
			
				|  | @@ -289,6 +293,9 @@
 | 
	
		
			
				|  |  |        <if test="precisionAmount != null">
 | 
	
		
			
				|  |  |          #{precisionAmount},
 | 
	
		
			
				|  |  |        </if>
 | 
	
		
			
				|  |  | +        <if test="stockJson != null">
 | 
	
		
			
				|  |  | +        #{stockJson,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +        </if>
 | 
	
		
			
				|  |  |      </trim>
 | 
	
		
			
				|  |  |    </insert>
 | 
	
		
			
				|  |  |    <select id="countByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderItemExample" resultType="java.lang.Long">
 | 
	
	
		
			
				|  | @@ -372,6 +379,9 @@
 | 
	
		
			
				|  |  |        <if test="record.precisionAmount != null">
 | 
	
		
			
				|  |  |          precision_amount = #{record.precisionAmount,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  |        </if>
 | 
	
		
			
				|  |  | +        <if test="record.stockJson != null">
 | 
	
		
			
				|  |  | +        stock_json = #{record.stockJson,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +        </if>
 | 
	
		
			
				|  |  |      </set>
 | 
	
		
			
				|  |  |      <if test="_parameter != null">
 | 
	
		
			
				|  |  |        <include refid="Update_By_Example_Where_Clause" />
 | 
	
	
		
			
				|  | @@ -402,6 +412,7 @@
 | 
	
		
			
				|  |  |        promoter_id = #{record.promoterId,jdbcType=INTEGER},
 | 
	
		
			
				|  |  |        share_proportion_ = #{record.shareProportion},
 | 
	
		
			
				|  |  |        precision_amount = #{record.precisionAmount},
 | 
	
		
			
				|  |  | +        stock_json = #{record.stockJson},
 | 
	
		
			
				|  |  |        product_attr = #{record.productAttr,jdbcType=VARCHAR}
 | 
	
		
			
				|  |  |      <if test="_parameter != null">
 | 
	
		
			
				|  |  |        <include refid="Update_By_Example_Where_Clause" />
 | 
	
	
		
			
				|  | @@ -479,6 +490,9 @@
 | 
	
		
			
				|  |  |        <if test="precisionAmount != null">
 | 
	
		
			
				|  |  |          precision_amount = #{precisionAmount,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  |        </if>
 | 
	
		
			
				|  |  | +        <if test="stockJson != null">
 | 
	
		
			
				|  |  | +        stock_json = #{stockJson,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +        </if>
 | 
	
		
			
				|  |  |      </set>
 | 
	
		
			
				|  |  |      where id = #{id,jdbcType=BIGINT}
 | 
	
		
			
				|  |  |    </update>
 | 
	
	
		
			
				|  | @@ -506,6 +520,7 @@
 | 
	
		
			
				|  |  |        promoter_id = #{promoterId,jdbcType=INTEGER},
 | 
	
		
			
				|  |  |      share_proportion_ = #{shareProportion},
 | 
	
		
			
				|  |  |      precision_amount = #{precisionAmount},
 | 
	
		
			
				|  |  | +    stock_json = #{stockJson},
 | 
	
		
			
				|  |  |        product_attr = #{productAttr,jdbcType=VARCHAR}
 | 
	
		
			
				|  |  |      where id = #{id,jdbcType=BIGINT}
 | 
	
		
			
				|  |  |    </update>
 |