mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
保存汇付支付回调信息
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
package com.jsowell.pile.domain;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* adapay_callback_record
|
||||
@@ -40,7 +37,7 @@ public class AdapayCallbackRecord implements Serializable {
|
||||
*/
|
||||
private String endTime;
|
||||
|
||||
private String expend;
|
||||
private Object expend;
|
||||
|
||||
private BigDecimal feeAmt;
|
||||
|
||||
@@ -76,10 +73,4 @@ public class AdapayCallbackRecord implements Serializable {
|
||||
private String delFlag;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@JsonProperty(value = "expend")
|
||||
public void setExpend(Map<String, Object> expend){
|
||||
this.expend = JSONObject.toJSONString(expend);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
<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="expend" jdbcType="OTHER" property="expend" />
|
||||
<result column="fee_amt" jdbcType="DECIMAL" property="feeAmt" />
|
||||
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
|
||||
<result column="out_trans_id" jdbcType="VARCHAR" property="outTransId" />
|
||||
@@ -26,13 +26,13 @@
|
||||
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 id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from adapay_callback_record
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from adapay_callback_record
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
@@ -44,8 +44,8 @@
|
||||
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=VARCHAR}, #{outTransId,jdbcType=VARCHAR}, #{partyOrderId,jdbcType=VARCHAR},
|
||||
#{endTime,jdbcType=VARCHAR}, #{expend,jdbcType=OTHER}, #{feeAmt,jdbcType=DECIMAL},
|
||||
#{orderNo,jdbcType=VARCHAR}, #{outTransId,jdbcType=VARCHAR}, #{partyOrderId,jdbcType=VARCHAR},
|
||||
#{payAmt,jdbcType=DECIMAL}, #{payChannel,jdbcType=VARCHAR}, #{realAmt,jdbcType=DECIMAL},
|
||||
#{shareEq,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{wxUserId,jdbcType=VARCHAR},
|
||||
#{createTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=VARCHAR})
|
||||
@@ -119,7 +119,7 @@
|
||||
#{endTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="expend != null">
|
||||
#{expend,jdbcType=VARCHAR},
|
||||
#{expend,jdbcType=OTHER},
|
||||
</if>
|
||||
<if test="feeAmt != null">
|
||||
#{feeAmt,jdbcType=DECIMAL},
|
||||
@@ -175,7 +175,7 @@
|
||||
end_time = #{endTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="expend != null">
|
||||
expend = #{expend,jdbcType=VARCHAR},
|
||||
expend = #{expend,jdbcType=OTHER},
|
||||
</if>
|
||||
<if test="feeAmt != null">
|
||||
fee_amt = #{feeAmt,jdbcType=DECIMAL},
|
||||
@@ -222,7 +222,7 @@
|
||||
description = #{description,jdbcType=VARCHAR},
|
||||
created_time = #{createdTime,jdbcType=VARCHAR},
|
||||
end_time = #{endTime,jdbcType=VARCHAR},
|
||||
expend = #{expend,jdbcType=VARCHAR},
|
||||
expend = #{expend,jdbcType=OTHER},
|
||||
fee_amt = #{feeAmt,jdbcType=DECIMAL},
|
||||
order_no = #{orderNo,jdbcType=VARCHAR},
|
||||
out_trans_id = #{outTransId,jdbcType=VARCHAR},
|
||||
|
||||
17
src/main/java/generate/AdapayCallbackRecordMapper.java
Normal file
17
src/main/java/generate/AdapayCallbackRecordMapper.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package generate;
|
||||
|
||||
import generate.AdapayCallbackRecord;
|
||||
|
||||
public interface AdapayCallbackRecordMapper {
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
int insert(AdapayCallbackRecord record);
|
||||
|
||||
int insertSelective(AdapayCallbackRecord record);
|
||||
|
||||
AdapayCallbackRecord selectByPrimaryKey(String id);
|
||||
|
||||
int updateByPrimaryKeySelective(AdapayCallbackRecord record);
|
||||
|
||||
int updateByPrimaryKey(AdapayCallbackRecord record);
|
||||
}
|
||||
Reference in New Issue
Block a user