|
|
@@ -10,6 +10,7 @@ import com.ningdatech.basic.model.PageVo; |
|
|
|
import com.ningdatech.basic.util.CollUtils; |
|
|
|
import com.ningdatech.pmapi.common.constant.BizConst; |
|
|
|
import com.ningdatech.pmapi.common.constant.RegionConst; |
|
|
|
import com.ningdatech.pmapi.common.helper.RegionCacheHelper; |
|
|
|
import com.ningdatech.pmapi.gov.model.entity.GovBizProjectBaseinfo; |
|
|
|
import com.ningdatech.pmapi.gov.service.IGovBizProjectBaseinfoService; |
|
|
|
import com.ningdatech.pmapi.portrait.model.dto.TagDTO; |
|
|
@@ -22,6 +23,7 @@ import com.ningdatech.pmapi.portrait.service.IProjectTagService; |
|
|
|
import com.ningdatech.pmapi.portrait.service.ITagService; |
|
|
|
import com.ningdatech.pmapi.projectlib.model.entity.Project; |
|
|
|
import com.ningdatech.pmapi.projectlib.service.IProjectService; |
|
|
|
import com.ningdatech.pmapi.sys.model.dto.RegionDTO; |
|
|
|
import com.ningdatech.pmapi.user.security.auth.model.UserInfoDetails; |
|
|
|
import com.ningdatech.pmapi.user.util.LoginUserUtil; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
@@ -53,6 +55,8 @@ public class TagManage { |
|
|
|
|
|
|
|
private final IGovBizProjectBaseinfoService baseinfoService; |
|
|
|
|
|
|
|
private final RegionCacheHelper regionCacheHelper; |
|
|
|
|
|
|
|
/** |
|
|
|
* 标签分页 |
|
|
|
* @param areaCode |
|
|
@@ -60,8 +64,9 @@ public class TagManage { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public PageVo<TagVO> list(String areaCode, TagPageReq req) { |
|
|
|
RegionDTO regionDto = regionCacheHelper.getByCodeAndLevel(areaCode, RegionConst.RL_COUNTY); |
|
|
|
LambdaQueryWrapper<Tag> query = Wrappers.lambdaQuery(Tag.class) |
|
|
|
.eq(Tag::getAreaCode, areaCode) |
|
|
|
.eq(Objects.nonNull(regionDto),Tag::getAreaCode, regionDto.getRegionCode()) |
|
|
|
.like(StringUtils.isNotBlank(req.getName()),Tag::getName,req.getName()) |
|
|
|
.orderByDesc(Tag::getUpdateOn); |
|
|
|
checkAuth(query,LoginUserUtil.loginUserDetail()); |
|
|
|