1.建店通过插入督导信息
2.证照审核权限判断
This commit is contained in:
@@ -26,6 +26,15 @@
|
||||
LEFT JOIN xfsg_shop_info s ON o.shop_id = s.id
|
||||
LEFT JOIN xfsg_line_info l ON l.id = s.line_id
|
||||
<where>
|
||||
<if test="userId != null and userId != ''">
|
||||
and s.supervisor_user_id = #{userId}
|
||||
</if>
|
||||
<if test="fightRegions != null">
|
||||
and l.region_id in
|
||||
<foreach item="regionId" collection="fightRegions" open="(" separator="," close=")">
|
||||
#{regionId}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="request.storeName != null and request.storeName != ''">
|
||||
AND s.shop_name like concat('%',#{request.storeName},'%')
|
||||
</if>
|
||||
|
||||
@@ -374,6 +374,20 @@
|
||||
WHERE id = #{regionId}
|
||||
)
|
||||
</select>
|
||||
<select id="getFightRegionByRegionIds" resultType="com.cool.store.entity.RegionDO">
|
||||
select <include refid="fields"/>
|
||||
from region_${enterpriseId}
|
||||
where deleted = 0
|
||||
and third_region_type = '2'
|
||||
<if test="regionIds != null">
|
||||
AND id in (
|
||||
<foreach collection="regionIds" separator="," item="id">
|
||||
#{id}
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user