This commit is contained in:
shuo.wang
2024-10-12 19:35:36 +08:00
parent 0b528c4dee
commit f6953a363d
3 changed files with 44 additions and 37 deletions

View File

@@ -175,35 +175,40 @@
</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}
select
DISTINCT
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
left join xfsg_shop_stage_info xssi on xssi.shop_id = xsi.id
where
xssi.shop_stage = 3
and xssi.shop_sub_stage_status != -100
and
xsi.region_id in
<foreach collection="list" open="(" separator="," close=")" index="index" item="item">
#{item}
</foreach>
</if>
order by xsi.create_time
<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>
<select id="selectByIdOrSelectAll" resultMap="BaseResultMap">

View File

@@ -328,15 +328,16 @@
group by shop_id
</select>
<select id="getPlatformBuildStage" resultType="com.cool.store.dto.PlatformBuildStageDTO">
select shop_id as shopId,
shop_sub_stage as shopSubStage,
shop_sub_stage_status as shopSubStageStatus
from xfsg_shop_stage_info
where shop_stage = 3
and shop_id in
<foreach collection="shopIds" item="shopId" index="index" open="(" separator="," close=")">
#{shopId}
</foreach>
select shop_id as shopId,
shop_sub_stage as shopSubStage,
shop_sub_stage_status as shopSubStageStatus
from xfsg_shop_stage_info
where shop_stage = 3
and shop_sub_stage_status != -100
and shop_id in
<foreach collection="shopIds" item="shopId" index="index" open="(" separator="," close=")">
#{shopId}
</foreach>
</select>
<select id="getSubStages" resultType="com.cool.store.entity.ShopStageInfoDO">