| | |
| | | left join mall_vip_config vipConfig on m.level = vipConfig.code |
| | | <where> |
| | | <if test="record != null" > |
| | | <if test="record.birthday!=null"> |
| | | and m.birthday = #{record.birthday} |
| | | <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},'%') |
| | |
| | | |
| | | <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 |
| | |
| | | </if> |
| | | </if> |
| | | </where> |
| | | GROUP BY m.id |
| | | order by m.CREATED_TIME desc |
| | | </select> |
| | | |
| | |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | |
| | | |
| | | <update id="updateLastLoginTime"> |
| | | update mall_member |
| | | set last_login_time = #{lastLoginTime} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | </mapper> |