1.建店通过插入督导信息
2.证照审核权限判断
This commit is contained in:
@@ -177,4 +177,7 @@ public class RegionDao {
|
||||
return regionMapper.listByThirdRegionType(parentId, thirdRegionType);
|
||||
}
|
||||
|
||||
public List<RegionDO> getFightRegionByRegionIds(List<String> regionIds) {
|
||||
return regionMapper.getFightRegionByRegionIds(regionIds);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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