zainali5120
2020-10-09 bc489f2d0ac40d23260d961f7eb43634b8a69fea
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>