1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| <?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
| group by address
| </select>
|
| <update id="updateHasReturnToFinish">
| update dapp_sde_withdraw_fee
| set has_return=1,
| update_time=now()
| where has_return=2
| </update>
| </mapper>
|
|