1.建店通过插入督导信息

2.证照审核权限判断
This commit is contained in:
guohb
2024-05-08 18:05:23 +08:00
parent 4ce4af98c6
commit 3b38800570
10 changed files with 73 additions and 21 deletions

View File

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

View File

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