支付
This commit is contained in:
@@ -0,0 +1,305 @@
|
||||
<?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.payment.lkl.mapper.ZdyLklReturnMapper">
|
||||
|
||||
<resultMap type="ZdyLklReturn" id="ZdyLklReturnResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="merchant_no" column="merchant_no"/>
|
||||
<result property="out_trade_no" column="out_trade_no"/>
|
||||
<result property="trade_no" column="trade_no"/>
|
||||
<result property="log_no" column="log_no"/>
|
||||
<result property="trade_main_type" column="trade_main_type"/>
|
||||
<result property="split_attr" column="split_attr"/>
|
||||
<result property="acc_trade_no" column="acc_trade_no"/>
|
||||
<result property="account_type" column="account_type"/>
|
||||
<result property="trade_state" column="trade_state"/>
|
||||
<result property="trade_state_desc" column="trade_state_desc"/>
|
||||
<result property="total_amount" column="total_amount"/>
|
||||
<result property="payer_amount" column="payer_amount"/>
|
||||
<result property="acc_settle_amount" column="acc_settle_amount"/>
|
||||
<result property="acc_mdiscount_amount" column="acc_mdiscount_amount"/>
|
||||
<result property="acc_discount_amount" column="acc_discount_amount"/>
|
||||
<result property="acc_other_discount_amount" column="acc_other_discount_amount"/>
|
||||
<result property="trade_time" column="trade_time"/>
|
||||
<result property="user_id1" column="user_id1"/>
|
||||
<result property="user_id2" column="user_id2"/>
|
||||
<result property="bank_type" column="bank_type"/>
|
||||
<result property="card_type" column="card_type"/>
|
||||
<result property="acc_activity_id" column="acc_activity_id"/>
|
||||
<result property="acc_resp_fields" column="acc_resp_fields"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectZdyLklReturnVo">
|
||||
select id,
|
||||
order_id,
|
||||
merchant_no,
|
||||
out_trade_no,
|
||||
trade_no,
|
||||
log_no,
|
||||
trade_main_type,
|
||||
split_attr,
|
||||
split_info,
|
||||
acc_trade_no,
|
||||
account_type,
|
||||
trade_state,
|
||||
trade_state_desc,
|
||||
total_amount,
|
||||
payer_amount,
|
||||
acc_settle_amount,
|
||||
acc_mdiscount_amount,
|
||||
acc_discount_amount,
|
||||
acc_other_discount_amount,
|
||||
trade_time,
|
||||
user_id1,
|
||||
user_id2,
|
||||
bank_type,
|
||||
card_type,
|
||||
acc_activity_id,
|
||||
acc_resp_fields,
|
||||
refund_split_info,
|
||||
remark,
|
||||
create_time
|
||||
from zdy_lkl_return
|
||||
</sql>
|
||||
|
||||
<select id="selectZdyLklReturnList" parameterType="ZdyLklReturn" resultMap="ZdyLklReturnResult">
|
||||
<include refid="selectZdyLklReturnVo"/>
|
||||
<where>
|
||||
<if test="orderId != null ">
|
||||
and order_id = #{orderId}
|
||||
</if>
|
||||
<if test="merchant_no != null and merchant_no != ''">
|
||||
and merchant_no = #{merchant_no}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectZdyLklReturnById" parameterType="Long"
|
||||
resultMap="ZdyLklReturnResult">
|
||||
<include refid="selectZdyLklReturnVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertZdyLklReturn" parameterType="ZdyLklReturn" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into zdy_lkl_return
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="orderId != null">order_id,
|
||||
</if>
|
||||
<if test="merchant_no != null">merchant_no,
|
||||
</if>
|
||||
<if test="out_trade_no != null">out_trade_no,
|
||||
</if>
|
||||
<if test="trade_no != null">trade_no,
|
||||
</if>
|
||||
<if test="log_no != null">log_no,
|
||||
</if>
|
||||
<if test="trade_main_type != null">trade_main_type,
|
||||
</if>
|
||||
<if test="split_attr != null">split_attr,
|
||||
</if>
|
||||
<if test="acc_trade_no != null">acc_trade_no,
|
||||
</if>
|
||||
<if test="account_type != null">account_type,
|
||||
</if>
|
||||
<if test="trade_state != null">trade_state,
|
||||
</if>
|
||||
<if test="trade_state_desc != null">trade_state_desc,
|
||||
</if>
|
||||
<if test="total_amount != null">total_amount,
|
||||
</if>
|
||||
<if test="payer_amount != null">payer_amount,
|
||||
</if>
|
||||
<if test="acc_settle_amount != null">acc_settle_amount,
|
||||
</if>
|
||||
<if test="acc_mdiscount_amount != null">acc_mdiscount_amount,
|
||||
</if>
|
||||
<if test="acc_discount_amount != null">acc_discount_amount,
|
||||
</if>
|
||||
<if test="acc_other_discount_amount != null">acc_other_discount_amount,
|
||||
</if>
|
||||
<if test="trade_time != null">trade_time,
|
||||
</if>
|
||||
<if test="user_id1 != null">user_id1,
|
||||
</if>
|
||||
<if test="user_id2 != null">user_id2,
|
||||
</if>
|
||||
<if test="bank_type != null">bank_type,
|
||||
</if>
|
||||
<if test="card_type != null">card_type,
|
||||
</if>
|
||||
<if test="acc_activity_id != null">acc_activity_id,
|
||||
</if>
|
||||
<if test="remark != null">remark,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="acc_resp_fields != null">acc_resp_fields,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="orderId != null">#{orderId},
|
||||
</if>
|
||||
<if test="merchant_no != null">#{merchant_no},
|
||||
</if>
|
||||
<if test="out_trade_no != null">#{out_trade_no},
|
||||
</if>
|
||||
<if test="trade_no != null">#{trade_no},
|
||||
</if>
|
||||
<if test="log_no != null">#{log_no},
|
||||
</if>
|
||||
<if test="trade_main_type != null">#{trade_main_type},
|
||||
</if>
|
||||
<if test="split_attr != null">#{split_attr},
|
||||
</if>
|
||||
<if test="acc_trade_no != null">#{acc_trade_no},
|
||||
</if>
|
||||
<if test="account_type != null">#{account_type},
|
||||
</if>
|
||||
<if test="trade_state != null">#{trade_state},
|
||||
</if>
|
||||
<if test="trade_state_desc != null">#{trade_state_desc},
|
||||
</if>
|
||||
<if test="total_amount != null">#{total_amount},
|
||||
</if>
|
||||
<if test="payer_amount != null">#{payer_amount},
|
||||
</if>
|
||||
<if test="acc_settle_amount != null">#{acc_settle_amount},
|
||||
</if>
|
||||
<if test="acc_mdiscount_amount != null">#{acc_mdiscount_amount},
|
||||
</if>
|
||||
<if test="acc_discount_amount != null">#{acc_discount_amount},
|
||||
</if>
|
||||
<if test="acc_other_discount_amount != null">#{acc_other_discount_amount},
|
||||
</if>
|
||||
<if test="trade_time != null">#{trade_time},
|
||||
</if>
|
||||
<if test="user_id1 != null">#{user_id1},
|
||||
</if>
|
||||
<if test="user_id2 != null">#{user_id2},
|
||||
</if>
|
||||
<if test="bank_type != null">#{bank_type},
|
||||
</if>
|
||||
<if test="card_type != null">#{card_type},
|
||||
</if>
|
||||
<if test="acc_activity_id != null">#{acc_activity_id},
|
||||
</if>
|
||||
<if test="remark != null">#{remark},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="acc_resp_fields != null">#{acc_resp_fields},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateZdyLklReturn" parameterType="ZdyLklReturn">
|
||||
update zdy_lkl_return
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="orderId != null">order_id =
|
||||
#{orderId},
|
||||
</if>
|
||||
<if test="merchant_no != null">merchant_no =
|
||||
#{merchant_no},
|
||||
</if>
|
||||
<if test="out_trade_no != null">out_trade_no =
|
||||
#{out_trade_no},
|
||||
</if>
|
||||
<if test="trade_no != null">trade_no =
|
||||
#{trade_no},
|
||||
</if>
|
||||
<if test="log_no != null">log_no =
|
||||
#{log_no},
|
||||
</if>
|
||||
<if test="trade_main_type != null">trade_main_type =
|
||||
#{trade_main_type},
|
||||
</if>
|
||||
<if test="split_attr != null">split_attr =
|
||||
#{split_attr},
|
||||
</if>
|
||||
<if test="split_info != null">split_info =
|
||||
#{split_info},
|
||||
</if>
|
||||
<if test="acc_trade_no != null">acc_trade_no =
|
||||
#{acc_trade_no},
|
||||
</if>
|
||||
<if test="account_type != null">account_type =
|
||||
#{account_type},
|
||||
</if>
|
||||
<if test="trade_state != null">trade_state =
|
||||
#{trade_state},
|
||||
</if>
|
||||
<if test="trade_state_desc != null">trade_state_desc =
|
||||
#{trade_state_desc},
|
||||
</if>
|
||||
<if test="total_amount != null">total_amount =
|
||||
#{total_amount},
|
||||
</if>
|
||||
<if test="payer_amount != null">payer_amount =
|
||||
#{payer_amount},
|
||||
</if>
|
||||
<if test="acc_settle_amount != null">acc_settle_amount =
|
||||
#{acc_settle_amount},
|
||||
</if>
|
||||
<if test="acc_mdiscount_amount != null">acc_mdiscount_amount =
|
||||
#{acc_mdiscount_amount},
|
||||
</if>
|
||||
<if test="acc_discount_amount != null">acc_discount_amount =
|
||||
#{acc_discount_amount},
|
||||
</if>
|
||||
<if test="acc_other_discount_amount != null">acc_other_discount_amount =
|
||||
#{acc_other_discount_amount},
|
||||
</if>
|
||||
<if test="trade_time != null">trade_time =
|
||||
#{trade_time},
|
||||
</if>
|
||||
<if test="user_id1 != null">user_id1 =
|
||||
#{user_id1},
|
||||
</if>
|
||||
<if test="user_id2 != null">user_id2 =
|
||||
#{user_id2},
|
||||
</if>
|
||||
<if test="bank_type != null">bank_type =
|
||||
#{bank_type},
|
||||
</if>
|
||||
<if test="card_type != null">card_type =
|
||||
#{card_type},
|
||||
</if>
|
||||
<if test="acc_activity_id != null">acc_activity_id =
|
||||
#{acc_activity_id},
|
||||
</if>
|
||||
<if test="remark != null">remark =
|
||||
#{remark},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="acc_resp_fields != null">acc_resp_fields =
|
||||
#{acc_resp_fields},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteZdyLklReturnById" parameterType="Long">
|
||||
delete
|
||||
from zdy_lkl_return
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteZdyLklReturnByIds" parameterType="String">
|
||||
delete from zdy_lkl_return where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<select id="selectZdyLklReturnByOrderId" parameterType="ZdyLklReturn" resultMap="ZdyLklReturnResult">
|
||||
<include refid="selectZdyLklReturnVo"/> where order_id = #{orderId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user