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