添加对账单
This commit is contained in:
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 >= #{beginTime}
|
||||
and created_at < #{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 < #{boundary}
|
||||
order by created_at desc, id desc
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<update id="updateAppsBalanceLedger" parameterType="AppsBalanceLedger">
|
||||
update apps_balance_ledger
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
|
||||
Reference in new issue
Block a user