Helius
2022-08-29 06fc408460ac4e4b3be9dc3e7acd60caf949819a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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,
            sum(amount) amount
        from dapp_sde_withdraw_fee
        where has_return=2
    </select>
 
    <update id="updateHasReturnToFinish">
        update dapp_sde_withdraw_fee
            set has_return=1,
                update_time=now()
        where has_return=2
    </update>
</mapper>