mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-07 23:48:05 +08:00
新增收单机构字段
This commit is contained in:
@@ -43,6 +43,11 @@ public class OrderPayRecord {
|
|||||||
*/
|
*/
|
||||||
private BigDecimal refundAmount;
|
private BigDecimal refundAmount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收单机构(0-本账户余额;1-微信支付;2-汇付支付)
|
||||||
|
*/
|
||||||
|
private String acquirer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<result column="pay_mode" jdbcType="VARCHAR" property="payMode" />
|
<result column="pay_mode" jdbcType="VARCHAR" property="payMode" />
|
||||||
<result column="pay_amount" jdbcType="DECIMAL" property="payAmount" />
|
<result column="pay_amount" jdbcType="DECIMAL" property="payAmount" />
|
||||||
<result column="refund_amount" jdbcType="DECIMAL" property="refundAmount" />
|
<result column="refund_amount" jdbcType="DECIMAL" property="refundAmount" />
|
||||||
|
<result column="acquirer" jdbcType="VARCHAR" property="acquirer" />
|
||||||
<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" />
|
||||||
@@ -17,8 +18,8 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
id, order_code, pay_mode, pay_amount, refund_amount, create_by, create_time, update_by, update_time,
|
id, order_code, pay_mode, pay_amount, refund_amount, acquirer,
|
||||||
del_flag
|
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-->
|
||||||
@@ -32,77 +33,7 @@
|
|||||||
delete from order_pay_record
|
delete from order_pay_record
|
||||||
where id = #{id,jdbcType=INTEGER}
|
where id = #{id,jdbcType=INTEGER}
|
||||||
</delete>
|
</delete>
|
||||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.OrderPayRecord" useGeneratedKeys="true">
|
|
||||||
<!--@mbg.generated-->
|
|
||||||
insert into order_pay_record (order_code, pay_mode, pay_amount, refund_amount,
|
|
||||||
create_by, create_time, update_by,
|
|
||||||
update_time, del_flag)
|
|
||||||
values (#{orderCode,jdbcType=VARCHAR}, #{payMode,jdbcType=VARCHAR}, #{payAmount,jdbcType=DECIMAL}, #{refundAmount,jdbcType=DECIMAL},
|
|
||||||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
|
|
||||||
#{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=CHAR})
|
|
||||||
</insert>
|
|
||||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.OrderPayRecord" useGeneratedKeys="true">
|
|
||||||
<!--@mbg.generated-->
|
|
||||||
insert into order_pay_record
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="orderCode != null and orderCode != ''">
|
|
||||||
order_code,
|
|
||||||
</if>
|
|
||||||
<if test="payMode != null and payMode != ''">
|
|
||||||
pay_mode,
|
|
||||||
</if>
|
|
||||||
<if test="payAmount != null">
|
|
||||||
pay_amount,
|
|
||||||
</if>
|
|
||||||
<if test="refundAmount != null">
|
|
||||||
refund_amount,
|
|
||||||
</if>
|
|
||||||
<if test="createBy != null and createBy != ''">
|
|
||||||
create_by,
|
|
||||||
</if>
|
|
||||||
<if test="createTime != null">
|
|
||||||
create_time,
|
|
||||||
</if>
|
|
||||||
<if test="updateBy != null and updateBy != ''">
|
|
||||||
update_by,
|
|
||||||
</if>
|
|
||||||
<if test="updateTime != null">
|
|
||||||
update_time,
|
|
||||||
</if>
|
|
||||||
<if test="delFlag != null and delFlag != ''">
|
|
||||||
del_flag,
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="orderCode != null and orderCode != ''">
|
|
||||||
#{orderCode,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="payMode != null and payMode != ''">
|
|
||||||
#{payMode,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="payAmount != null">
|
|
||||||
#{payAmount,jdbcType=DECIMAL},
|
|
||||||
</if>
|
|
||||||
<if test="refundAmount != null">
|
|
||||||
#{refundAmount,jdbcType=DECIMAL},
|
|
||||||
</if>
|
|
||||||
<if test="createBy != null and createBy != ''">
|
|
||||||
#{createBy,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="createTime != null">
|
|
||||||
#{createTime,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="updateBy != null and updateBy != ''">
|
|
||||||
#{updateBy,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="updateTime != null">
|
|
||||||
#{updateTime,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="delFlag != null and delFlag != ''">
|
|
||||||
#{delFlag,jdbcType=CHAR},
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
<update id="updateByPrimaryKeySelective" parameterType="com.jsowell.pile.domain.OrderPayRecord">
|
<update id="updateByPrimaryKeySelective" parameterType="com.jsowell.pile.domain.OrderPayRecord">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
update order_pay_record
|
update order_pay_record
|
||||||
@@ -119,6 +50,9 @@
|
|||||||
<if test="refundAmount != null">
|
<if test="refundAmount != null">
|
||||||
refund_amount = #{refundAmount,jdbcType=DECIMAL},
|
refund_amount = #{refundAmount,jdbcType=DECIMAL},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="acquirer != null">
|
||||||
|
acquirer = #{acquirer,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="createBy != null and createBy != ''">
|
<if test="createBy != null and createBy != ''">
|
||||||
create_by = #{createBy,jdbcType=VARCHAR},
|
create_by = #{createBy,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@@ -144,6 +78,7 @@
|
|||||||
pay_mode = #{payMode,jdbcType=VARCHAR},
|
pay_mode = #{payMode,jdbcType=VARCHAR},
|
||||||
pay_amount = #{payAmount,jdbcType=DECIMAL},
|
pay_amount = #{payAmount,jdbcType=DECIMAL},
|
||||||
refund_amount = #{refundAmount,jdbcType=DECIMAL},
|
refund_amount = #{refundAmount,jdbcType=DECIMAL},
|
||||||
|
acquirer = #{acquirer,jdbcType=VARCHAR},
|
||||||
create_by = #{createBy,jdbcType=VARCHAR},
|
create_by = #{createBy,jdbcType=VARCHAR},
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||||
@@ -154,12 +89,12 @@
|
|||||||
|
|
||||||
<insert id="batchInsert">
|
<insert id="batchInsert">
|
||||||
insert into order_pay_record
|
insert into order_pay_record
|
||||||
(order_code, pay_mode, pay_amount, create_by)
|
(order_code, pay_mode, pay_amount, acquirer, create_by)
|
||||||
values
|
values
|
||||||
<foreach collection="payRecordList" item="item" separator=",">
|
<foreach collection="payRecordList" item="item" separator=",">
|
||||||
(
|
(
|
||||||
#{item.orderCode,jdbcType=VARCHAR}, #{item.payMode,jdbcType=VARCHAR}, #{item.payAmount,jdbcType=DECIMAL},
|
#{item.orderCode,jdbcType=VARCHAR}, #{item.payMode,jdbcType=VARCHAR}, #{item.payAmount,jdbcType=DECIMAL},
|
||||||
#{item.createBy,jdbcType=VARCHAR}
|
#{item.acquirer,jdbcType=VARCHAR}, #{item.createBy,jdbcType=VARCHAR}
|
||||||
)
|
)
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
|
|||||||
Reference in New Issue
Block a user