KKSU
2024-05-11 04b73bbb2b20f0c3bef5c8ca94edf97eeb9d0994
src/main/resources/mapper/dapp/MemberCoinWithdrawMapper.xml
@@ -46,4 +46,13 @@
          and a.flow_id = #{flowId}
    </select>
    <select id="selectByMemberIdAndStatus"  resultType="java.math.BigDecimal">
        SELECT
               IFNULL(sum(IFNULL(a.amount, 0)),0)
        FROM
            member_coin_withdraw a
        where a.member_id = #{memberId}
          and a.status = #{status}
    </select>
</mapper>