xiaoyong931011
2023-01-05 72db11f9e4f9694b45044ae358b1ab21a419e74b
src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -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>