xiaoyong931011
2023-01-06 18522ab4afb6c35d2915f4f8fe2102126c2651e0
src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -151,7 +151,7 @@
        FROM mall_member m
        left join data_dictionary_custom a on a.description = m.level
        <where>
            and m.level != '代理'
            and m.level != 'VIP'
            <if test="record != null" >
                <if test="record.name!=null and record.name!=''">
                    and m.name like concat('%',  #{record.name},'%')
@@ -445,4 +445,22 @@
        where
            id = #{id}
    </update>
    <select id="selectMemberChargeListInPage" resultType="cc.mrbird.febs.mall.entity.MemberCoinChargeEntity">
        SELECT a.*,
               b.name name
        FROM member_coin_charge a
        inner join mall_member b on a.member_id = b.id
        <where>
            <if test="record != null" >
                <if test="record.name!=null and record.name!=''">
                    and b.name like concat('%',  #{record.name},'%')
                </if>
                <if test="record.address!=null and record.address!=''">
                    and a.address like concat('%',  #{record.address},'%')
                </if>
            </if>
        </where>
        order by a.CREATED_TIME desc
    </select>
</mapper>