diff --git a/src/main/java/kr/xit/framework/biz/mng/auth/service/impl/AuthAuthorMgtServiceImpl.java b/src/main/java/kr/xit/framework/biz/mng/auth/service/impl/AuthAuthorMgtServiceImpl.java index 37d91756..7a266a9a 100644 --- a/src/main/java/kr/xit/framework/biz/mng/auth/service/impl/AuthAuthorMgtServiceImpl.java +++ b/src/main/java/kr/xit/framework/biz/mng/auth/service/impl/AuthAuthorMgtServiceImpl.java @@ -19,7 +19,7 @@ import lombok.extern.slf4j.Slf4j; @Slf4j @Service public class AuthAuthorMgtServiceImpl implements AuthAuthorMgtService { - private AuthAuthorMgtMapper mapper; + private final AuthAuthorMgtMapper mapper; /** 부모 권한코드 */ private static final String PARNTS_AUTHOR = "ROLE_USER"; diff --git a/src/main/java/kr/xit/framework/biz/mng/auth/web/AuthHierarchyMgtController.java b/src/main/java/kr/xit/framework/biz/mng/auth/web/AuthHierarchyMgtController.java index 5ac4c24b..0867153f 100644 --- a/src/main/java/kr/xit/framework/biz/mng/auth/web/AuthHierarchyMgtController.java +++ b/src/main/java/kr/xit/framework/biz/mng/auth/web/AuthHierarchyMgtController.java @@ -46,13 +46,12 @@ import lombok.RequiredArgsConstructor; @RequestMapping("/framework/biz/mng/auth") public class AuthHierarchyMgtController { - private AuthHierarchyMgtService service; - private AuthAuthorMgtService authAuthorMgtService; + private final AuthHierarchyMgtService service; + private final AuthAuthorMgtService authAuthorMgtService; - private EgovSecuredObjectService egovSecuredObjectService; - private RoleHierarchyImpl roleHierarchyImpl; - private EgovJdbcUserDetailsManager egovJdbcUserDetailsManager; - + private final EgovSecuredObjectService egovSecuredObjectService; + private final RoleHierarchyImpl roleHierarchyImpl; + private final EgovJdbcUserDetailsManager egovJdbcUserDetailsManager; /** diff --git a/src/main/java/kr/xit/framework/support/mybatis/MybatisUtils.java b/src/main/java/kr/xit/framework/support/mybatis/MybatisUtils.java index e89425d0..3106f48e 100644 --- a/src/main/java/kr/xit/framework/support/mybatis/MybatisUtils.java +++ b/src/main/java/kr/xit/framework/support/mybatis/MybatisUtils.java @@ -1,14 +1,15 @@ package kr.xit.framework.support.mybatis; -import kr.xit.framework.support.mybatis.paging.domain.Order; -import kr.xit.framework.support.mybatis.paging.domain.PageBounds; -import kr.xit.framework.support.util.Checks; -import org.apache.ibatis.session.RowBounds; - import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Map; +import org.apache.ibatis.session.RowBounds; + +import kr.xit.framework.support.mybatis.paging.domain.Order; +import kr.xit.framework.support.mybatis.paging.domain.PageBounds; +import kr.xit.framework.support.util.Checks; + public class MybatisUtils{ public static RowBounds getPagingInfo(Map map){ if(Checks.isEmpty(map)){ @@ -30,10 +31,10 @@ public class MybatisUtils{ } try { Method pageMethod = cls.getClass().getMethod("getPage"); - page = (Integer)pageMethod.invoke(cls, null); + if(!Checks.isEmpty(pageMethod)) page = (Integer)pageMethod.invoke(cls, null); Method limitMethod = cls.getClass().getMethod("getPerPage"); - limit = (Integer)limitMethod.invoke(cls, null); + if(!Checks.isEmpty(limitMethod)) limit = (Integer)limitMethod.invoke(cls, null); } catch (IllegalAccessException ex) { throw new RuntimeException(ex); } catch (NoSuchMethodException e) {