fix
wzy
2022-06-08 f7ed73841b806f36bd5f058e1a01386e66437076
src/main/resources/mapper/dapp/DappFundFlowDao.xml
@@ -49,4 +49,15 @@
            and a.status=#{status}
        </if>
    </select>
    <select id="selectAmountTotalByType" resultType="java.util.HashMap">
        select
            case when type=1 then amount end buy,
            case when type=2 then amount end sale,
            case when type=3 then amount end mine,
            case when type=4 then amount end teamReward
        from (select type, sum(amount) amount from dapp_fund_flow
                 where member_id=#{memberId}
             ) a
    </select>
</mapper>