commit
This commit is contained in:
@@ -54,7 +54,9 @@ public class SysMenuController {
|
||||
@At("/child")
|
||||
@Ok("json")
|
||||
@RequiresAuthentication
|
||||
public Object child(@Param("pid") String pid, HttpServletRequest req) {
|
||||
public Object child(@Param("pid") String pid,
|
||||
@Param(value = "menuName", required = false) String menuName,
|
||||
HttpServletRequest req) {
|
||||
List<Sys_menu> list = new ArrayList<>();
|
||||
List<NutMap> treeList = new ArrayList<>();
|
||||
Cnd cnd = Cnd.NEW();
|
||||
@@ -63,6 +65,9 @@ public class SysMenuController {
|
||||
} else {
|
||||
cnd.and("parentId", "=", pid);
|
||||
}
|
||||
if (StrUtil.isNotBlank(menuName)) {
|
||||
cnd.and(Cnd.likeEX("`name`",menuName));
|
||||
}
|
||||
cnd.asc("location").asc("path");
|
||||
list = sysMenuService.query(cnd);
|
||||
for (Sys_menu menu : list) {
|
||||
|
||||
Reference in New Issue
Block a user