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