Browse Source

议题-全部

dev_shibei_match
zxc 5 years ago
parent
commit
47c25209ba
  1. 6
      epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/govissue/impl/GovIssueServiceImpl.java

6
epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/govissue/impl/GovIssueServiceImpl.java

@ -58,11 +58,11 @@ public class GovIssueServiceImpl implements GovIssueService {
@Override @Override
public AllIssueResultDTO allIssueList(AllIssueFormDTO formDTO, TokenDto tokenDto) { public AllIssueResultDTO allIssueList(AllIssueFormDTO formDTO, TokenDto tokenDto) {
if (CollectionUtils.isEmpty(formDTO.getGridIdList())){ if (CollectionUtils.isEmpty(formDTO.getGridIdList())){
String userId = govOrgService.getAgencyIdByUserId(tokenDto.getUserId()); String agencyId = govOrgService.getAgencyIdByUserId(tokenDto.getUserId());
if (StringUtils.isBlank(userId)){ if (StringUtils.isBlank(agencyId)){
throw new RenException(IssueConstant.GET_AGENCY_FAILURE); throw new RenException(IssueConstant.GET_AGENCY_FAILURE);
} }
List<GridInfoResultDTO> gridList = govOrgService.gridList(userId); List<GridInfoResultDTO> gridList = govOrgService.gridList(agencyId);
if (CollectionUtils.isEmpty(gridList)){ if (CollectionUtils.isEmpty(gridList)){
throw new RenException(IssueConstant.GET_GRID_LIST_FAILURE); throw new RenException(IssueConstant.GET_GRID_LIST_FAILURE);
} }

Loading…
Cancel
Save