|
@@ -37,9 +37,11 @@
|
|
<!-- 查询售后无理由退货集合 -->
|
|
<!-- 查询售后无理由退货集合 -->
|
|
<select id="listNoreasonBack" resultType="NoreasonBack" parameterType="NoreasonBack">
|
|
<select id="listNoreasonBack" resultType="NoreasonBack" parameterType="NoreasonBack">
|
|
select
|
|
select
|
|
- *
|
|
|
|
|
|
+ b.*,
|
|
|
|
+ o.sales_pay_time salesPayTime
|
|
from
|
|
from
|
|
- tb_rst_noreason_back
|
|
|
|
|
|
+ tb_rst_noreason_back b
|
|
|
|
+ LEFT JOIN tb_rst_sales_order_info o ON b.order_id = o.sales_id
|
|
<where>
|
|
<where>
|
|
<if test="customerId != null and customerId != ''">
|
|
<if test="customerId != null and customerId != ''">
|
|
customer_id = #{customerId}
|
|
customer_id = #{customerId}
|
|
@@ -72,168 +74,61 @@
|
|
#{noreasonBackCreateTime,jdbcType=TIMESTAMP}, #{noreasonBackUpdateTime,jdbcType=TIMESTAMP}
|
|
#{noreasonBackCreateTime,jdbcType=TIMESTAMP}, #{noreasonBackUpdateTime,jdbcType=TIMESTAMP}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
- <insert id="insertSelective" parameterType="NoreasonBack" >
|
|
|
|
- insert into tb_rst_noreason_back
|
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
|
- <if test="noreasonBackId != null" >
|
|
|
|
- noreason_back_id,
|
|
|
|
- </if>
|
|
|
|
- <if test="customerId != null" >
|
|
|
|
- customer_id,
|
|
|
|
- </if>
|
|
|
|
- <if test="orderId != null" >
|
|
|
|
- order_id,
|
|
|
|
- </if>
|
|
|
|
- <if test="signclosedId != null" >
|
|
|
|
- signclosed_id,
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackBackStatus != null" >
|
|
|
|
- noreason_back_back_status,
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackBackName != null" >
|
|
|
|
- noreason_back_back_name,
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackBackTel != null" >
|
|
|
|
- noreason_back_back_tel,
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackBackLogisticsCompany != null" >
|
|
|
|
- noreason_back_back_logistics_company,
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackBackLogisticsNo != null" >
|
|
|
|
- noreason_back_back_logistics_no,
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackBackPostage != null" >
|
|
|
|
- noreason_back_back_postage,
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackBackMachineNo != null" >
|
|
|
|
- noreason_back_back_machine_no,
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackDesc != null" >
|
|
|
|
- noreason_back_desc,
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackState != null" >
|
|
|
|
- noreason_back_state,
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackAlipay != null" >
|
|
|
|
- noreason_back_alipay,
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackIsTransfer != null" >
|
|
|
|
- noreason_back_is_transfer,
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackCreateTime != null" >
|
|
|
|
- noreason_back_create_time,
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackUpdateTime != null" >
|
|
|
|
- noreason_back_update_time,
|
|
|
|
- </if>
|
|
|
|
- </trim>
|
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
|
- <if test="noreasonBackId != null" >
|
|
|
|
- #{noreasonBackId,jdbcType=INTEGER},
|
|
|
|
- </if>
|
|
|
|
- <if test="customerId != null" >
|
|
|
|
- #{customerId,jdbcType=INTEGER},
|
|
|
|
- </if>
|
|
|
|
- <if test="orderId != null" >
|
|
|
|
- #{orderId,jdbcType=INTEGER},
|
|
|
|
- </if>
|
|
|
|
- <if test="signclosedId != null" >
|
|
|
|
- #{signclosedId,jdbcType=INTEGER},
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackBackStatus != null" >
|
|
|
|
- #{noreasonBackBackStatus,jdbcType=BIT},
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackBackName != null" >
|
|
|
|
- #{noreasonBackBackName,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackBackTel != null" >
|
|
|
|
- #{noreasonBackBackTel,jdbcType=CHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackBackLogisticsCompany != null" >
|
|
|
|
- #{noreasonBackBackLogisticsCompany,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackBackLogisticsNo != null" >
|
|
|
|
- #{noreasonBackBackLogisticsNo,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackBackPostage != null" >
|
|
|
|
- #{noreasonBackBackPostage,jdbcType=INTEGER},
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackBackMachineNo != null" >
|
|
|
|
- #{noreasonBackBackMachineNo,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackDesc != null" >
|
|
|
|
- #{noreasonBackDesc,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackState != null" >
|
|
|
|
- #{noreasonBackState,jdbcType=BIT},
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackAlipay != null" >
|
|
|
|
- #{noreasonBackAlipay,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackIsTransfer != null" >
|
|
|
|
- #{noreasonBackIsTransfer,jdbcType=BIT},
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackCreateTime != null" >
|
|
|
|
- #{noreasonBackCreateTime,jdbcType=TIMESTAMP},
|
|
|
|
- </if>
|
|
|
|
- <if test="noreasonBackUpdateTime != null" >
|
|
|
|
- #{noreasonBackUpdateTime,jdbcType=TIMESTAMP},
|
|
|
|
- </if>
|
|
|
|
- </trim>
|
|
|
|
- </insert>
|
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="NoreasonBack" >
|
|
|
|
|
|
+
|
|
|
|
+ <!-- 修改无理由退货信息 -->
|
|
|
|
+ <update id="updateNoreasonBack" parameterType="NoreasonBack" >
|
|
update tb_rst_noreason_back
|
|
update tb_rst_noreason_back
|
|
<set >
|
|
<set >
|
|
<if test="customerId != null" >
|
|
<if test="customerId != null" >
|
|
- customer_id = #{customerId,jdbcType=INTEGER},
|
|
|
|
|
|
+ customer_id = #{customerId},
|
|
</if>
|
|
</if>
|
|
<if test="orderId != null" >
|
|
<if test="orderId != null" >
|
|
- order_id = #{orderId,jdbcType=INTEGER},
|
|
|
|
|
|
+ order_id = #{orderId},
|
|
</if>
|
|
</if>
|
|
<if test="signclosedId != null" >
|
|
<if test="signclosedId != null" >
|
|
- signclosed_id = #{signclosedId,jdbcType=INTEGER},
|
|
|
|
|
|
+ signclosed_id = #{signclosedId},
|
|
</if>
|
|
</if>
|
|
<if test="noreasonBackBackStatus != null" >
|
|
<if test="noreasonBackBackStatus != null" >
|
|
- noreason_back_back_status = #{noreasonBackBackStatus,jdbcType=BIT},
|
|
|
|
|
|
+ noreason_back_back_status = #{noreasonBackBackStatus},
|
|
</if>
|
|
</if>
|
|
<if test="noreasonBackBackName != null" >
|
|
<if test="noreasonBackBackName != null" >
|
|
- noreason_back_back_name = #{noreasonBackBackName,jdbcType=VARCHAR},
|
|
|
|
|
|
+ noreason_back_back_name = #{noreasonBackBackName},
|
|
</if>
|
|
</if>
|
|
<if test="noreasonBackBackTel != null" >
|
|
<if test="noreasonBackBackTel != null" >
|
|
- noreason_back_back_tel = #{noreasonBackBackTel,jdbcType=CHAR},
|
|
|
|
|
|
+ noreason_back_back_tel = #{noreasonBackBackTel},
|
|
</if>
|
|
</if>
|
|
<if test="noreasonBackBackLogisticsCompany != null" >
|
|
<if test="noreasonBackBackLogisticsCompany != null" >
|
|
- noreason_back_back_logistics_company = #{noreasonBackBackLogisticsCompany,jdbcType=VARCHAR},
|
|
|
|
|
|
+ noreason_back_back_logistics_company = #{noreasonBackBackLogisticsCompany},
|
|
</if>
|
|
</if>
|
|
<if test="noreasonBackBackLogisticsNo != null" >
|
|
<if test="noreasonBackBackLogisticsNo != null" >
|
|
- noreason_back_back_logistics_no = #{noreasonBackBackLogisticsNo,jdbcType=VARCHAR},
|
|
|
|
|
|
+ noreason_back_back_logistics_no = #{noreasonBackBackLogisticsNo},
|
|
</if>
|
|
</if>
|
|
<if test="noreasonBackBackPostage != null" >
|
|
<if test="noreasonBackBackPostage != null" >
|
|
- noreason_back_back_postage = #{noreasonBackBackPostage,jdbcType=INTEGER},
|
|
|
|
|
|
+ noreason_back_back_postage = #{noreasonBackBackPostage},
|
|
</if>
|
|
</if>
|
|
<if test="noreasonBackBackMachineNo != null" >
|
|
<if test="noreasonBackBackMachineNo != null" >
|
|
- noreason_back_back_machine_no = #{noreasonBackBackMachineNo,jdbcType=VARCHAR},
|
|
|
|
|
|
+ noreason_back_back_machine_no = #{noreasonBackBackMachineNo},
|
|
</if>
|
|
</if>
|
|
<if test="noreasonBackDesc != null" >
|
|
<if test="noreasonBackDesc != null" >
|
|
- noreason_back_desc = #{noreasonBackDesc,jdbcType=VARCHAR},
|
|
|
|
|
|
+ noreason_back_desc = #{noreasonBackDesc},
|
|
</if>
|
|
</if>
|
|
<if test="noreasonBackState != null" >
|
|
<if test="noreasonBackState != null" >
|
|
- noreason_back_state = #{noreasonBackState,jdbcType=BIT},
|
|
|
|
|
|
+ noreason_back_state = #{noreasonBackState},
|
|
</if>
|
|
</if>
|
|
<if test="noreasonBackAlipay != null" >
|
|
<if test="noreasonBackAlipay != null" >
|
|
- noreason_back_alipay = #{noreasonBackAlipay,jdbcType=VARCHAR},
|
|
|
|
|
|
+ noreason_back_alipay = #{noreasonBackAlipay},
|
|
</if>
|
|
</if>
|
|
<if test="noreasonBackIsTransfer != null" >
|
|
<if test="noreasonBackIsTransfer != null" >
|
|
- noreason_back_is_transfer = #{noreasonBackIsTransfer,jdbcType=BIT},
|
|
|
|
|
|
+ noreason_back_is_transfer = #{noreasonBackIsTransfer},
|
|
</if>
|
|
</if>
|
|
<if test="noreasonBackCreateTime != null" >
|
|
<if test="noreasonBackCreateTime != null" >
|
|
- noreason_back_create_time = #{noreasonBackCreateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ noreason_back_create_time = #{noreasonBackCreateTime},
|
|
</if>
|
|
</if>
|
|
<if test="noreasonBackUpdateTime != null" >
|
|
<if test="noreasonBackUpdateTime != null" >
|
|
- noreason_back_update_time = #{noreasonBackUpdateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ noreason_back_update_time = #{noreasonBackUpdateTime},
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
- where noreason_back_id = #{noreasonBackId,jdbcType=INTEGER}
|
|
|
|
|
|
+ where noreason_back_id = #{noreasonBackId}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="NoreasonBack" >
|
|
<update id="updateByPrimaryKey" parameterType="NoreasonBack" >
|
|
update tb_rst_noreason_back
|
|
update tb_rst_noreason_back
|