|
|
|
@ -43,6 +43,7 @@
|
|
|
|
|
, B.PRMISN_NO /* 허가번호 */
|
|
|
|
|
FROM TB_DSUSE_MGT A
|
|
|
|
|
LEFT OUTER JOIN TB_BSSH_INFO B ON A.BSSH_CD = B.BSSH_CD
|
|
|
|
|
WHERE A.USE_YN = "Y"
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -50,22 +51,21 @@
|
|
|
|
|
/* 폐기관리접수 목록 조회(dsuseMgtReceiptMapper.selectDsuseMgtReceiptList) */
|
|
|
|
|
<include refid="utility.paging-prefix" />
|
|
|
|
|
<include refid="select" />
|
|
|
|
|
WHERE 1=1
|
|
|
|
|
<if test="schSggCd != null">
|
|
|
|
|
AND A.DEPT_CD = #{schSggCd} <!-- 관할 관청 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateFrom != null">
|
|
|
|
|
AND A.HDR_DE <![CDATA[>=]]> #{schDateFrom} <!-- 취급 일자 시작 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateTo != null">
|
|
|
|
|
AND A.HDR_DE <![CDATA[<=]]> #{schDateTo} <!-- 취급 일자 종료 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schBsshCd != null">
|
|
|
|
|
AND B.BSSH_CD = #{schBsshCd}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schSttsCd != null">
|
|
|
|
|
AND A.PRGRS_STTS_CD = #{schSttsCd} <!-- 진행 상태 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schSggCd != null">
|
|
|
|
|
AND A.DEPT_CD = #{schSggCd} <!-- 관할 관청 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateFrom != null">
|
|
|
|
|
AND A.HDR_DE <![CDATA[>=]]> #{schDateFrom} <!-- 취급 일자 시작 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateTo != null">
|
|
|
|
|
AND A.HDR_DE <![CDATA[<=]]> #{schDateTo} <!-- 취급 일자 종료 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schBsshCd != null">
|
|
|
|
|
AND B.BSSH_CD = #{schBsshCd}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schSttsCd != null">
|
|
|
|
|
AND A.PRGRS_STTS_CD = #{schSttsCd} <!-- 진행 상태 -->
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
|
<include refid="utility.paging-suffix" />
|
|
|
|
|
</select>
|
|
|
|
@ -73,9 +73,17 @@
|
|
|
|
|
<select id="selectDsuseMgtReceiptInfo" parameterType="string" resultType="dataobject">
|
|
|
|
|
/* 폐기관리접수 목록 조회(dsuseMgtReceiptMapper.selectDsuseMgtReceiptInfo) */
|
|
|
|
|
<include refid="select" />
|
|
|
|
|
WHERE A.DSCDMNG_ID = #{dscdmngId}
|
|
|
|
|
AND A.DSCDMNG_ID = #{dscdmngId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<update id="removeDsuseMgt" parameterType="map" >
|
|
|
|
|
UPDATE tb_dsuse_mgt
|
|
|
|
|
SET use_yn = #{useYn}
|
|
|
|
|
, mdfcn_dt = DATE_FORMAT(now(), '%Y%m%d%H%i%s')
|
|
|
|
|
, mdfr = #{mdfr}
|
|
|
|
|
WHERE dscdmng_id = #{dscdmngId}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="updatePrgsSttusOfDsuseMgt" parameterType="map" >
|
|
|
|
|
UPDATE tb_dsuse_mgt
|
|
|
|
|
SET prgrs_stts_cd = #{prgrsSttsCd}
|
|
|
|
|