update 财务中心 计算金额

This commit is contained in:
Guoqs
2025-07-14 15:55:14 +08:00
parent 174b70cb46
commit 54bd952894
5 changed files with 39 additions and 17 deletions

View File

@@ -18,12 +18,12 @@
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, `status`, merchant_id, adapay_member_id, settle_account_id, remark, create_time,
id, `status`, merchant_id, adapay_member_id, settle_account_id, remark, create_time,
create_by, update_time, update_by, del_flag
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
select
<include refid="Base_Column_List" />
from adapay_member_account
where id = #{id,jdbcType=INTEGER}
@@ -35,13 +35,13 @@
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.AdapayMemberAccount" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into adapay_member_account (`status`, merchant_id, adapay_member_id,
settle_account_id, remark, create_time,
create_by, update_time, update_by,
insert into adapay_member_account (`status`, merchant_id, adapay_member_id,
settle_account_id, remark, create_time,
create_by, update_time, update_by,
del_flag)
values (#{status,jdbcType=VARCHAR}, #{merchantId,jdbcType=VARCHAR}, #{adapayMemberId,jdbcType=VARCHAR},
#{settleAccountId,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
values (#{status,jdbcType=VARCHAR}, #{merchantId,jdbcType=VARCHAR}, #{adapayMemberId,jdbcType=VARCHAR},
#{settleAccountId,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{delFlag,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.AdapayMemberAccount" useGeneratedKeys="true">
@@ -227,13 +227,13 @@
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into adapay_member_account
(`status`, merchant_id, adapay_member_id, settle_account_id, remark, create_time,
(`status`, merchant_id, adapay_member_id, settle_account_id, remark, create_time,
create_by, update_time, update_by, del_flag)
values
<foreach collection="list" item="item" separator=",">
(#{item.status,jdbcType=VARCHAR}, #{item.merchantId,jdbcType=VARCHAR}, #{item.adapayMemberId,jdbcType=VARCHAR},
#{item.settleAccountId,jdbcType=VARCHAR}, #{item.remark,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
#{item.createBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR},
(#{item.status,jdbcType=VARCHAR}, #{item.merchantId,jdbcType=VARCHAR}, #{item.adapayMemberId,jdbcType=VARCHAR},
#{item.settleAccountId,jdbcType=VARCHAR}, #{item.remark,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
#{item.createBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR},
#{item.delFlag,jdbcType=VARCHAR})
</foreach>
</insert>
@@ -271,7 +271,7 @@
#{updateBy,jdbcType=VARCHAR},
#{delFlag,jdbcType=VARCHAR},
</trim>
on duplicate key update
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
@@ -362,7 +362,7 @@
#{delFlag,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
@@ -544,4 +544,11 @@
order by create_time desc
limit 1
</select>
</mapper>
<select id="selectUsedAdapayMemberIdByMerchantId" resultType="java.lang.String">
select
adapay_member_id
from adapay_member_account
where merchant_id = #{merchantId,jdbcType=VARCHAR}
</select>
</mapper>