|
|
@ -165,9 +165,7 @@
|
|
|
|
, 'ens' as upduser
|
|
|
|
, 'ens' as upduser
|
|
|
|
, date_format(tcsm.updt_dt, '%Y%m%d%H%i%S') as upddate
|
|
|
|
, date_format(tcsm.updt_dt, '%Y%m%d%H%i%S') as upddate
|
|
|
|
, tcsm.sndng_dt as sndngdt
|
|
|
|
, tcsm.sndng_dt as sndngdt
|
|
|
|
, CASE WHEN tcsm.signgu_code = '88328' THEN SUBSTRING(tcsm.tmplat_id, 3,1) /* 교통시설운영처 */
|
|
|
|
, fn_get_code_nm('ETI005', SUBSTRING(tcsm.tmplat_id, 5,1)) as sndngsecode
|
|
|
|
WHEN tcsm.signgu_code = '88316' THEN fn_get_code_nm('ETI003', SUBSTRING(tcsm.tmplat_id, 3,1)) /* 추모시설운영처 */
|
|
|
|
|
|
|
|
END as sndngsecode
|
|
|
|
|
|
|
|
, tcsm.tmplat_id as tmplatid
|
|
|
|
, tcsm.tmplat_id as tmplatid
|
|
|
|
, date_format(now(), '%Y%m%d%H%i%S') as searchdate
|
|
|
|
, date_format(now(), '%Y%m%d%H%i%S') as searchdate
|
|
|
|
, '' as success
|
|
|
|
, '' as success
|
|
|
@ -186,7 +184,7 @@
|
|
|
|
FROM tb_cntc_sndng_mastr tcsm
|
|
|
|
FROM tb_cntc_sndng_mastr tcsm
|
|
|
|
INNER JOIN tb_cntc_sndng_detail tcsd ON (tcsm.unity_sndng_mastr_id = tcsd.unity_sndng_mastr_id)
|
|
|
|
INNER JOIN tb_cntc_sndng_detail tcsd ON (tcsm.unity_sndng_mastr_id = tcsd.unity_sndng_mastr_id)
|
|
|
|
LEFT OUTER JOIN tb_cntc_sndng_result tcsr ON (tcsd.unity_sndng_detail_id = tcsr.unity_sndng_detail_id)
|
|
|
|
LEFT OUTER JOIN tb_cntc_sndng_result tcsr ON (tcsd.unity_sndng_detail_id = tcsr.unity_sndng_detail_id)
|
|
|
|
WHERE (tcsm.sndng_process_sttus != 'close' OR (tcsm.sndng_process_sttus = 'close' AND tcsm.updt_dt > date_add(now(), interval -7 day)))
|
|
|
|
WHERE str_to_date(tcsm.clos_dt, '%Y%m%d%H%i%S') > date_add(now(), interval -7 day)
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|