mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-28 15:05:18 +08:00
订单分账记录
This commit is contained in:
@@ -24,24 +24,553 @@
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, `status`, order_code, settle_amount, adapay_member_id, payment_id, payment_confirm_id, electricity_split_ratio,
|
||||
electricity_split_amount, service_split_ratio, service_split_amount, remark, create_by,
|
||||
create_time, update_by, update_time, del_flag
|
||||
id, order_code, `status`, settle_amount, adapay_member_id, payment_id, payment_confirm_id,
|
||||
electricity_split_ratio, electricity_split_amount, service_split_ratio, service_split_amount,
|
||||
remark, create_by, create_time, update_by, update_time, del_flag
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--@mbg.generated-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from order_split_record
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--@mbg.generated-->
|
||||
delete from order_split_record
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.OrderSplitRecord" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into order_split_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="orderCode != null">
|
||||
order_code,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status`,
|
||||
</if>
|
||||
<if test="settleAmount != null">
|
||||
settle_amount,
|
||||
</if>
|
||||
<if test="adapayMemberId != null">
|
||||
adapay_member_id,
|
||||
</if>
|
||||
<if test="paymentId != null">
|
||||
payment_id,
|
||||
</if>
|
||||
<if test="paymentConfirmId != null">
|
||||
payment_confirm_id,
|
||||
</if>
|
||||
<if test="electricitySplitRatio != null">
|
||||
electricity_split_ratio,
|
||||
</if>
|
||||
<if test="electricitySplitAmount != null">
|
||||
electricity_split_amount,
|
||||
</if>
|
||||
<if test="serviceSplitRatio != null">
|
||||
service_split_ratio,
|
||||
</if>
|
||||
<if test="serviceSplitAmount != null">
|
||||
service_split_amount,
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark,
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="orderCode != null">
|
||||
#{orderCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="settleAmount != null">
|
||||
#{settleAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="adapayMemberId != null">
|
||||
#{adapayMemberId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="paymentId != null">
|
||||
#{paymentId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="paymentConfirmId != null">
|
||||
#{paymentConfirmId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="electricitySplitRatio != null">
|
||||
#{electricitySplitRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="electricitySplitAmount != null">
|
||||
#{electricitySplitAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="serviceSplitRatio != null">
|
||||
#{serviceSplitRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="serviceSplitAmount != null">
|
||||
#{serviceSplitAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
#{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
#{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
#{delFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.jsowell.pile.domain.OrderSplitRecord">
|
||||
<!--@mbg.generated-->
|
||||
update order_split_record
|
||||
<set>
|
||||
<if test="orderCode != null">
|
||||
order_code = #{orderCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status` = #{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="settleAmount != null">
|
||||
settle_amount = #{settleAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="adapayMemberId != null">
|
||||
adapay_member_id = #{adapayMemberId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="paymentId != null">
|
||||
payment_id = #{paymentId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="paymentConfirmId != null">
|
||||
payment_confirm_id = #{paymentConfirmId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="electricitySplitRatio != null">
|
||||
electricity_split_ratio = #{electricitySplitRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="electricitySplitAmount != null">
|
||||
electricity_split_amount = #{electricitySplitAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="serviceSplitRatio != null">
|
||||
service_split_ratio = #{serviceSplitRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="serviceSplitAmount != null">
|
||||
service_split_amount = #{serviceSplitAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag = #{delFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateBatchSelective" parameterType="java.util.List">
|
||||
<!--@mbg.generated-->
|
||||
update order_split_record
|
||||
<trim prefix="set" suffixOverrides=",">
|
||||
<trim prefix="order_code = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.orderCode != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.orderCode,jdbcType=VARCHAR}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="`status` = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.status != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=VARCHAR}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="settle_amount = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.settleAmount != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.settleAmount,jdbcType=DECIMAL}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="adapay_member_id = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.adapayMemberId != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.adapayMemberId,jdbcType=VARCHAR}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="payment_id = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.paymentId != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.paymentId,jdbcType=VARCHAR}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="payment_confirm_id = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.paymentConfirmId != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.paymentConfirmId,jdbcType=VARCHAR}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="electricity_split_ratio = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.electricitySplitRatio != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.electricitySplitRatio,jdbcType=DECIMAL}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="electricity_split_amount = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.electricitySplitAmount != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.electricitySplitAmount,jdbcType=DECIMAL}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="service_split_ratio = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.serviceSplitRatio != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.serviceSplitRatio,jdbcType=DECIMAL}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="service_split_amount = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.serviceSplitAmount != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.serviceSplitAmount,jdbcType=DECIMAL}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="remark = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.remark != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="create_by = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.createBy != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="create_time = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.createTime != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="update_by = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.updateBy != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="update_time = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.updateTime != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="del_flag = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.delFlag != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=VARCHAR}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
</trim>
|
||||
where id in
|
||||
<foreach close=")" collection="list" item="item" open="(" separator=", ">
|
||||
#{item.id,jdbcType=INTEGER}
|
||||
</foreach>
|
||||
</update>
|
||||
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into order_split_record
|
||||
(`status`, order_code, settle_amount, adapay_member_id, payment_id, payment_confirm_id, electricity_split_ratio,
|
||||
electricity_split_amount, service_split_ratio, service_split_amount, remark, create_by)
|
||||
(order_code, `status`, settle_amount, adapay_member_id, payment_id, payment_confirm_id,
|
||||
electricity_split_ratio, electricity_split_amount, service_split_ratio, service_split_amount,
|
||||
remark, create_by, create_time, update_by, update_time, del_flag)
|
||||
values
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(#{item.status,jdbcType=VARCHAR}, #{item.orderCode,jdbcType=VARCHAR}, #{item.settleAmount,jdbcType=DECIMAL},
|
||||
#{item.adapayMemberId,jdbcType=VARCHAR}, #{item.paymentId,jdbcType=VARCHAR}, #{item.paymentConfirmId,jdbcType=VARCHAR},
|
||||
#{item.electricitySplitRatio,jdbcType=DECIMAL}, #{item.electricitySplitAmount,jdbcType=DECIMAL},
|
||||
#{item.serviceSplitRatio,jdbcType=DECIMAL}, #{item.serviceSplitAmount,jdbcType=DECIMAL}, #{item.remark,jdbcType=VARCHAR},
|
||||
#{item.createBy,jdbcType=VARCHAR})
|
||||
(#{item.orderCode,jdbcType=VARCHAR}, #{item.status,jdbcType=VARCHAR}, #{item.settleAmount,jdbcType=DECIMAL},
|
||||
#{item.adapayMemberId,jdbcType=VARCHAR}, #{item.paymentId,jdbcType=VARCHAR}, #{item.paymentConfirmId,jdbcType=VARCHAR},
|
||||
#{item.electricitySplitRatio,jdbcType=DECIMAL}, #{item.electricitySplitAmount,jdbcType=DECIMAL},
|
||||
#{item.serviceSplitRatio,jdbcType=DECIMAL}, #{item.serviceSplitAmount,jdbcType=DECIMAL},
|
||||
#{item.remark,jdbcType=VARCHAR}, #{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
|
||||
#{item.updateBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.delFlag,jdbcType=VARCHAR}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.OrderSplitRecord" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into order_split_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
order_code,
|
||||
`status`,
|
||||
settle_amount,
|
||||
adapay_member_id,
|
||||
payment_id,
|
||||
payment_confirm_id,
|
||||
electricity_split_ratio,
|
||||
electricity_split_amount,
|
||||
service_split_ratio,
|
||||
service_split_amount,
|
||||
remark,
|
||||
create_by,
|
||||
create_time,
|
||||
update_by,
|
||||
update_time,
|
||||
del_flag,
|
||||
</trim>
|
||||
values
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
#{orderCode,jdbcType=VARCHAR},
|
||||
#{status,jdbcType=VARCHAR},
|
||||
#{settleAmount,jdbcType=DECIMAL},
|
||||
#{adapayMemberId,jdbcType=VARCHAR},
|
||||
#{paymentId,jdbcType=VARCHAR},
|
||||
#{paymentConfirmId,jdbcType=VARCHAR},
|
||||
#{electricitySplitRatio,jdbcType=DECIMAL},
|
||||
#{electricitySplitAmount,jdbcType=DECIMAL},
|
||||
#{serviceSplitRatio,jdbcType=DECIMAL},
|
||||
#{serviceSplitAmount,jdbcType=DECIMAL},
|
||||
#{remark,jdbcType=VARCHAR},
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
#{updateBy,jdbcType=VARCHAR},
|
||||
#{updateTime,jdbcType=TIMESTAMP},
|
||||
#{delFlag,jdbcType=VARCHAR},
|
||||
</trim>
|
||||
on duplicate key update
|
||||
<trim suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id = #{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
order_code = #{orderCode,jdbcType=VARCHAR},
|
||||
`status` = #{status,jdbcType=VARCHAR},
|
||||
settle_amount = #{settleAmount,jdbcType=DECIMAL},
|
||||
adapay_member_id = #{adapayMemberId,jdbcType=VARCHAR},
|
||||
payment_id = #{paymentId,jdbcType=VARCHAR},
|
||||
payment_confirm_id = #{paymentConfirmId,jdbcType=VARCHAR},
|
||||
electricity_split_ratio = #{electricitySplitRatio,jdbcType=DECIMAL},
|
||||
electricity_split_amount = #{electricitySplitAmount,jdbcType=DECIMAL},
|
||||
service_split_ratio = #{serviceSplitRatio,jdbcType=DECIMAL},
|
||||
service_split_amount = #{serviceSplitAmount,jdbcType=DECIMAL},
|
||||
remark = #{remark,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 id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.OrderSplitRecord" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into order_split_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="orderCode != null">
|
||||
order_code,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status`,
|
||||
</if>
|
||||
<if test="settleAmount != null">
|
||||
settle_amount,
|
||||
</if>
|
||||
<if test="adapayMemberId != null">
|
||||
adapay_member_id,
|
||||
</if>
|
||||
<if test="paymentId != null">
|
||||
payment_id,
|
||||
</if>
|
||||
<if test="paymentConfirmId != null">
|
||||
payment_confirm_id,
|
||||
</if>
|
||||
<if test="electricitySplitRatio != null">
|
||||
electricity_split_ratio,
|
||||
</if>
|
||||
<if test="electricitySplitAmount != null">
|
||||
electricity_split_amount,
|
||||
</if>
|
||||
<if test="serviceSplitRatio != null">
|
||||
service_split_ratio,
|
||||
</if>
|
||||
<if test="serviceSplitAmount != null">
|
||||
service_split_amount,
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark,
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag,
|
||||
</if>
|
||||
</trim>
|
||||
values
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="orderCode != null">
|
||||
#{orderCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="settleAmount != null">
|
||||
#{settleAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="adapayMemberId != null">
|
||||
#{adapayMemberId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="paymentId != null">
|
||||
#{paymentId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="paymentConfirmId != null">
|
||||
#{paymentConfirmId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="electricitySplitRatio != null">
|
||||
#{electricitySplitRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="electricitySplitAmount != null">
|
||||
#{electricitySplitAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="serviceSplitRatio != null">
|
||||
#{serviceSplitRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="serviceSplitAmount != null">
|
||||
#{serviceSplitAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
#{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
#{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
#{delFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
on duplicate key update
|
||||
<trim suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id = #{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="orderCode != null">
|
||||
order_code = #{orderCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status` = #{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="settleAmount != null">
|
||||
settle_amount = #{settleAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="adapayMemberId != null">
|
||||
adapay_member_id = #{adapayMemberId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="paymentId != null">
|
||||
payment_id = #{paymentId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="paymentConfirmId != null">
|
||||
payment_confirm_id = #{paymentConfirmId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="electricitySplitRatio != null">
|
||||
electricity_split_ratio = #{electricitySplitRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="electricitySplitAmount != null">
|
||||
electricity_split_amount = #{electricitySplitAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="serviceSplitRatio != null">
|
||||
service_split_ratio = #{serviceSplitRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="serviceSplitAmount != null">
|
||||
service_split_amount = #{serviceSplitAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag = #{delFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user