gao
2020-07-13 fb73002d31a565e65df8da36af8f3a0e20a21e9d
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>