平台建店list

This commit is contained in:
shuo.wang
2024-10-11 09:42:49 +08:00
parent f619cea9d3
commit 90149fb6dd
13 changed files with 333 additions and 15 deletions

View File

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