diff --git a/src/main/java/cokr/xit/base/code/web/CodeController.java b/src/main/java/cokr/xit/base/code/web/CodeController.java
index 3852f4c..361b8a1 100644
--- a/src/main/java/cokr/xit/base/code/web/CodeController.java
+++ b/src/main/java/cokr/xit/base/code/web/CodeController.java
@@ -52,7 +52,7 @@ public class CodeController extends AbstractController {
setFetchSize(req);
return setCollectionInfo(
new ModelAndView("jsonView"),
- codeService.getCategoryList(req),
+ codeService.getCategoryList(req.setIncludeAll(true)),
"category"
);
}
@@ -132,7 +132,7 @@ public class CodeController extends AbstractController {
setFetchSize(req);
return setCollectionInfo(
new ModelAndView("jsonView"),
- codeService.getGroupList(req),
+ codeService.getGroupList(req.setIncludeAll(true)),
"group"
);
}
@@ -229,7 +229,7 @@ public class CodeController extends AbstractController {
setFetchSize(req);
return setCollectionInfo(
new ModelAndView("jsonView"),
- codeService.getCodeList(req),
+ codeService.getCodeList(req.setIncludeAll(true)),
"code"
);
}
diff --git a/src/main/resources/sql/mapper/code-mapper.xml b/src/main/resources/sql/mapper/code-mapper.xml
index be27d2b..3934e28 100644
--- a/src/main/resources/sql/mapper/code-mapper.xml
+++ b/src/main/resources/sql/mapper/code-mapper.xml
@@ -44,8 +44,8 @@
SELECT *
FROM TB_CODE_CTGR
- WHERE USE_YN = 'Y'
- AND CTGR_ID IN (#{categoryID})
+ AND USE_YN = 'Y'
+ AND CTGR_ID IN (#{categoryID})
@@ -94,9 +94,9 @@ UPDATE TB_CODE_CTGR SET
SELECT *
FROM TB_CODE_GRP
- WHERE USE_YN = 'Y'
-AND CTGR_ID IN (#{categoryID})
-AND GRP_ID IN (#{groupID})
+ AND USE_YN = 'Y'
+ AND CTGR_ID IN (#{categoryID})
+ AND GRP_ID IN (#{groupID})
@@ -151,9 +151,9 @@ UPDATE TB_CODE_GRP SET
SELECT *
FROM TB_CMN_CODE
- WHERE USE_YN = 'Y'
- AND GRP_ID IN (#{groupID})
- AND CODE IN (#{code})
+ AND USE_YN = 'Y'
+ AND GRP_ID IN (#{groupID})
+ AND CODE IN (#{code})