Helius
2020-07-14 1b0e20f11a920ba8c0c38e4c8fef58e8fa1fe0d2
src/main/resources/mapper/member/AgentReturnDao.xml
@@ -3,7 +3,16 @@
<mapper namespace="com.xcong.excoin.modules.member.dao.AgentReturnDao">
    <select id="selectAllNeedMoneyReturn" resultType="com.xcong.excoin.modules.member.entity.AgentReturnEntity">
        select * from agent_return where is_return=0
        select
            referer_id,
            sum(return_amount) return_amount
        from agent_return where is_return=0
        group by referer_id
    </select>
    <update id="updateAgentReturnStatusByRefererId">
        update agent_return
        set is_return=#{isReturn}
        where referer_id=#{refererId}
    </update>
</mapper>