开业筹备阶段5.5
This commit is contained in:
@@ -72,36 +72,7 @@
|
||||
#{shopId}
|
||||
</foreach>
|
||||
</select>
|
||||
<select id="getOpenPlanShopListByShopName" resultType="com.cool.store.dto.openPreparation.OpenPlanShopInfoDTO">
|
||||
|
||||
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 <= #{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>
|
||||
|
||||
</select>
|
||||
<select id="queryShopIdListByStage" resultType="java.lang.Long">
|
||||
select id
|
||||
from xfsg_shop_info
|
||||
|
||||
Reference in New Issue
Block a user