|
|
@ -19,7 +19,9 @@ SELECT SA.INDIV_ID <!-- 개별 ID -->
|
|
|
|
WHERE USER_ID = SA.RGTR
|
|
|
|
WHERE USER_ID = SA.RGTR
|
|
|
|
) AS RGTR <!-- 요청자 -->
|
|
|
|
) AS RGTR <!-- 요청자 -->
|
|
|
|
FROM TB_SA_CVLCPT_INDIV_DMND SA
|
|
|
|
FROM TB_SA_CVLCPT_INDIV_DMND SA
|
|
|
|
WHERE SA.SGG_CD = #{sggCd}
|
|
|
|
WHERE SA.DEL_YN = 'N'
|
|
|
|
|
|
|
|
AND SA.SGG_CD = #{sggCd}
|
|
|
|
|
|
|
|
AND SA.TASK_SE_CD = #{taskSeCd}
|
|
|
|
<if test="schDmndYmdFrom != null or schDmndYmdTo != null">
|
|
|
|
<if test="schDmndYmdFrom != null or schDmndYmdTo != null">
|
|
|
|
<if test="schDmndYmdFrom != null">AND SA.DMND_YMD <![CDATA[ >= ]]> #{schDmndYmdFrom} </if>
|
|
|
|
<if test="schDmndYmdFrom != null">AND SA.DMND_YMD <![CDATA[ >= ]]> #{schDmndYmdFrom} </if>
|
|
|
|
<if test="schDmndYmdTo != null">AND SA.DMND_YMD <![CDATA[ <= ]]> #{schDmndYmdTo} </if>
|
|
|
|
<if test="schDmndYmdTo != null">AND SA.DMND_YMD <![CDATA[ <= ]]> #{schDmndYmdTo} </if>
|
|
|
@ -40,11 +42,13 @@ INSERT
|
|
|
|
INTO TB_SA_CVLCPT_INDIV_DMND (
|
|
|
|
INTO TB_SA_CVLCPT_INDIV_DMND (
|
|
|
|
INDIV_ID
|
|
|
|
INDIV_ID
|
|
|
|
, SGG_CD
|
|
|
|
, SGG_CD
|
|
|
|
|
|
|
|
, TASK_SE_CD
|
|
|
|
, RCPT_YMD
|
|
|
|
, RCPT_YMD
|
|
|
|
, PST_NO
|
|
|
|
, PST_NO
|
|
|
|
, DMND_YMD
|
|
|
|
, DMND_YMD
|
|
|
|
, DMND_SE_CD
|
|
|
|
, DMND_SE_CD
|
|
|
|
, STTS_CD
|
|
|
|
, STTS_CD
|
|
|
|
|
|
|
|
, DEL_YN
|
|
|
|
, REG_DT
|
|
|
|
, REG_DT
|
|
|
|
, RGTR
|
|
|
|
, RGTR
|
|
|
|
, MDFCN_DT
|
|
|
|
, MDFCN_DT
|
|
|
@ -53,11 +57,13 @@ INSERT
|
|
|
|
VALUES (
|
|
|
|
VALUES (
|
|
|
|
#{indivId}
|
|
|
|
#{indivId}
|
|
|
|
, #{sggCd}
|
|
|
|
, #{sggCd}
|
|
|
|
|
|
|
|
, #{taskSeCd}
|
|
|
|
, REPLACE(#{rcptYmd},'-','')
|
|
|
|
, REPLACE(#{rcptYmd},'-','')
|
|
|
|
, LPAD(#{pstNo}, 6, '0')
|
|
|
|
, LPAD(#{pstNo}, 6, '0')
|
|
|
|
, <include refid="utility.today" />
|
|
|
|
, <include refid="utility.today" />
|
|
|
|
, '1'
|
|
|
|
, '1'
|
|
|
|
, '0'
|
|
|
|
, '0'
|
|
|
|
|
|
|
|
, 'N'
|
|
|
|
, <include refid="utility.now" />
|
|
|
|
, <include refid="utility.now" />
|
|
|
|
, #{modifiedBy}
|
|
|
|
, #{modifiedBy}
|
|
|
|
, <include refid="utility.now" />
|
|
|
|
, <include refid="utility.now" />
|
|
|
|