|
|
@@ -71,4 +71,12 @@ public interface RoleDao extends JpaRepository<Role, Long> {
|
|
|
@Query(value = "select * from sec$roles r where r.role_desc = :description and r.isdefault = 1 and r.role_enuu is null and rownum <= 1",nativeQuery = true)
|
|
|
Role findDefaultRoleByDesc(@Param("description")String desc);
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询角色表的INDEX值
|
|
|
+ *
|
|
|
+ * @param enUU
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Query(value = "select nvl(max(role_index), 0) from sec$roles where role_enuu = :enUU", nativeQuery = true)
|
|
|
+ Long findIndexByEnUU(@Param("enUU") Long enUU);
|
|
|
}
|