fix
Helius
2022-08-31 e9a3a8ae8085aa0ffd4d823cd197ce8e981fe518
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cc.mrbird.febs.dapp.mapper.DappSdeWithdrawFeeDao">
 
    <select id="selectShouldReturnList" resultType="cc.mrbird.febs.dapp.entity.DappSdeWithdrawFeeEntity">
        select
            address,
            out_address_name,
            sum(amount) amount
        from dapp_sde_withdraw_fee
        where has_return=2
        group by address, out_address_name
    </select>
 
    <update id="updateHasReturnToFinish">
        update dapp_sde_withdraw_fee
            set has_return=1,
                update_time=now()
        where has_return=2
    </update>
</mapper>