|
@@ -11,6 +11,7 @@
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="member_username" jdbcType="VARCHAR" property="memberUsername" />
|
|
|
<result column="return_amount" jdbcType="DECIMAL" property="returnAmount" />
|
|
|
+ <result column="precision_amount" jdbcType="DECIMAL" property="precisionAmount" />
|
|
|
<result column="return_name" jdbcType="VARCHAR" property="returnName" />
|
|
|
<result column="return_phone" jdbcType="VARCHAR" property="returnPhone" />
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
@@ -94,7 +95,7 @@
|
|
|
id, order_id, company_address_id, product_id, order_sn, create_time, member_username,
|
|
|
return_amount, return_name, return_phone, status, handle_time, product_pic, product_name,
|
|
|
product_brand, product_attr, product_count, product_price, product_real_price, reason,
|
|
|
- description, proof_pics, handle_note, handle_man, receive_man, receive_time, receive_note,delivery_sn,order_item_id
|
|
|
+ description, proof_pics, handle_note, handle_man, receive_man, receive_time, receive_note,delivery_sn,order_item_id,precision_amount
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderReturnApplyExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -138,7 +139,7 @@
|
|
|
product_count, product_price, product_real_price,
|
|
|
reason, description, proof_pics,
|
|
|
handle_note, handle_man, receive_man,
|
|
|
- receive_time, receive_note,delivery_sn,order_item_id)
|
|
|
+ receive_time, receive_note,delivery_sn,order_item_id,precision_amount)
|
|
|
values (#{orderId,jdbcType=BIGINT}, #{companyAddressId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT},
|
|
|
#{orderSn,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{memberUsername,jdbcType=VARCHAR},
|
|
|
#{returnAmount,jdbcType=DECIMAL}, #{returnName,jdbcType=VARCHAR}, #{returnPhone,jdbcType=VARCHAR},
|
|
@@ -147,7 +148,7 @@
|
|
|
#{productCount,jdbcType=INTEGER}, #{productPrice,jdbcType=DECIMAL}, #{productRealPrice,jdbcType=DECIMAL},
|
|
|
#{reason,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{proofPics,jdbcType=VARCHAR},
|
|
|
#{handleNote,jdbcType=VARCHAR}, #{handleMan,jdbcType=VARCHAR}, #{receiveMan,jdbcType=VARCHAR},
|
|
|
- #{receiveTime,jdbcType=TIMESTAMP}, #{receiveNote,jdbcType=VARCHAR},#{deliverySn},#{orderItemId})
|
|
|
+ #{receiveTime,jdbcType=TIMESTAMP}, #{receiveNote,jdbcType=VARCHAR},#{deliverySn},#{orderItemId},#{precisionAmount})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderReturnApply">
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
@@ -239,6 +240,9 @@
|
|
|
<if test="orderItemId != null">
|
|
|
order_item_id,
|
|
|
</if>
|
|
|
+ <if test="precisionAmount != null">
|
|
|
+ precision_amount,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="orderId != null">
|
|
@@ -325,6 +329,9 @@
|
|
|
<if test="orderItemId != null">
|
|
|
#{orderItemId},
|
|
|
</if>
|
|
|
+ <if test="precisionAmount != null">
|
|
|
+ #{precisionAmount},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderReturnApplyExample" resultType="java.lang.Long">
|
|
@@ -423,6 +430,9 @@
|
|
|
<if test="record.orderItemId != null">
|
|
|
order_item_id = #{record.orderItemId},
|
|
|
</if>
|
|
|
+ <if test="record.precisionAmount != null">
|
|
|
+ precision_amount = #{record.precisionAmount},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -458,6 +468,7 @@
|
|
|
receive_time = #{record.receiveTime,jdbcType=TIMESTAMP},
|
|
|
receive_note = #{record.receiveNote,jdbcType=VARCHAR},
|
|
|
order_item_id = #{record.orderItemId},
|
|
|
+ precision_amount = #{record.precisionAmount},
|
|
|
delivery_sn = #{record.deliverySn,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -550,6 +561,9 @@
|
|
|
<if test="orderItemId != null">
|
|
|
order_item_id = #{orderItemId},
|
|
|
</if>
|
|
|
+ <if test="precisionAmount != null">
|
|
|
+ precision_amount = #{precisionAmount},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
@@ -582,6 +596,7 @@
|
|
|
receive_time = #{receiveTime,jdbcType=TIMESTAMP},
|
|
|
receive_note = #{receiveNote,jdbcType=VARCHAR},
|
|
|
order_item_id = #{orderItemId},
|
|
|
+ precision_amount = #{precisionAmount},
|
|
|
delivery_sn = #{deliverySn,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|