|
@@ -48,6 +48,17 @@ public class SiteCategoryServiceImpl extends AbstractCrudService<SiteCategoryMap
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public List<SiteCategory> siteCategorySonList(Integer pid) {
|
|
|
|
+ LambdaQueryWrapper<SiteCategory> queryWrapper = Wrappers.lambdaQuery();
|
|
|
|
+ queryWrapper.eq(SiteCategory::getStatus, 1)
|
|
|
|
+ .eq(SiteCategory::getPid, pid)
|
|
|
|
+ .orderByAsc(SiteCategory::getSortindex);
|
|
|
|
+ List<SiteCategory> list = this.list(queryWrapper);
|
|
|
|
+ return list;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public void addSiteCategory(SiteCategory siteCategory) {
|
|
public void addSiteCategory(SiteCategory siteCategory) {
|
|
LambdaQueryWrapper<SiteCategory> queryWrapper = Wrappers.lambdaQuery();
|
|
LambdaQueryWrapper<SiteCategory> queryWrapper = Wrappers.lambdaQuery();
|
|
@@ -95,7 +106,7 @@ public class SiteCategoryServiceImpl extends AbstractCrudService<SiteCategoryMap
|
|
|
|
|
|
private List<SiteCategory> getChildrenData(SiteCategory root, List<SiteCategory> all) {
|
|
private List<SiteCategory> getChildrenData(SiteCategory root, List<SiteCategory> all) {
|
|
List<SiteCategory> children = all.stream().filter(subjectVO ->
|
|
List<SiteCategory> children = all.stream().filter(subjectVO ->
|
|
- subjectVO.getPid() == root.getId() && !root.getCategoryName().equals("产品服务")
|
|
|
|
|
|
+ subjectVO.getPid() == root.getId() && !root.getCategoryName().equals("产品服务") && !root.getCategoryName().equals("客户案例")
|
|
).map(subjectVO -> {
|
|
).map(subjectVO -> {
|
|
subjectVO.setChildren(getChildrenData(subjectVO, all));
|
|
subjectVO.setChildren(getChildrenData(subjectVO, all));
|
|
return subjectVO;
|
|
return subjectVO;
|