update 新增算法sha3x xtm币种,后台管理系统优化钱包出入账信息

This commit is contained in:
yyb
2025-10-09 14:19:38 +08:00
parent 2efa65222d
commit 4e9d55aab6
5 changed files with 90 additions and 94 deletions

View File

@@ -17,32 +17,33 @@
wallet_in
<where>
<if test="startDate != null">
`create_date` >= DATE(#{startDate})
`should_out_date` >= DATE(#{startDate})
</if>
</where>
</select>
<select id="getWalletOut" resultType="com.m2pool.manage.entity.ManageWalletOutIn">
SELECT
wo.coin,
wo.`user`,
wo.address,
wo.`date` as dateIn,
wo.`date` as dateOut,
wo.max_height AS maxHeight,
wo.tx_id AS txId,
wo.amount AS transferAmount
coin,
`user`,
address,
DATE(`date`) as dateIn,
DATE(`date`) as shouldOutDate,
`date` as dateOut,
max_height AS maxHeight,
tx_id AS txId,
amount AS transferAmount
FROM
wallet_outv2 wo
wallet_outv2
<where>
<if test="startDate != null">
wo.`date` >= #{startDate}
`date` > #{startDate}
</if>
</where>
</select>
<select id="summaryOfPendingPayments" resultType="com.m2pool.manage.dto.SummaryOfPendingPaymentsDto">
select coin, max(max_height) as maxHeight, max(should_out_date) AS shouldOutDate, `user`, sum(amount) as needPayAmount from wallet_in where state = 2 group by coin,`user`
</select>
<select id="getMaxDateData" resultType="java.time.LocalDateTime">
select DATE(`date_in`) from manage_wallet_out_in order by `date_in` desc limit 1
<select id="getMaxDateIn" resultType="java.time.LocalDateTime">
select `date_out` from manage_wallet_out_in order by `date_out` desc limit 1
</select>
</mapper>