优化列表

main
tamguo 7 years ago
parent d52d7eec3d
commit ba31fa293d

@ -2,6 +2,8 @@ package com.tamguo.modules.sys.model.condition;
public class SysMenuCondition {
private String parentCode;
private Integer pageNo;
private Integer pageSize;
@ -17,5 +19,11 @@ public class SysMenuCondition {
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
public String getParentCode() {
return parentCode;
}
public void setParentCode(String parentCode) {
this.parentCode = parentCode;
}
}

@ -29,6 +29,17 @@
m.remarks
FROM
sys_menu m
<where>
1 = 1
<choose>
<when test="parentCode != null and parentCode != ''">
and m.parent_code = #{parentCode}
</when>
<otherwise>
and m.tree_level = 0
</otherwise>
</choose>
</where>
</select>
<select id="selectMenuByRoleId" resultType="SysMenuEntity">

Loading…
Cancel
Save