查询菜单类型;
This commit is contained in:
+10
-1
@@ -8,6 +8,7 @@ import com.linke.product.domain.customAuth.entity.CustomAuth;
|
||||
import com.linke.product.domain.customAuth.entity.CustomAuthOrganization;
|
||||
import com.linke.product.domain.customAuth.service.CustomAuthOrganizationDomainService;
|
||||
import com.linke.product.domain.menu.entity.Menu;
|
||||
import com.linke.product.domain.menu.repository.mapper.MenuMapper;
|
||||
import com.linke.product.domain.menu.repository.po.MenuPo;
|
||||
import com.linke.product.domain.menu.service.MenuDomainService;
|
||||
import com.linke.product.domain.menu.service.UserFeignService;
|
||||
@@ -100,6 +101,8 @@ public class MenuApplicationService {
|
||||
private MenuUtils menuUtils;
|
||||
@Autowired(required = false)
|
||||
private MinIoUploadService minIoUploadService;
|
||||
@Autowired
|
||||
private MenuMapper menuMapper;
|
||||
|
||||
|
||||
/**
|
||||
@@ -572,6 +575,12 @@ public class MenuApplicationService {
|
||||
navigationProduct = sysProductDomainService.getNavigationProduct(navigationMenu, longs, tenantsId);
|
||||
}
|
||||
|
||||
|
||||
for (NavigationVo navigationVo : navigationProduct) {
|
||||
Long id = navigationVo.getId();
|
||||
Menu menu = menuMapper.selectById(id);
|
||||
navigationVo.setMenuType(menu.getMenuType());
|
||||
}
|
||||
return navigationProduct;
|
||||
}
|
||||
|
||||
@@ -1092,4 +1101,4 @@ public class MenuApplicationService {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
+3
-2
@@ -58,5 +58,6 @@ public class NavigationVo implements Serializable {
|
||||
|
||||
@ApiModelProperty(name = "首页展示标记(1-是,2-否)")
|
||||
private Integer homeShowFlag;
|
||||
|
||||
}
|
||||
@ApiModelProperty(name = "菜单类型:默认0-无状态,1-目录,2-菜单,3-按钮,4-字段")
|
||||
private Integer menuType;
|
||||
}
|
||||
Reference in New Issue
Block a user