|
|
@ -42,7 +42,14 @@
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectCategories"><include refid="utility.paging-prefix" />
|
|
|
|
<sql id="selectCategories"><include refid="utility.paging-prefix" />
|
|
|
|
SELECT *
|
|
|
|
SELECT CTGR_ID
|
|
|
|
|
|
|
|
, CTGR_NM
|
|
|
|
|
|
|
|
, DSCRP
|
|
|
|
|
|
|
|
, USE_YN
|
|
|
|
|
|
|
|
, REG_DT
|
|
|
|
|
|
|
|
, RGTR
|
|
|
|
|
|
|
|
, MDFCN_DT
|
|
|
|
|
|
|
|
, MDFR
|
|
|
|
FROM TB_CODE_CTGR
|
|
|
|
FROM TB_CODE_CTGR
|
|
|
|
<where><if test="!includeAll"> AND USE_YN = 'Y'</if>
|
|
|
|
<where><if test="!includeAll"> AND USE_YN = 'Y'</if>
|
|
|
|
<if test="categoryIDs != null"> AND CTGR_ID IN (<foreach collection="categoryIDs" item="categoryID" separator=",">#{categoryID}</foreach>)</if></where>
|
|
|
|
<if test="categoryIDs != null"> AND CTGR_ID IN (<foreach collection="categoryIDs" item="categoryID" separator=",">#{categoryID}</foreach>)</if></where>
|
|
|
@ -92,7 +99,15 @@ UPDATE TB_CODE_CTGR SET
|
|
|
|
<if test='categoryIDs != null'>WHERE CTGR_ID IN (<foreach collection="categoryIDs" item="categoryID" separator=",">#{categoryID}</foreach>)</if></delete>
|
|
|
|
<if test='categoryIDs != null'>WHERE CTGR_ID IN (<foreach collection="categoryIDs" item="categoryID" separator=",">#{categoryID}</foreach>)</if></delete>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectGroups"><include refid="utility.paging-prefix" />
|
|
|
|
<sql id="selectGroups"><include refid="utility.paging-prefix" />
|
|
|
|
SELECT *
|
|
|
|
SELECT GRP_ID
|
|
|
|
|
|
|
|
, CTGR_ID
|
|
|
|
|
|
|
|
, GRP_NM
|
|
|
|
|
|
|
|
, DSCRP
|
|
|
|
|
|
|
|
, USE_YN
|
|
|
|
|
|
|
|
, REG_DT
|
|
|
|
|
|
|
|
, RGTR
|
|
|
|
|
|
|
|
, MDFCN_DT
|
|
|
|
|
|
|
|
, MDFR
|
|
|
|
FROM TB_CODE_GRP
|
|
|
|
FROM TB_CODE_GRP
|
|
|
|
<where><if test="!includeAll"> AND USE_YN = 'Y'</if>
|
|
|
|
<where><if test="!includeAll"> AND USE_YN = 'Y'</if>
|
|
|
|
<if test="categoryIDs != null"> AND CTGR_ID IN (<foreach collection="categoryIDs" item="categoryID" separator=",">#{categoryID}</foreach>)</if>
|
|
|
|
<if test="categoryIDs != null"> AND CTGR_ID IN (<foreach collection="categoryIDs" item="categoryID" separator=",">#{categoryID}</foreach>)</if>
|
|
|
@ -149,7 +164,19 @@ UPDATE TB_CODE_GRP SET
|
|
|
|
</where></update>
|
|
|
|
</where></update>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectCodes"><include refid="utility.paging-prefix" />
|
|
|
|
<sql id="selectCodes"><include refid="utility.paging-prefix" />
|
|
|
|
SELECT *
|
|
|
|
SELECT GRP_ID
|
|
|
|
|
|
|
|
, CODE
|
|
|
|
|
|
|
|
, CODE_VAL
|
|
|
|
|
|
|
|
, DSCRP
|
|
|
|
|
|
|
|
, ETC_1
|
|
|
|
|
|
|
|
, ETC_2
|
|
|
|
|
|
|
|
, ETC_3
|
|
|
|
|
|
|
|
, SRT_ORD
|
|
|
|
|
|
|
|
, USE_YN
|
|
|
|
|
|
|
|
, REG_DT
|
|
|
|
|
|
|
|
, RGTR
|
|
|
|
|
|
|
|
, MDFCN_DT
|
|
|
|
|
|
|
|
, MDFR
|
|
|
|
FROM TB_CMN_CODE
|
|
|
|
FROM TB_CMN_CODE
|
|
|
|
<where><if test="!includeAll"> AND USE_YN = 'Y'</if>
|
|
|
|
<where><if test="!includeAll"> AND USE_YN = 'Y'</if>
|
|
|
|
<if test='groupIDs != null'> AND GRP_ID IN (<foreach collection="groupIDs" item="groupID" separator=",">#{groupID}</foreach>)</if>
|
|
|
|
<if test='groupIDs != null'> AND GRP_ID IN (<foreach collection="groupIDs" item="groupID" separator=",">#{groupID}</foreach>)</if>
|
|
|
|