xiaoyong931011
2021-09-27 ce1fba3d0a107bd6ea79b3ad9ae47c63f57a0a13
src/main/resources/mapper/modules/MallMoneyFlowMapper.xml
@@ -10,8 +10,8 @@
    <select id="selectApiMoneyFlowInPage" resultType="cc.mrbird.febs.mall.vo.MoneyFlowVo">
        select
            a.*,
            case when a.rt_member_id is null then select n.phone from mall_member n where n.id=a.member_id
                 when a.rt_member_id is not null then select m.phone from mall_member m where m.id=a.rt_member_id
            case when a.rt_member_id is null then (select n.phone from mall_member n where n.id=a.member_id)
                 when a.rt_member_id is not null then (select m.phone from mall_member m where m.id=a.rt_member_id)
            end phone,
            c.description memberLevel
        from mall_money_flow a
@@ -41,7 +41,6 @@
        inner join mall_member b on a.member_id=b.id
        left join mall_order_info c on a.order_no = c.order_no
        <where>
            a.type != 6
            <if test="record != null" >
                <if test="record.name!=null and record.name!=''">
                    and b.name like concat('%',  #{record.name},'%')