|
|
@ -44,8 +44,8 @@
|
|
|
|
<sql id="selectCategories"><include refid="utility.paging-prefix" />
|
|
|
|
<sql id="selectCategories"><include refid="utility.paging-prefix" />
|
|
|
|
SELECT *
|
|
|
|
SELECT *
|
|
|
|
FROM TB_CODE_CTGR
|
|
|
|
FROM TB_CODE_CTGR
|
|
|
|
WHERE USE_YN = 'Y'
|
|
|
|
<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></where>
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
<include refid="utility.paging-suffix" /></sql>
|
|
|
|
<include refid="utility.paging-suffix" /></sql>
|
|
|
|
|
|
|
|
|
|
|
@ -94,9 +94,9 @@ UPDATE TB_CODE_CTGR SET
|
|
|
|
<sql id="selectGroups"><include refid="utility.paging-prefix" />
|
|
|
|
<sql id="selectGroups"><include refid="utility.paging-prefix" />
|
|
|
|
SELECT *
|
|
|
|
SELECT *
|
|
|
|
FROM TB_CODE_GRP
|
|
|
|
FROM TB_CODE_GRP
|
|
|
|
WHERE USE_YN = 'Y'
|
|
|
|
<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>
|
|
|
|
<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></where>
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
<include refid="utility.paging-suffix" /></sql>
|
|
|
|
<include refid="utility.paging-suffix" /></sql>
|
|
|
|
|
|
|
|
|
|
|
@ -151,9 +151,9 @@ UPDATE TB_CODE_GRP SET
|
|
|
|
<sql id="selectCodes"><include refid="utility.paging-prefix" />
|
|
|
|
<sql id="selectCodes"><include refid="utility.paging-prefix" />
|
|
|
|
SELECT *
|
|
|
|
SELECT *
|
|
|
|
FROM TB_CMN_CODE
|
|
|
|
FROM TB_CMN_CODE
|
|
|
|
WHERE USE_YN = 'Y'
|
|
|
|
<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>
|
|
|
|
<if test='codes != null'>AND CODE IN (<foreach collection="codes" item="code" separator=",">#{code}</foreach>)</if>
|
|
|
|
<if test='codes != null'> AND CODE IN (<foreach collection="codes" item="code" separator=",">#{code}</foreach>)</if></where>
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
<include refid="utility.paging-suffix" /></sql>
|
|
|
|
<include refid="utility.paging-suffix" /></sql>
|
|
|
|
|
|
|
|
|
|
|
|