添加对账单

This commit is contained in:
lu7213 committed 2026-10-18 09:37:46 -04:00
1 parent e62e2fe969
commit 64ba6cd28e
6 files changed
+220

No files matched your search

@@ -191,6 +191,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
order by period, currency
</select>
<select id="selectMonthlyStatementDetails" resultMap="AppsBalanceLedgerResult">
<include refid="selectAppsBalanceLedgerVo"/>
where app_id = #{appId}
and created_at &gt;= #{beginTime}
and created_at &lt; #{endTime}
order by created_at asc, id asc
</select>
<select id="selectLatestAvailableBalanceBefore" resultType="java.math.BigDecimal">
select available_after
from apps_balance_ledger
where app_id = #{appId} and currency = #{currency} and created_at &lt; #{boundary}
order by created_at desc, id desc
limit 1
</select>
<update id="updateAppsBalanceLedger" parameterType="AppsBalanceLedger">
update apps_balance_ledger
<trim prefix="SET" suffixOverrides=",">