diff --git a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java index fcf366c789..f5d4db2f50 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java +++ b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java @@ -482,10 +482,14 @@ public class ResiTopicServiceImpl extends BaseServiceImpl top.setBadgeList(Collections.EMPTY_LIST)); + } else { + latestTenTopics.forEach(top -> top.setBadgeList(Collections.EMPTY_LIST)); + } } } @@ -555,10 +559,14 @@ public class ResiTopicServiceImpl extends BaseServiceImpl top.setBadgeList(Collections.EMPTY_LIST)); + }else { + pastTopics.forEach(top -> top.setBadgeList(Collections.EMPTY_LIST)); + } } @@ -887,8 +895,12 @@ public class ResiTopicServiceImpl extends BaseServiceImpl>> badgeR = userOpenFeignClient.userShowBadge(new UserGroupFormDTO(customerId, userId)); @@ -965,10 +977,14 @@ public class ResiTopicServiceImpl extends BaseServiceImpl top.setBadgeList(Collections.EMPTY_LIST)); + } else { + hiddenTopics.forEach(top -> top.setBadgeList(Collections.EMPTY_LIST)); + } } } @@ -1803,7 +1819,9 @@ public class ResiTopicServiceImpl extends BaseServiceImpl baseDao.selectParticipatedTopics(param.getCustomerId(),param.getUserId())); List result = page.getList(); - if(CollectionUtils.isEmpty(result)) return Collections.EMPTY_LIST; + if(CollectionUtils.isEmpty(result)) { + return Collections.EMPTY_LIST; + } Result> gridR = govOrgOpenFeignClient.selectOrgInfo( new OrgInfoFormDTO(OrgInfoConstant.GRID,result.stream().map(ParticipatedTopicUnitResultDTO :: getTopicReleaseGridName).distinct().collect(Collectors.toList()))); if(gridR.success() && !CollectionUtils.isEmpty(gridR.getData())){ @@ -2120,7 +2148,9 @@ public class ResiTopicServiceImpl extends BaseServiceImpl applications = reply.getData(); return StringUtils.equals(ModuleConstant.TOPIC_SHIFTED_TO_ISSUE_STATUS_UNDER_AUDITING,applications.get(NumConstant.ZERO).getApplyStatus()) ? true : false; - }else return false; + }else { + return false; + } } log.error("Method [checkTopicIfUnderAuditing] of service gov-issue called failed,topicId is [%s]",topicId); throw new RenException(reply.getInternalMsg());