fetch:人员添加字段
This commit is contained in:
@@ -61,6 +61,10 @@ public class SarMenu extends BaseEntity {
|
||||
@TableField("DISPLAY_SEQ")
|
||||
private Integer displaySeq;
|
||||
|
||||
@ApiModelProperty(value = "路径")
|
||||
@TableField("HREF")
|
||||
private String href;
|
||||
|
||||
@ApiModelProperty(value = "是否有效")
|
||||
@TableField("VALID_FLAG")
|
||||
private Integer validFlag;
|
||||
|
||||
@@ -24,4 +24,11 @@ public interface ISarMenuService extends IService<SarMenu> {
|
||||
List<String> queryRoleMenuIdList(String sordDivide, String menuId) throws Exception;
|
||||
|
||||
List<String> getChildMenuList(String menuId);
|
||||
|
||||
/**
|
||||
* 通过ids查询menus
|
||||
* @param menuIds:菜单ID
|
||||
* @return List<SarMenu>
|
||||
*/
|
||||
List<SarMenu> getMenusByIds(List<String> menuIds);
|
||||
}
|
||||
|
||||
+12
@@ -152,4 +152,16 @@ public class SarMenuServiceImpl extends ServiceImpl<SarMenuDao, SarMenu> impleme
|
||||
}
|
||||
return menuIds;
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过ids查询menus
|
||||
* @param menuIds:菜单ID
|
||||
* @return List<SarMenu>
|
||||
*/
|
||||
@Override
|
||||
public List<SarMenu> getMenusByIds(List<String> menuIds) {
|
||||
QueryWrapper<SarMenu> menuQueryWrapper=new QueryWrapper<>();
|
||||
menuQueryWrapper.in("id",menuIds);
|
||||
return dao.selectList(menuQueryWrapper);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user