add 汇付支付回调表

This commit is contained in:
2023-05-20 10:19:20 +08:00
parent c8da3c3ba6
commit 0dcb78d3a3
3 changed files with 332 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
package com.jsowell.pile.domain;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
/**
* adapay_callback_record
* @author
*/
@Data
public class AdapayCallbackRecord implements Serializable {
/**
* 主键id
*/
private Integer id;
/**
* 汇付商户appId
*/
private String appId;
/**
* 订单附加说明
*/
private String description;
/**
* 支付创建时间
*/
private String createdTime;
/**
* 支付完成时间
*/
private String endTime;
private String expend;
private BigDecimal feeAmt;
/**
* 商户支付订单号
*/
private Integer orderNo;
private Integer outTransId;
private Integer partyOrderId;
private BigDecimal payAmt;
private String payChannel;
private BigDecimal realAmt;
private String shareEq;
private String status;
private String wxUserId;
/**
* 创建时间
*/
private Date createTime;
/**
* 删除标识0-正常1-删除)
*/
private String delFlag;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,17 @@
package com.jsowell.pile.mapper;
import generate.AdapayCallbackRecord;
public interface AdapayCallbackRecordMapper {
int deleteByPrimaryKey(Integer id);
int insert(AdapayCallbackRecord record);
int insertSelective(AdapayCallbackRecord record);
AdapayCallbackRecord selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(AdapayCallbackRecord record);
int updateByPrimaryKey(AdapayCallbackRecord record);
}

View File

@@ -0,0 +1,240 @@
<?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.jsowell.pile.mapper.AdapayCallbackRecordMapper">
<resultMap id="BaseResultMap" type="com.jsowell.pile.domain.AdapayCallbackRecord">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="app_id" jdbcType="VARCHAR" property="appId" />
<result column="description" jdbcType="VARCHAR" property="description" />
<result column="created_time" jdbcType="VARCHAR" property="createdTime" />
<result column="end_time" jdbcType="VARCHAR" property="endTime" />
<result column="expend" jdbcType="VARCHAR" property="expend" />
<result column="fee_amt" jdbcType="DECIMAL" property="feeAmt" />
<result column="order_no" jdbcType="INTEGER" property="orderNo" />
<result column="out_trans_id" jdbcType="INTEGER" property="outTransId" />
<result column="party_order_id" jdbcType="INTEGER" property="partyOrderId" />
<result column="pay_amt" jdbcType="DECIMAL" property="payAmt" />
<result column="pay_channel" jdbcType="VARCHAR" property="payChannel" />
<result column="real_amt" jdbcType="DECIMAL" property="realAmt" />
<result column="share_eq" jdbcType="VARCHAR" property="shareEq" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="wx_user_id" jdbcType="VARCHAR" property="wxUserId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="del_flag" jdbcType="VARCHAR" property="delFlag" />
</resultMap>
<sql id="Base_Column_List">
id, app_id, description, created_time, end_time, expend, fee_amt, order_no, out_trans_id,
party_order_id, pay_amt, pay_channel, real_amt, share_eq, `status`, wx_user_id, create_time,
del_flag
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from adapay_callback_record
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from adapay_callback_record
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.AdapayCallbackRecord" useGeneratedKeys="true">
insert into adapay_callback_record (app_id, description, created_time,
end_time, expend, fee_amt,
order_no, out_trans_id, party_order_id,
pay_amt, pay_channel, real_amt,
share_eq, `status`, wx_user_id,
create_time, del_flag)
values (#{appId,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{createdTime,jdbcType=VARCHAR},
#{endTime,jdbcType=VARCHAR}, #{expend,jdbcType=VARCHAR}, #{feeAmt,jdbcType=DECIMAL},
#{orderNo,jdbcType=INTEGER}, #{outTransId,jdbcType=INTEGER}, #{partyOrderId,jdbcType=INTEGER},
#{payAmt,jdbcType=DECIMAL}, #{payChannel,jdbcType=VARCHAR}, #{realAmt,jdbcType=DECIMAL},
#{shareEq,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{wxUserId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.AdapayCallbackRecord" useGeneratedKeys="true">
insert into adapay_callback_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="appId != null">
app_id,
</if>
<if test="description != null">
description,
</if>
<if test="createdTime != null">
created_time,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="expend != null">
expend,
</if>
<if test="feeAmt != null">
fee_amt,
</if>
<if test="orderNo != null">
order_no,
</if>
<if test="outTransId != null">
out_trans_id,
</if>
<if test="partyOrderId != null">
party_order_id,
</if>
<if test="payAmt != null">
pay_amt,
</if>
<if test="payChannel != null">
pay_channel,
</if>
<if test="realAmt != null">
real_amt,
</if>
<if test="shareEq != null">
share_eq,
</if>
<if test="status != null">
`status`,
</if>
<if test="wxUserId != null">
wx_user_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="delFlag != null">
del_flag,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="appId != null">
#{appId,jdbcType=VARCHAR},
</if>
<if test="description != null">
#{description,jdbcType=VARCHAR},
</if>
<if test="createdTime != null">
#{createdTime,jdbcType=VARCHAR},
</if>
<if test="endTime != null">
#{endTime,jdbcType=VARCHAR},
</if>
<if test="expend != null">
#{expend,jdbcType=VARCHAR},
</if>
<if test="feeAmt != null">
#{feeAmt,jdbcType=DECIMAL},
</if>
<if test="orderNo != null">
#{orderNo,jdbcType=INTEGER},
</if>
<if test="outTransId != null">
#{outTransId,jdbcType=INTEGER},
</if>
<if test="partyOrderId != null">
#{partyOrderId,jdbcType=INTEGER},
</if>
<if test="payAmt != null">
#{payAmt,jdbcType=DECIMAL},
</if>
<if test="payChannel != null">
#{payChannel,jdbcType=VARCHAR},
</if>
<if test="realAmt != null">
#{realAmt,jdbcType=DECIMAL},
</if>
<if test="shareEq != null">
#{shareEq,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="wxUserId != null">
#{wxUserId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="delFlag != null">
#{delFlag,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.jsowell.pile.domain.AdapayCallbackRecord">
update adapay_callback_record
<set>
<if test="appId != null">
app_id = #{appId,jdbcType=VARCHAR},
</if>
<if test="description != null">
description = #{description,jdbcType=VARCHAR},
</if>
<if test="createdTime != null">
created_time = #{createdTime,jdbcType=VARCHAR},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=VARCHAR},
</if>
<if test="expend != null">
expend = #{expend,jdbcType=VARCHAR},
</if>
<if test="feeAmt != null">
fee_amt = #{feeAmt,jdbcType=DECIMAL},
</if>
<if test="orderNo != null">
order_no = #{orderNo,jdbcType=INTEGER},
</if>
<if test="outTransId != null">
out_trans_id = #{outTransId,jdbcType=INTEGER},
</if>
<if test="partyOrderId != null">
party_order_id = #{partyOrderId,jdbcType=INTEGER},
</if>
<if test="payAmt != null">
pay_amt = #{payAmt,jdbcType=DECIMAL},
</if>
<if test="payChannel != null">
pay_channel = #{payChannel,jdbcType=VARCHAR},
</if>
<if test="realAmt != null">
real_amt = #{realAmt,jdbcType=DECIMAL},
</if>
<if test="shareEq != null">
share_eq = #{shareEq,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=VARCHAR},
</if>
<if test="wxUserId != null">
wx_user_id = #{wxUserId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="delFlag != null">
del_flag = #{delFlag,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.jsowell.pile.domain.AdapayCallbackRecord">
update adapay_callback_record
set app_id = #{appId,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
created_time = #{createdTime,jdbcType=VARCHAR},
end_time = #{endTime,jdbcType=VARCHAR},
expend = #{expend,jdbcType=VARCHAR},
fee_amt = #{feeAmt,jdbcType=DECIMAL},
order_no = #{orderNo,jdbcType=INTEGER},
out_trans_id = #{outTransId,jdbcType=INTEGER},
party_order_id = #{partyOrderId,jdbcType=INTEGER},
pay_amt = #{payAmt,jdbcType=DECIMAL},
pay_channel = #{payChannel,jdbcType=VARCHAR},
real_amt = #{realAmt,jdbcType=DECIMAL},
share_eq = #{shareEq,jdbcType=VARCHAR},
`status` = #{status,jdbcType=VARCHAR},
wx_user_id = #{wxUserId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
del_flag = #{delFlag,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>