xiaoyong931011
2022-11-23 bfbb03c514b9e60485ea13d5679e6af2e8aeb354
src/main/resources/mapper/dapp/DappAccountMoneyChangeDao.xml
@@ -63,4 +63,38 @@
        order by a.create_time desc
    </select>
    <select id="selectMoneyTotalInPage" resultType="cc.mrbird.febs.dapp.vo.AdminMoneyTotalVo">
        SELECT
        *
        FROM
        (
        SELECT
        date_format(create_time, '%Y-%m-%d') createTime
        FROM
        member_coin_charge
        <where>
            <if test="record.description!=null and record.description!=''">
                and (member_id in (select id from dapp_member where FIND_IN_SET(#{record.description}, referer_ids)))
            </if>
        </where>
        GROUP BY
        date_format(create_time, '%Y-%m-%d')
        UNION
        SELECT
        date_format(create_time, '%Y-%m-%d') createTime
        FROM
        member_coin_withdraw
        <where>
        is_inside = 'N'
            <if test="record.description!=null and record.description!=''">
                and (member_id in (select id from dapp_member where FIND_IN_SET(#{record.description}, referer_ids)))
            </if>
        </where>
        GROUP BY
        date_format(create_time, '%Y-%m-%d')
        ) as a
        ORDER BY
        a.createTime DESC
    </select>
</mapper>