195 lines
6.8 KiB
XML
195 lines
6.8 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.zhwl.wcsc.mapper.ZdyWcscRefundLogMapper">
|
|
|
|
<resultMap type="ZdyWcscRefundLog" id="ZdyWcscRefundLogResult">
|
|
<result property="id" column="id"/>
|
|
<result property="orderSn" column="order_sn"/>
|
|
<result property="refundSn" column="refund_sn"/>
|
|
<result property="orderItemId" column="order_item_id"/>
|
|
<result property="payFee" column="pay_fee"/>
|
|
<result property="refundFee" column="refund_fee"/>
|
|
<result property="payType" column="pay_type"/>
|
|
<result property="status" column="status"/>
|
|
<result property="paymentJson" column="payment_json"/>
|
|
<result property="createTime" column="create_time"/>
|
|
<result property="updateTime" column="update_time"/>
|
|
<result property="createBy" column="create_by"/>
|
|
<result property="updateBy" column="update_by"/>
|
|
</resultMap>
|
|
|
|
<sql id="selectZdyWcscRefundLogVo">
|
|
select id,
|
|
order_sn,
|
|
refund_sn,
|
|
order_item_id,
|
|
pay_fee,
|
|
refund_fee,
|
|
pay_type,
|
|
status,
|
|
payment_json,
|
|
create_time,
|
|
update_time,
|
|
create_by,
|
|
update_by
|
|
from zdy_wcsc_refund_log
|
|
</sql>
|
|
|
|
<select id="selectZdyWcscRefundLogList" parameterType="ZdyWcscRefundLog" resultMap="ZdyWcscRefundLogResult">
|
|
<include refid="selectZdyWcscRefundLogVo"/>
|
|
<where>
|
|
<if test="orderSn != null and orderSn != ''">
|
|
and order_sn = #{orderSn}
|
|
</if>
|
|
<if test="refundSn != null and refundSn != ''">
|
|
and refund_sn = #{refundSn}
|
|
</if>
|
|
<if test="orderItemId != null and orderItemId != ''">
|
|
and order_item_id = #{orderItemId}
|
|
</if>
|
|
<if test="payFee != null ">
|
|
and pay_fee = #{payFee}
|
|
</if>
|
|
<if test="refundFee != null ">
|
|
and refund_fee = #{refundFee}
|
|
</if>
|
|
<if test="payType != null and payType != ''">
|
|
and pay_type = #{payType}
|
|
</if>
|
|
<if test="status != null ">
|
|
and status = #{status}
|
|
</if>
|
|
<if test="paymentJson != null and paymentJson != ''">
|
|
and payment_json = #{paymentJson}
|
|
</if>
|
|
<if test="createtime != null ">
|
|
and createtime = #{createtime}
|
|
</if>
|
|
<if test="updatetime != null ">
|
|
and updatetime = #{updatetime}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
|
|
<select id="selectZdyWcscRefundLogById" parameterType="Integer"
|
|
resultMap="ZdyWcscRefundLogResult">
|
|
<include refid="selectZdyWcscRefundLogVo"/>
|
|
where id = #{id}
|
|
</select>
|
|
|
|
<insert id="insertZdyWcscRefundLog" parameterType="ZdyWcscRefundLog" useGeneratedKeys="true"
|
|
keyProperty="id">
|
|
insert into zdy_wcsc_refund_log
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="orderSn != null">order_sn,
|
|
</if>
|
|
<if test="refundSn != null">refund_sn,
|
|
</if>
|
|
<if test="orderItemId != null">order_item_id,
|
|
</if>
|
|
<if test="payFee != null">pay_fee,
|
|
</if>
|
|
<if test="refundFee != null">refund_fee,
|
|
</if>
|
|
<if test="payType != null and payType != ''">pay_type,
|
|
</if>
|
|
<if test="status != null">status,
|
|
</if>
|
|
<if test="paymentJson != null">payment_json,
|
|
</if>
|
|
<if test="createTime != null">create_time,
|
|
</if>
|
|
<if test="updateTime != null">update_time,
|
|
</if>
|
|
<if test="createBy != null">create_by,
|
|
</if>
|
|
<if test="updateBy != null">update_by,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="orderSn != null">#{orderSn},
|
|
</if>
|
|
<if test="refundSn != null">#{refundSn},
|
|
</if>
|
|
<if test="orderItemId != null">#{orderItemId},
|
|
</if>
|
|
<if test="payFee != null">#{payFee},
|
|
</if>
|
|
<if test="refundFee != null">#{refundFee},
|
|
</if>
|
|
<if test="payType != null and payType != ''">#{payType},
|
|
</if>
|
|
<if test="status != null">#{status},
|
|
</if>
|
|
<if test="paymentJson != null">#{paymentJson},
|
|
</if>
|
|
<if test="createTime != null">#{createTime},
|
|
</if>
|
|
<if test="updateTime != null">#{updateTime},
|
|
</if>
|
|
<if test="createBy != null">#{createBy},
|
|
</if>
|
|
<if test="updateBy != null">#{updateBy},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
|
|
<update id="updateZdyWcscRefundLog" parameterType="ZdyWcscRefundLog">
|
|
update zdy_wcsc_refund_log
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="orderSn != null">order_sn =
|
|
#{orderSn},
|
|
</if>
|
|
<if test="refundSn != null">refund_sn =
|
|
#{refundSn},
|
|
</if>
|
|
<if test="orderItemId != null">order_item_id =
|
|
#{orderItemId},
|
|
</if>
|
|
<if test="payFee != null">pay_fee =
|
|
#{payFee},
|
|
</if>
|
|
<if test="refundFee != null">refund_fee =
|
|
#{refundFee},
|
|
</if>
|
|
<if test="payType != null and payType != ''">pay_type =
|
|
#{payType},
|
|
</if>
|
|
<if test="status != null">status =
|
|
#{status},
|
|
</if>
|
|
<if test="paymentJson != null">payment_json =
|
|
#{paymentJson},
|
|
</if>
|
|
<if test="createTime != null">create_time =
|
|
#{createTime},
|
|
</if>
|
|
<if test="updateTime != null">update_time =
|
|
#{updateTime},
|
|
</if>
|
|
<if test="createBy != null">create_by =
|
|
#{createBy},
|
|
</if>
|
|
<if test="updateBy != null">update_by =
|
|
#{updateBy},
|
|
</if>
|
|
</trim>
|
|
where id = #{id}
|
|
</update>
|
|
|
|
<delete id="deleteZdyWcscRefundLogById" parameterType="Integer">
|
|
delete
|
|
from zdy_wcsc_refund_log
|
|
where id = #{id}
|
|
</delete>
|
|
|
|
<delete id="deleteZdyWcscRefundLogByIds" parameterType="String">
|
|
delete from zdy_wcsc_refund_log where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
</foreach>
|
|
</delete>
|
|
</mapper>
|