|
|
@@ -65,8 +65,9 @@ public class TagManage { |
|
|
|
*/ |
|
|
|
public PageVo<TagVO> list(String areaCode, TagPageReq req) { |
|
|
|
RegionDTO regionDto = regionCacheHelper.getByCodeAndLevel(areaCode, RegionConst.RL_COUNTY); |
|
|
|
String regionCode = Objects.nonNull(regionDto) ? regionDto.getRegionCode() : null; |
|
|
|
LambdaQueryWrapper<Tag> query = Wrappers.lambdaQuery(Tag.class) |
|
|
|
.eq(Objects.nonNull(regionDto),Tag::getAreaCode, regionDto.getRegionCode()) |
|
|
|
.eq(Objects.nonNull(regionCode),Tag::getAreaCode, regionCode) |
|
|
|
.like(StringUtils.isNotBlank(req.getName()),Tag::getName,req.getName()) |
|
|
|
.orderByDesc(Tag::getUpdateOn); |
|
|
|
checkAuth(query,LoginUserUtil.loginUserDetail()); |
|
|
|