| | |
| | | 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},'%') |
| | |
| | | inner join mall_member b on a.member_id=b.ID |
| | | where 1=1 |
| | | and a.status = 4 |
| | | and a.comment_state = 2 |
| | | <if test="type == 1"> |
| | | and b.invite_id=#{inviteId} |
| | | </if> |
| | |
| | | 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> |