开业筹备阶段5.0

This commit is contained in:
shuo.wang
2024-04-28 11:04:45 +08:00
parent e19b50ea64
commit 20c788b218
13 changed files with 129 additions and 141 deletions

View File

@@ -74,25 +74,32 @@
</select>
<select id="getOpenPlanShopListByShopName" resultType="com.cool.store.dto.openPreparation.OpenPlanShopInfoDTO">
select si.id as shopId, si.line_id as lineId, si.shop_name as shopName,
si.shop_code as shopCode, si.shop_manager_user_id as shopManagerUserId,si.shop_manager_user_id as shopManagerUserId,
xsbs.big_name as bigName, xsbs.fight_name as fightName
from xfsg_shop_info si
join xfsg_line_info li on si.line_id = li.id
join xfsg_system_building_shop xsbs on si.id = xsbs.big_name
where 1=1
<if test="shopIdlist != null and shopIdlist.size>0">
and si.id in
<foreach collection="shopIdlist" item="shopId" separator="," open="(" close=")">
#{shopId}
select si.id as shopId, si.region_id AS regionId,si.line_id as lineId, si.shop_name as shopName,
si.shop_code as shopCode, si.shop_manager_user_id as shopManagerUserId,li.investment_manager AS investmentManagerId,
li.username as partnerName, li.mobile as mobile ,
op.submission_time AS submissionTime , op.result_type AS resultType
from xfsg_shop_info si
join xfsg_line_info li on si.line_id = li.id
join xfsg_opening_operation_plan op on si.id = op.shop_id
where 1=1
<if test="request.shopName != null and request.shopName != '' ">
AND si.shop_name like concat('%', #{request.shopName}, '%')
</if>
<if test="request.resultType != null and request.resultType != ''">
AND op.result_type = #{request.resultType}
</if>
<if test="request.planStartDate != null and request.planStartDate != ''">
and op.create_time >= #{request.planStartDate}
</if>
<if test="request.planEndDate != null and request.planEndDate != ''">
AND op.create_time &lt;= #{request.planEndDate}
</if>
<if test="request.regionIds != null and request.regionIds.size() > 0">
and si.region_id in
<foreach collection="request.regionIds" item="regionId" index="index" open="(" separator="," close=")">
#{regionId}
</foreach>
</if>
<if test="shopName != null and shopName != ''">
AND si.shop_name = #{shopName}
</if>
<if test="regionId != null and regionId != ''">
AND xsbs.fight_code = #{fightCode}
</if>
</if>
</select>
<select id="queryShopIdListByStage" resultType="java.lang.Long">