Commit 465bffaf by guojuxing

pmd规范

parent 6f5f060c
...@@ -117,11 +117,11 @@ public class IndexApiServiceImpl implements IndexApiService { ...@@ -117,11 +117,11 @@ public class IndexApiServiceImpl implements IndexApiService {
@Override @Override
public ServiceResponse<Page<IndexDTO>> listIndex(IndexQo indexQo) { public ServiceResponse<Page<IndexDTO>> listIndex(IndexQo indexQo) {
com.github.pagehelper.Page<TabIndex> indexList = indexService.listIndex(indexQo); com.github.pagehelper.Page<TabIndex> indexList = indexService.listIndex(indexQo);
Page<IndexDTO> indexDTOPage = PageHelperUtils.changePageHelperToCurrentPage(indexList, IndexDTO.class); Page<IndexDTO> indexDtoPage = PageHelperUtils.changePageHelperToCurrentPage(indexList, IndexDTO.class);
if (CollectionUtils.isNotEmpty(indexList)) { if (CollectionUtils.isNotEmpty(indexList)) {
List<Integer> indexIdList = indexList.stream().map(TabIndex::getIndexId).collect(Collectors.toList()); List<Integer> indexIdList = indexList.stream().map(TabIndex::getIndexId).collect(Collectors.toList());
Map<Integer, List<String>> moduleIdByBusinessIdMap = indexModuleRelService.groupModuleIdByBusinessIds(indexIdList, LogAndUpdateTipsTypeEnum.INDEX.getCode()); Map<Integer, List<String>> moduleIdByBusinessIdMap = indexModuleRelService.groupModuleIdByBusinessIds(indexIdList, LogAndUpdateTipsTypeEnum.INDEX.getCode());
List<IndexDTO> indexDTOList = indexDTOPage.getResult(); List<IndexDTO> indexDTOList = indexDtoPage.getResult();
HashMap<Integer, String> cache = new HashMap<>(16); HashMap<Integer, String> cache = new HashMap<>(16);
for (IndexDTO indexDTO : indexDTOList) { for (IndexDTO indexDTO : indexDTOList) {
indexDTO.setRelModuleIdList(moduleIdByBusinessIdMap.get(indexDTO.getIndexId())); indexDTO.setRelModuleIdList(moduleIdByBusinessIdMap.get(indexDTO.getIndexId()));
...@@ -131,7 +131,7 @@ public class IndexApiServiceImpl implements IndexApiService { ...@@ -131,7 +131,7 @@ public class IndexApiServiceImpl implements IndexApiService {
} }
} }
} }
return EnterpriseServiceResponse.success(indexDTOPage); return EnterpriseServiceResponse.success(indexDtoPage);
} }
private String getIndexGroupName(HashMap<Integer, String> cache, Integer indexGroupId) { private String getIndexGroupName(HashMap<Integer, String> cache, Integer indexGroupId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment