mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-03 05:28:03 +08:00
加剩余金额字段
This commit is contained in:
@@ -1016,9 +1016,12 @@ public class OrderService {
|
|||||||
MemberAdapayRecord memberAdapayRecord = new MemberAdapayRecord();
|
MemberAdapayRecord memberAdapayRecord = new MemberAdapayRecord();
|
||||||
memberAdapayRecord.setMemberId(memberId);
|
memberAdapayRecord.setMemberId(memberId);
|
||||||
memberAdapayRecord.setPaymentId(adapayCallbackRecord.getPaymentId());
|
memberAdapayRecord.setPaymentId(adapayCallbackRecord.getPaymentId());
|
||||||
memberAdapayRecord.setPaymentOrderNo(adapayCallbackRecord.getOrderNo());
|
memberAdapayRecord.setPaymentOrderNo(adapayCallbackRecord.getOutTransId());
|
||||||
memberAdapayRecord.setScenarioType(ScenarioEnum.BALANCE.getValue());
|
memberAdapayRecord.setScenarioType(ScenarioEnum.BALANCE.getValue());
|
||||||
memberAdapayRecord.setPayAmt(amount);
|
memberAdapayRecord.setPayAmt(amount);
|
||||||
|
memberAdapayRecord.setRefundAmt(BigDecimal.ZERO);
|
||||||
|
memberAdapayRecord.setSpendAmt(BigDecimal.ZERO);
|
||||||
|
memberAdapayRecord.setBalanceAmt(amount);
|
||||||
memberAdapayRecordService.insertSelective(memberAdapayRecord);
|
memberAdapayRecordService.insertSelective(memberAdapayRecord);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,13 @@
|
|||||||
package com.jsowell.pile.domain;
|
package com.jsowell.pile.domain;
|
||||||
|
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Builder;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import lombok.Setter;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 会员汇付支付记录表
|
* 会员汇付支付记录表
|
||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
@Builder
|
@Builder
|
||||||
@@ -20,62 +17,67 @@ public class MemberAdapayRecord {
|
|||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 会员id
|
* 会员id
|
||||||
*/
|
*/
|
||||||
private String memberId;
|
private String memberId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 场景类型(order, balance)
|
* 场景类型(order, balance)
|
||||||
*/
|
*/
|
||||||
private String scenarioType;
|
private String scenarioType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 汇付支付id
|
* 汇付支付id
|
||||||
*/
|
*/
|
||||||
private String paymentId;
|
private String paymentId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 汇付支付单号
|
* 汇付支付单号
|
||||||
*/
|
*/
|
||||||
private String paymentOrderNo;
|
private String paymentOrderNo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 支付金额
|
* 支付金额
|
||||||
*/
|
*/
|
||||||
private BigDecimal payAmt;
|
private BigDecimal payAmt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 退款金额
|
* 退款金额
|
||||||
*/
|
*/
|
||||||
private BigDecimal refundAmt;
|
private BigDecimal refundAmt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 消费金额
|
* 消费金额
|
||||||
*/
|
*/
|
||||||
private BigDecimal spendAmt;
|
private BigDecimal spendAmt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 剩余金额
|
||||||
*/
|
*/
|
||||||
|
private BigDecimal balanceAmt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
private String createBy;
|
private String createBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除标识
|
* 删除标识
|
||||||
*/
|
*/
|
||||||
private String delFlag;
|
private String delFlag;
|
||||||
}
|
}
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
package com.jsowell.pile.mapper;
|
package com.jsowell.pile.mapper;
|
||||||
|
|
||||||
import com.jsowell.pile.domain.MemberAdapayRecord;
|
import com.jsowell.pile.domain.MemberAdapayRecord;
|
||||||
import java.util.List;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public interface MemberAdapayRecordMapper {
|
public interface MemberAdapayRecordMapper {
|
||||||
/**
|
/**
|
||||||
* insert record to table selective
|
* insert record to table selective
|
||||||
|
*
|
||||||
* @param record the record
|
* @param record the record
|
||||||
* @return insert count
|
* @return insert count
|
||||||
*/
|
*/
|
||||||
@@ -14,6 +16,7 @@ public interface MemberAdapayRecordMapper {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* select by primary key
|
* select by primary key
|
||||||
|
*
|
||||||
* @param id primary key
|
* @param id primary key
|
||||||
* @return object by primary key
|
* @return object by primary key
|
||||||
*/
|
*/
|
||||||
@@ -21,6 +24,7 @@ public interface MemberAdapayRecordMapper {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* update record selective
|
* update record selective
|
||||||
|
*
|
||||||
* @param record the updated record
|
* @param record the updated record
|
||||||
* @return update count
|
* @return update count
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -632,6 +632,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
public void settleOrder(TransactionRecordsData data, OrderBasicInfo orderBasicInfo) {
|
public void settleOrder(TransactionRecordsData data, OrderBasicInfo orderBasicInfo) {
|
||||||
logger.info("结算订单start data:{}, orderBasicInfo:{}", data.toString(), orderBasicInfo.toString());
|
logger.info("结算订单start data:{}, orderBasicInfo:{}", data.toString(), orderBasicInfo.toString());
|
||||||
String orderCode = orderBasicInfo.getOrderCode();
|
String orderCode = orderBasicInfo.getOrderCode();
|
||||||
|
String memberId = orderBasicInfo.getMemberId();
|
||||||
|
|
||||||
// 判断订单状态
|
// 判断订单状态
|
||||||
if (StringUtils.equals(orderBasicInfo.getOrderStatus(), OrderStatusEnum.ORDER_COMPLETE.getValue())) {
|
if (StringUtils.equals(orderBasicInfo.getOrderStatus(), OrderStatusEnum.ORDER_COMPLETE.getValue())) {
|
||||||
@@ -1111,6 +1112,29 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 余额支付订单,使用余额支付转账
|
||||||
|
* @param orderBasicInfo
|
||||||
|
* @param adapayMemberAccount
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public OrderSettleResult doBalancePaymentV2(OrderBasicInfo orderBasicInfo, AdapayMemberAccount adapayMemberAccount) throws BaseAdaPayException {
|
||||||
|
// 计算应该支付金额,和手续费
|
||||||
|
SplitSettleAmountVO splitSettleAmountVO = splitSettleAmount(orderBasicInfo.getSettleAmount());
|
||||||
|
BigDecimal feeAmount = splitSettleAmountVO.getFeeAmount();
|
||||||
|
BigDecimal tradeAmount = splitSettleAmountVO.getTradeAmount();
|
||||||
|
logger.info("余额支付订单使用余额支付转账, orderCode:{}, inMemberId:{}, transAmt:{}", orderBasicInfo.getOrderCode(), orderBasicInfo, tradeAmount);
|
||||||
|
|
||||||
|
// 查询会员的余额充值记录
|
||||||
|
|
||||||
|
// 分账
|
||||||
|
|
||||||
|
// 更新余额充值记录
|
||||||
|
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 延迟交易订单 交易确认
|
* 延迟交易订单 交易确认
|
||||||
* @param orderBasicInfo 订单
|
* @param orderBasicInfo 订单
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
<result column="pay_amt" jdbcType="DECIMAL" property="payAmt" />
|
<result column="pay_amt" jdbcType="DECIMAL" property="payAmt" />
|
||||||
<result column="refund_amt" jdbcType="DECIMAL" property="refundAmt" />
|
<result column="refund_amt" jdbcType="DECIMAL" property="refundAmt" />
|
||||||
<result column="spend_amt" jdbcType="DECIMAL" property="spendAmt" />
|
<result column="spend_amt" jdbcType="DECIMAL" property="spendAmt" />
|
||||||
|
<result column="balance_amt" jdbcType="DECIMAL" property="balanceAmt" />
|
||||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||||
@@ -21,7 +22,7 @@
|
|||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
id, member_id, scenario_type, payment_id, payment_order_no, pay_amt, refund_amt,
|
id, member_id, scenario_type, payment_id, payment_order_no, pay_amt, refund_amt,
|
||||||
spend_amt, create_by, create_time, update_by, update_time, del_flag
|
spend_amt, balance_amt, create_by, create_time, update_by, update_time, del_flag
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
@@ -30,13 +31,10 @@
|
|||||||
from member_adapay_record
|
from member_adapay_record
|
||||||
where id = #{id,jdbcType=INTEGER}
|
where id = #{id,jdbcType=INTEGER}
|
||||||
</select>
|
</select>
|
||||||
<insert id="insertSelective" parameterType="com.jsowell.pile.domain.MemberAdapayRecord">
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.MemberAdapayRecord" useGeneratedKeys="true">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
insert into member_adapay_record
|
insert into member_adapay_record
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">
|
|
||||||
id,
|
|
||||||
</if>
|
|
||||||
<if test="memberId != null">
|
<if test="memberId != null">
|
||||||
member_id,
|
member_id,
|
||||||
</if>
|
</if>
|
||||||
@@ -58,6 +56,9 @@
|
|||||||
<if test="spendAmt != null">
|
<if test="spendAmt != null">
|
||||||
spend_amt,
|
spend_amt,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="balanceAmt != null">
|
||||||
|
balance_amt,
|
||||||
|
</if>
|
||||||
<if test="createBy != null">
|
<if test="createBy != null">
|
||||||
create_by,
|
create_by,
|
||||||
</if>
|
</if>
|
||||||
@@ -75,9 +76,6 @@
|
|||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">
|
|
||||||
#{id,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
<if test="memberId != null">
|
<if test="memberId != null">
|
||||||
#{memberId,jdbcType=VARCHAR},
|
#{memberId,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@@ -99,6 +97,9 @@
|
|||||||
<if test="spendAmt != null">
|
<if test="spendAmt != null">
|
||||||
#{spendAmt,jdbcType=DECIMAL},
|
#{spendAmt,jdbcType=DECIMAL},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="balanceAmt != null">
|
||||||
|
#{balanceAmt,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
<if test="createBy != null">
|
<if test="createBy != null">
|
||||||
#{createBy,jdbcType=VARCHAR},
|
#{createBy,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@@ -141,6 +142,9 @@
|
|||||||
<if test="spendAmt != null">
|
<if test="spendAmt != null">
|
||||||
spend_amt = #{spendAmt,jdbcType=DECIMAL},
|
spend_amt = #{spendAmt,jdbcType=DECIMAL},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="balanceAmt != null">
|
||||||
|
balance_amt = #{balanceAmt,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
<if test="createBy != null">
|
<if test="createBy != null">
|
||||||
create_by = #{createBy,jdbcType=VARCHAR},
|
create_by = #{createBy,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@@ -198,6 +202,11 @@
|
|||||||
when id = #{item.id,jdbcType=INTEGER} then #{item.spendAmt,jdbcType=DECIMAL}
|
when id = #{item.id,jdbcType=INTEGER} then #{item.spendAmt,jdbcType=DECIMAL}
|
||||||
</foreach>
|
</foreach>
|
||||||
</trim>
|
</trim>
|
||||||
|
<trim prefix="balance_amt = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.balanceAmt,jdbcType=DECIMAL}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
<trim prefix="create_by = case" suffix="end,">
|
<trim prefix="create_by = case" suffix="end,">
|
||||||
<foreach collection="list" index="index" item="item">
|
<foreach collection="list" index="index" item="item">
|
||||||
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR}
|
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR}
|
||||||
@@ -229,47 +238,81 @@
|
|||||||
#{item.id,jdbcType=INTEGER}
|
#{item.id,jdbcType=INTEGER}
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
<insert id="batchInsert" parameterType="map">
|
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
insert into member_adapay_record
|
insert into member_adapay_record
|
||||||
(id, member_id, scenario_type, payment_id, payment_order_no, pay_amt, refund_amt,
|
(member_id, scenario_type, payment_id, payment_order_no, pay_amt, refund_amt, spend_amt,
|
||||||
spend_amt, create_by, create_time, update_by, update_time, del_flag)
|
balance_amt, create_by, create_time, update_by, update_time, del_flag)
|
||||||
values
|
values
|
||||||
<foreach collection="list" item="item" separator=",">
|
<foreach collection="list" item="item" separator=",">
|
||||||
(#{item.id,jdbcType=INTEGER}, #{item.memberId,jdbcType=VARCHAR}, #{item.scenarioType,jdbcType=VARCHAR},
|
(#{item.memberId,jdbcType=VARCHAR}, #{item.scenarioType,jdbcType=VARCHAR}, #{item.paymentId,jdbcType=VARCHAR},
|
||||||
#{item.paymentId,jdbcType=VARCHAR}, #{item.paymentOrderNo,jdbcType=VARCHAR}, #{item.payAmt,jdbcType=DECIMAL},
|
#{item.paymentOrderNo,jdbcType=VARCHAR}, #{item.payAmt,jdbcType=DECIMAL}, #{item.refundAmt,jdbcType=DECIMAL},
|
||||||
#{item.refundAmt,jdbcType=DECIMAL}, #{item.spendAmt,jdbcType=DECIMAL}, #{item.createBy,jdbcType=VARCHAR},
|
#{item.spendAmt,jdbcType=DECIMAL}, #{item.balanceAmt,jdbcType=DECIMAL}, #{item.createBy,jdbcType=VARCHAR},
|
||||||
#{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
#{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
||||||
#{item.delFlag,jdbcType=VARCHAR})
|
#{item.delFlag,jdbcType=VARCHAR})
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertOrUpdate" parameterType="com.jsowell.pile.domain.MemberAdapayRecord">
|
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.MemberAdapayRecord" useGeneratedKeys="true">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
insert into member_adapay_record
|
insert into member_adapay_record
|
||||||
(id, member_id, scenario_type, payment_id, payment_order_no, pay_amt, refund_amt,
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
spend_amt, create_by, create_time, update_by, update_time, del_flag)
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
member_id,
|
||||||
|
scenario_type,
|
||||||
|
payment_id,
|
||||||
|
payment_order_no,
|
||||||
|
pay_amt,
|
||||||
|
refund_amt,
|
||||||
|
spend_amt,
|
||||||
|
balance_amt,
|
||||||
|
create_by,
|
||||||
|
create_time,
|
||||||
|
update_by,
|
||||||
|
update_time,
|
||||||
|
del_flag,
|
||||||
|
</trim>
|
||||||
values
|
values
|
||||||
(#{id,jdbcType=INTEGER}, #{memberId,jdbcType=VARCHAR}, #{scenarioType,jdbcType=VARCHAR},
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
#{paymentId,jdbcType=VARCHAR}, #{paymentOrderNo,jdbcType=VARCHAR}, #{payAmt,jdbcType=DECIMAL},
|
<if test="id != null">
|
||||||
#{refundAmt,jdbcType=DECIMAL}, #{spendAmt,jdbcType=DECIMAL}, #{createBy,jdbcType=VARCHAR},
|
#{id,jdbcType=INTEGER},
|
||||||
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
</if>
|
||||||
#{delFlag,jdbcType=VARCHAR})
|
#{memberId,jdbcType=VARCHAR},
|
||||||
|
#{scenarioType,jdbcType=VARCHAR},
|
||||||
|
#{paymentId,jdbcType=VARCHAR},
|
||||||
|
#{paymentOrderNo,jdbcType=VARCHAR},
|
||||||
|
#{payAmt,jdbcType=DECIMAL},
|
||||||
|
#{refundAmt,jdbcType=DECIMAL},
|
||||||
|
#{spendAmt,jdbcType=DECIMAL},
|
||||||
|
#{balanceAmt,jdbcType=DECIMAL},
|
||||||
|
#{createBy,jdbcType=VARCHAR},
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
#{updateBy,jdbcType=VARCHAR},
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
#{delFlag,jdbcType=VARCHAR},
|
||||||
|
</trim>
|
||||||
on duplicate key update
|
on duplicate key update
|
||||||
id = #{id,jdbcType=INTEGER},
|
<trim suffixOverrides=",">
|
||||||
member_id = #{memberId,jdbcType=VARCHAR},
|
<if test="id != null">
|
||||||
scenario_type = #{scenarioType,jdbcType=VARCHAR},
|
id = #{id,jdbcType=INTEGER},
|
||||||
payment_id = #{paymentId,jdbcType=VARCHAR},
|
</if>
|
||||||
payment_order_no = #{paymentOrderNo,jdbcType=VARCHAR},
|
member_id = #{memberId,jdbcType=VARCHAR},
|
||||||
pay_amt = #{payAmt,jdbcType=DECIMAL},
|
scenario_type = #{scenarioType,jdbcType=VARCHAR},
|
||||||
refund_amt = #{refundAmt,jdbcType=DECIMAL},
|
payment_id = #{paymentId,jdbcType=VARCHAR},
|
||||||
spend_amt = #{spendAmt,jdbcType=DECIMAL},
|
payment_order_no = #{paymentOrderNo,jdbcType=VARCHAR},
|
||||||
create_by = #{createBy,jdbcType=VARCHAR},
|
pay_amt = #{payAmt,jdbcType=DECIMAL},
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
refund_amt = #{refundAmt,jdbcType=DECIMAL},
|
||||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
spend_amt = #{spendAmt,jdbcType=DECIMAL},
|
||||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
balance_amt = #{balanceAmt,jdbcType=DECIMAL},
|
||||||
del_flag = #{delFlag,jdbcType=VARCHAR}
|
create_by = #{createBy,jdbcType=VARCHAR},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
del_flag = #{delFlag,jdbcType=VARCHAR},
|
||||||
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertOrUpdateSelective" parameterType="com.jsowell.pile.domain.MemberAdapayRecord">
|
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.MemberAdapayRecord" useGeneratedKeys="true">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
insert into member_adapay_record
|
insert into member_adapay_record
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
@@ -297,6 +340,9 @@
|
|||||||
<if test="spendAmt != null">
|
<if test="spendAmt != null">
|
||||||
spend_amt,
|
spend_amt,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="balanceAmt != null">
|
||||||
|
balance_amt,
|
||||||
|
</if>
|
||||||
<if test="createBy != null">
|
<if test="createBy != null">
|
||||||
create_by,
|
create_by,
|
||||||
</if>
|
</if>
|
||||||
@@ -339,6 +385,9 @@
|
|||||||
<if test="spendAmt != null">
|
<if test="spendAmt != null">
|
||||||
#{spendAmt,jdbcType=DECIMAL},
|
#{spendAmt,jdbcType=DECIMAL},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="balanceAmt != null">
|
||||||
|
#{balanceAmt,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
<if test="createBy != null">
|
<if test="createBy != null">
|
||||||
#{createBy,jdbcType=VARCHAR},
|
#{createBy,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@@ -381,6 +430,9 @@
|
|||||||
<if test="spendAmt != null">
|
<if test="spendAmt != null">
|
||||||
spend_amt = #{spendAmt,jdbcType=DECIMAL},
|
spend_amt = #{spendAmt,jdbcType=DECIMAL},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="balanceAmt != null">
|
||||||
|
balance_amt = #{balanceAmt,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
<if test="createBy != null">
|
<if test="createBy != null">
|
||||||
create_by = #{createBy,jdbcType=VARCHAR},
|
create_by = #{createBy,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user