mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-06 04:18:07 +00:00
update 优化 TreeEntity 树实体 去除未知泛型
This commit is contained in:
@@ -28,7 +28,7 @@ import com.ruoyi.common.core.web.domain.TreeEntity;
|
||||
#if($table.crud || $table.sub)
|
||||
#set($Entity="BaseEntity")
|
||||
#elseif($table.tree)
|
||||
#set($Entity="TreeEntity")
|
||||
#set($Entity="TreeEntity<${ClassName}Bo>")
|
||||
#end
|
||||
|
||||
@Data
|
||||
|
@@ -26,7 +26,7 @@ import com.ruoyi.common.core.web.domain.TreeEntity;
|
||||
#if($table.crud || $table.sub)
|
||||
#set($Entity="BaseEntity")
|
||||
#elseif($table.tree)
|
||||
#set($Entity="TreeEntity")
|
||||
#set($Entity="TreeEntity<${ClassName}>")
|
||||
#end
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
|
@@ -25,7 +25,7 @@ import javax.validation.constraints.Size;
|
||||
@NoArgsConstructor
|
||||
@TableName("sys_menu")
|
||||
@ApiModel("菜单权限业务对象")
|
||||
public class SysMenu extends TreeEntity {
|
||||
public class SysMenu extends TreeEntity<SysMenu> {
|
||||
|
||||
/**
|
||||
* 菜单ID
|
||||
|
@@ -143,8 +143,8 @@ public class SysMenuServiceImpl implements ISysMenuService {
|
||||
router.setComponent(getComponent(menu));
|
||||
router.setQuery(menu.getQueryParam());
|
||||
router.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath()));
|
||||
List<SysMenu> cMenus = (List<SysMenu>) menu.getChildren();
|
||||
if (!cMenus.isEmpty() && cMenus.size() > 0 && UserConstants.TYPE_DIR.equals(menu.getMenuType())) {
|
||||
List<SysMenu> cMenus = menu.getChildren();
|
||||
if (!cMenus.isEmpty() && UserConstants.TYPE_DIR.equals(menu.getMenuType())) {
|
||||
router.setAlwaysShow(true);
|
||||
router.setRedirect("noRedirect");
|
||||
router.setChildren(buildMenus(cMenus));
|
||||
|
Reference in New Issue
Block a user