| | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static org.springblade.common.cache.CacheNames.ARTICLE_KEY; |
| | | import static org.springblade.core.cache.constant.CacheConstant.SYS_CACHE; |
| | | |
| | | /** |
| | |
| | | return CacheUtil.get(SYS_CACHE, REGION_CHILD_CODE, regionCode, () -> regionService.getRegionChild(regionCode,communityCode)); |
| | | } |
| | | |
| | | /** |
| | | * 查询当前文章范围对应的社区编号字符串集合 |
| | | * @param articleRange |
| | | * @return |
| | | */ |
| | | public static String getAllCommunityNameListString(String articleRange,String id) { |
| | | return CacheUtil.get(ARTICLE_KEY, "id", id ,() -> regionService.getAllCommunityNameListString(articleRange)); |
| | | } |
| | | } |