<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="cc.mrbird.febs.mall.mapper.MallShopApplyMapper">
|
|
<select id="selectShopApplyInPage" resultType="cc.mrbird.febs.mall.entity.MallShopApply">
|
select a.*,b.name vipName, b.invite_id inviteId
|
from mall_shop_apply a
|
inner join mall_member b on a.member_id=b.ID
|
<where>
|
<if test="record.name != null and record.name !=''">
|
and (a.name like concat('%', concat(#{record.name, '%'})) or b.invite_id=#{record.name} )
|
</if>
|
<if test="record.status != null">
|
and a.status = #{record.status}
|
</if>
|
</where>
|
</select>
|
|
<select id="selectNewestApplyByMemberId" resultType="cc.mrbird.febs.mall.entity.MallShopApply">
|
select * from mall_shop_apply
|
where member_id=#{memberId}
|
order by id desc
|
limit 1
|
</select>
|
</mapper>
|