|
@@ -47,6 +47,8 @@ public class RoleDao extends BaseDaoSupport<Role, Long> {
|
|
|
*/
|
|
*/
|
|
|
public Page<Role> selectAll(Role condition) {
|
|
public Page<Role> selectAll(Role condition) {
|
|
|
QueryRule queryRule = QueryRule.getInstance();
|
|
QueryRule queryRule = QueryRule.getInstance();
|
|
|
|
|
+ //过滤root角色
|
|
|
|
|
+ queryRule.andNotEqual("id", 1L);
|
|
|
if (null != condition.getId()) {
|
|
if (null != condition.getId()) {
|
|
|
queryRule.andEqual("id", condition.getId());
|
|
queryRule.andEqual("id", condition.getId());
|
|
|
}
|
|
}
|