平台建店list
This commit is contained in:
@@ -174,7 +174,37 @@
|
||||
and xsi.shop_name Like concat("%",#{keyWord},"%") or xsi.store_num Like concat("%",#{keyWord},"%")
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="platformBuildList" resultType="com.cool.store.response.PlatformBuildListResponse">
|
||||
select
|
||||
xsi.id as shopId,
|
||||
xsi.shop_name as shopName,
|
||||
xsi.shop_code as shopCode,
|
||||
xsi.region_id as regionId,
|
||||
xli.mobile as mobile,
|
||||
xli.username as partnerName
|
||||
from xfsg_shop_info xsi
|
||||
left join xfsg_line_info xli on xsi.line_id = xli.id
|
||||
where
|
||||
xsi.region_id in
|
||||
<foreach collection="list" open="(" separator="," close=")" index="index" item="item">
|
||||
#{item}
|
||||
</foreach>
|
||||
<if test="request.shopKeyword != null and request.shopKeyword != ''">
|
||||
and (xsi.shop_name like concat("%",#{request.shopKeyword},"%") or xsi.shop_code like
|
||||
concat("%",#{request.shopKeyword},"%"))
|
||||
</if>
|
||||
<if test="request.partnerKeyword != null and request.partnerKeyword != ''">
|
||||
and (xli.mobile like concat("%",#{request.partnerKeyword},"%") or xli.username like
|
||||
concat("%",#{request.partnerKeyword},"%"))
|
||||
</if>
|
||||
<if test="request.regionIds != null and request.regionIds.size()>0">
|
||||
and xsi.region_id in
|
||||
<foreach collection="request.regionIds" open="(" separator="," close=")" index="index" item="item">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
order by xsi.create_time
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user