| | |
| | | |
| | | <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> |