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

@@ -177,4 +177,7 @@ public class RegionDao {
return regionMapper.listByThirdRegionType(parentId, thirdRegionType);
}
public List<RegionDO> getFightRegionByRegionIds(List<String> regionIds) {
return regionMapper.getFightRegionByRegionIds(regionIds);
}
}

View File

@@ -1,6 +1,7 @@
package com.cool.store.mapper;
import com.cool.store.entity.LicenseTransactDO;
import com.cool.store.entity.RegionDO;
import com.cool.store.request.LicenseListRequest;
import com.cool.store.response.LicenseListResponse;
import org.apache.ibatis.annotations.Param;
@@ -10,7 +11,9 @@ import java.util.List;
public interface ApplyLicenseMapper extends Mapper<LicenseTransactDO> {
List<LicenseListResponse> licenseList(@Param("request") LicenseListRequest request);
List<LicenseListResponse> licenseList(@Param("request") LicenseListRequest request,
@Param("userId") String userId,
@Param("fightRegions") List<RegionDO> fightRegions);
void updateByShopId(@Param("entity") LicenseTransactDO licenseTransactDO);

View File

@@ -102,4 +102,6 @@ public interface RegionMapper {
RegionDO getRegionByStoreId(@Param("storeId") String storeId);
RegionDO getBigRegionByRegionId(@Param("regionId") long regionId);
List<RegionDO> getFightRegionByRegionIds(@Param("regionIds") List<String> regionIds);
}

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>