feat: 폐기결과[통보] 처리 진행

dev
Jonguk. Lim 4 months ago
parent ab9aa77140
commit f041817ae2

@ -0,0 +1,63 @@
package cokr.xit.adds.nims;
import cokr.xit.foundation.component.QueryRequest;
/**
*
*/
public class DsuseMgtRsltQuery extends QueryRequest{
private static final long serialVersionUID = 1L;
//폐기관리
private String dscdmngId; // 폐기관리 ID
private String deptCd; // 부서 코드
private String userId; // 사용자 ID
private String dsuseMthCd; // 폐기 방법 코드
private String dsuseDe; // 폐기 일자
public String getDscdmngId() {
return ifEmpty(dscdmngId, () -> null);
}
public <T extends DsuseMgtRsltQuery> T setDscdmngId(String dscdmngId) {
this.dscdmngId = dscdmngId;
return self();
}
public String getDeptCd() {
return ifEmpty(deptCd, () -> null);
}
public <T extends DsuseMgtRsltQuery> T setDeptCd(String deptCd) {
this.deptCd = deptCd;
return self();
}
public String getUserId() {
return ifEmpty(userId, () -> null);
}
public <T extends DsuseMgtRsltQuery> T setUserId(String userId) {
this.userId = userId;
return self();
}
public String getDsuseMthCd() {
return ifEmpty(dsuseMthCd, () -> null);
}
public <T extends DsuseMgtRsltQuery> T setDsuseMthCd(String dsuseMthCd) {
this.dsuseMthCd = dsuseMthCd;
return self();
}
public String getDsuseDe() {
return ifEmpty(dsuseDe, () -> null);
}
public <T extends DsuseMgtRsltQuery> T setDsuseDe(String dsuseDe) {
this.dsuseDe = dsuseDe;
return self();
}
}

@ -0,0 +1,22 @@
package cokr.xit.adds.nims.dao;
import java.util.List;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
import cokr.xit.adds.nims.DsuseMgtRsltQuery;
import cokr.xit.foundation.component.AbstractMapper;
import cokr.xit.foundation.data.DataObject;
/** DAO
*/
@Mapper("dsuseMgtRsltMapper")
public interface DsuseMgtRsltMapper extends AbstractMapper {
/** .<br />
* @param req
* @return
*/
List<DataObject> selectDsuseMgtRsltImgList(DsuseMgtRsltQuery req);
}

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cokr.xit.adds.nims.dao.DsuseMgtRsltMapper">
<!-- 폐기관리 결과 파일 등록 관련 매퍼
-->
<select id="selectDsuseMgtRsltImgList" parameterType="map" resultType="dataobject">
/* 폐기 결과 이미지 등록 조회(dsuseMgtRsltMapper.selectDsuseMgtRsltImgList) */
SELECT tdm.DSCDMNG_ID
, tdm.DSUSE_MTH_CD
, tdm.DSUSE_DE
, tf.FILE_ID
-- , tf.FILE_NM
-- , IF(tf.FILE_ID IS NULL, 'Y', 'N') AS ins_yn
-- , IFNULL(tf.FILE_ID, 'N') AS ins_yn
FROM tb_dsuse_mgt tdm
LEFT JOIN tb_file tf
ON tdm.dscdmng_id = tf.inf_key
AND tf.INF_TYPE = '110'
WHERE tdm.use_yn = 'Y'
AND tdm.dept_cd = '4050149'
AND tdm.dsuse_mth_cd = '3'
AND tdm.dsuse_de = '20240709'
</select>
</mapper>
Loading…
Cancel
Save