|
|
|
@ -108,6 +108,7 @@
|
|
|
|
|
, tdm.dsuse_de
|
|
|
|
|
, tcc.code_val AS dsuse_mth_nm
|
|
|
|
|
, tbi.bssh_nm
|
|
|
|
|
, tbi.rprsntv_nm
|
|
|
|
|
, tdm.dscdmng_id
|
|
|
|
|
, tdmd.prduct_cd
|
|
|
|
|
, tpi.prduct_nm
|
|
|
|
@ -230,6 +231,7 @@
|
|
|
|
|
, tcc.code_val AS prgrs_stts_nm
|
|
|
|
|
, tcc2.code_val AS dsuse_mth_nm
|
|
|
|
|
, tbi.bssh_nm
|
|
|
|
|
, tbi.rprsntv_nm
|
|
|
|
|
, tdm.dscdmng_id
|
|
|
|
|
, tdm.rnd_dtl_rpt_cnt
|
|
|
|
|
, tdmd.prduct_cd
|
|
|
|
@ -366,6 +368,7 @@
|
|
|
|
|
, tdm.dsuse_de
|
|
|
|
|
, tcc.code_val AS dsuse_mth_nm
|
|
|
|
|
, tbi.bssh_nm
|
|
|
|
|
, tbi.rprsntv_nm
|
|
|
|
|
, tbi.induty_nm
|
|
|
|
|
, tdm.dscdmng_id
|
|
|
|
|
, tdm.rnd_dtl_rpt_cnt
|
|
|
|
@ -486,16 +489,15 @@
|
|
|
|
|
, tdm.dept_cd
|
|
|
|
|
, td.dept_nm
|
|
|
|
|
, tdm.dsuse_de
|
|
|
|
|
, tcc.code_val AS dsuse_mth_nm
|
|
|
|
|
, tcc.code_val AS prgrs_stts_nm
|
|
|
|
|
, tcc2.code_val AS dsuse_mth_nm
|
|
|
|
|
, tbi.bssh_nm
|
|
|
|
|
, tbi.rprsntv_nm
|
|
|
|
|
, tdm.dscdmng_id
|
|
|
|
|
, tdm.rnd_dtl_rpt_cnt
|
|
|
|
|
, tdmd.prduct_cd
|
|
|
|
|
, tpi.prduct_nm
|
|
|
|
|
, tpi.nrcd_se_nm
|
|
|
|
|
, tpi.prtm_se_nm
|
|
|
|
|
, tdmd.dsuse_qy
|
|
|
|
|
, tpi.nrcd_se_nm
|
|
|
|
|
FROM tb_dsuse_mgt tdm
|
|
|
|
|
JOIN tb_dsuse_mgt_dtl tdmd
|
|
|
|
|
ON tdm.dscdmng_id = tdmd.dscdmng_id
|
|
|
|
@ -506,9 +508,13 @@
|
|
|
|
|
JOIN tb_bssh_info tbi
|
|
|
|
|
ON tdm.bssh_cd = tbi.bssh_cd
|
|
|
|
|
LEFT JOIN tb_cmn_code tcc
|
|
|
|
|
ON (tcc.grp_id = 'ADDS05'
|
|
|
|
|
AND tdm.dsuse_mth_cd = tcc.code)
|
|
|
|
|
ON (tcc.grp_id = 'ADDS11'
|
|
|
|
|
AND tdm.prgrs_stts_cd = tcc.code)
|
|
|
|
|
LEFT JOIN tb_cmn_code tcc2
|
|
|
|
|
ON (tcc2.grp_id = 'ADDS05'
|
|
|
|
|
AND tdm.dsuse_mth_cd = tcc2.code)
|
|
|
|
|
WHERE tdm.use_yn = 'Y'
|
|
|
|
|
AND tdm.bssh_cd = #{bsshCd}
|
|
|
|
|
<if test="deptCd != null and deptCd != ''">
|
|
|
|
|
AND tdm.dept_cd = #{deptCd} <!-- 관할 관청 -->
|
|
|
|
|
</if>
|
|
|
|
@ -521,11 +527,8 @@
|
|
|
|
|
<if test="schSttsCd != null">
|
|
|
|
|
AND tdm.prgrs_stts_cd = #{schSttsCd} <!-- 진행 상태 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="nrcdSeNm != null">
|
|
|
|
|
AND tpi.nrcd_se_nm = #{nrcdSeNm} <!-- 진행 상태 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="prtmSeNm != null">
|
|
|
|
|
AND tpi.prtm_se_nm = #{prtmSeNm} <!-- 진행 상태 -->
|
|
|
|
|
<if test="prgrsSttsCd != null">
|
|
|
|
|
AND tdm.prgrs_stts_cd = #{prgrsSttsCd} <!-- 진행 상태 -->
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|
|
|
|
|