|
|
@@ -2,12 +2,6 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.style24.batch.biz.dao.TsbCommonDao">
|
|
|
|
|
|
- <!-- 시퀀스 값 조회 -->
|
|
|
- <select id="getNextSequence" parameterType="String" resultType="String">
|
|
|
- /* TsbCommon.getNextSequence */
|
|
|
- SELECT ${value}.NEXTVAL AS SQ
|
|
|
- FROM DUAL
|
|
|
- </select>
|
|
|
|
|
|
<!-- WMS 연동 여부 -->
|
|
|
<select id="getWmsSyncYn" resultType="String">
|
|
|
@@ -18,47 +12,4 @@
|
|
|
AND CD = 'WMSSYNCYN'
|
|
|
</select>
|
|
|
|
|
|
- <!-- 기본답변문구 조회 -->
|
|
|
- <select id="getBasicAnswer" parameterType="TsbBasicAnswer" resultType="TsbBasicAnswer">
|
|
|
- /* TsbCommon.getBasicAnswer */
|
|
|
- SELECT ANS_TITLE --답변제목
|
|
|
- , ANS_CONTENT --답변내용
|
|
|
- FROM TB_BASIC_ANS
|
|
|
- WHERE USE_YN = 'Y'
|
|
|
- <if test="ansSq != null and ansSq != ''">
|
|
|
- AND ANS_SQ = #{ansSq}
|
|
|
- </if>
|
|
|
- <if test="kkoCd != null and kkoCd != ''">
|
|
|
- AND KKO_CD = #{kkoCd}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="getCommonCodeList" parameterType="TsbCommonCode" resultType="TsbCommonCode">
|
|
|
- /* TsbCommon.getCommonCodeList */
|
|
|
- SELECT CD
|
|
|
- , CD_NM
|
|
|
- FROM TB_COMMON_CODE
|
|
|
- WHERE 1 = 1
|
|
|
- <if test="useYn != null and useYn != ''">
|
|
|
- AND USE_YN = #{useYn}
|
|
|
- </if>
|
|
|
- AND CD_GB = #{cdGb}
|
|
|
- <if test="cd != null and cd != ''">
|
|
|
- AND CD = #{cd}
|
|
|
- </if>
|
|
|
- <if test="cdNm != null and cdNm != ''">
|
|
|
- AND CD_NM = #{cdNm}
|
|
|
- </if>
|
|
|
- <if test="cdDesc != null and cdDesc != ''">
|
|
|
- AND CD_DESC = #{cdDesc}
|
|
|
- </if>
|
|
|
- <if test="exceptCds != null and exceptCds != ''">
|
|
|
- AND CD NOT IN
|
|
|
- <foreach collection="exceptCds" item="item" index="index" open="(" close=")" separator=",">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- ORDER BY CD_GB, DISP_ORD
|
|
|
- </select>
|
|
|
-
|
|
|
</mapper>
|