From 21f7fcf25f4b4cefd635256faa8e61346756b305 Mon Sep 17 00:00:00 2001 From: minuk926 Date: Fri, 11 Nov 2022 16:26:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=83=9D=EC=84=B1=EC=9E=90=EC=A3=BC?= =?UTF-8?q?=EC=9E=85=20annotation=20fix=20=20=20=20=20=20VO=20fix=20-=20Ba?= =?UTF-8?q?seVO=20=EC=83=81=EC=86=8D=20=EC=A0=9C=EA=B1=B0=20=20=20=20=20?= =?UTF-8?q?=20import=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/AuthAuthorMgtServiceImpl.java | 2 +- .../mng/auth/web/AuthHierarchyMgtController.java | 11 +++++------ .../framework/support/mybatis/MybatisUtils.java | 15 ++++++++------- 3 files changed, 14 insertions(+), 14 deletions(-) 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) {