Administrator
2026-07-01 6a55e75b8530197d1f561f710f9e53b7e40be171
src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -11,6 +11,9 @@
        left join mall_vip_config vipConfig on m.level = vipConfig.code
        <where>
            <if test="record != null" >
                <if test="record.birthdayQuery!=null">
                    and date_format(m.birthday, '%m-%d') = date_format(#{record.birthdayQuery}, '%m-%d')
                </if>
                <if test="record.name!=null and record.name!=''">
                    and m.name like concat('%',  #{record.name},'%')
                </if>
@@ -410,7 +413,7 @@
    <select id="getsalemanRuleList" resultType="cc.mrbird.febs.mall.entity.MallMember">
        SELECT m.*,
               b.name couponName
               GROUP_CONCAT(b.name SEPARATOR ', ') couponName
        FROM mall_member m
        LEFT Join saleman_coupon a on m.id = a.member_id
        LEFT Join mall_goods_coupon b on b.id = a.coupon_id and b.state = 2
@@ -427,6 +430,7 @@
                </if>
            </if>
        </where>
        GROUP BY m.id
        order by m.CREATED_TIME desc
    </select>
@@ -439,4 +443,12 @@
        where id = #{id}
    </update>
    <update id="updateLastLoginTime">
        update mall_member
        set last_login_time = #{lastLoginTime}
        where id = #{id}
    </update>
</mapper>