Commit 7cac9668 by 陶光胜

导航ext过滤关闭tabbar

parent 80dd6e39
...@@ -156,7 +156,7 @@ public class CustomGuideApiServiceImpl implements CustomGuideApiService { ...@@ -156,7 +156,7 @@ public class CustomGuideApiServiceImpl implements CustomGuideApiService {
guideSize++; guideSize++;
} }
} }
if(pathSet.size() != guideList.size()) { if(pathSet.size() != guideSize) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "存在相同的路径"); return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "存在相同的路径");
} }
Map<String, Object> tabBar = new HashMap<String, Object>(); Map<String, Object> tabBar = new HashMap<String, Object>();
......
...@@ -136,7 +136,8 @@ public class CustomGuideController { ...@@ -136,7 +136,8 @@ public class CustomGuideController {
}else if(guideDTO.getCustomLinkType().equals(linkType)){ //类型为其他 }else if(guideDTO.getCustomLinkType().equals(linkType)){ //类型为其他
List<String> listCustomPage = Arrays.asList("pages/customView/customView1","pages/customView/customView2", List<String> listCustomPage = Arrays.asList("pages/customView/customView1","pages/customView/customView2",
"pages/customView/customView3","pages/customView/customView4","pages/customView/customView5"); "pages/customView/customView3","pages/customView/customView4","pages/customView/customView5");
for(String path : listCustomPage){ guideDTO.setCustomPage("pages/customView/customView"+ (guideDTO.getSort().intValue()+1));
/**for(String path : listCustomPage){
boolean exist = false; boolean exist = false;
for(CustomGuideDTO dto : list){ for(CustomGuideDTO dto : list){
if(path.equals(dto.getCustomPage())){ if(path.equals(dto.getCustomPage())){
...@@ -144,9 +145,8 @@ public class CustomGuideController { ...@@ -144,9 +145,8 @@ public class CustomGuideController {
} }
} }
if(!exist){ if(!exist){
guideDTO.setCustomPage(path);
}
} }
}*/
}else { //类型选择为1-6 }else { //类型选择为1-6
for(GuideTypeDTO guideTypeDTO : guideTypeDTOList){ for(GuideTypeDTO guideTypeDTO : guideTypeDTOList){
if(guideDTO.getCustomLinkType().equals(guideTypeDTO.getGuideType())){ if(guideDTO.getCustomLinkType().equals(guideTypeDTO.getGuideType())){
......
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