소스 정리

main
이범준 1 year ago
parent 28fa4cb80e
commit 31ec4c40ab

@ -17,7 +17,6 @@ public class CrdnQuery extends CmmnQuery {
private static final long serialVersionUID = 1L;
//조회유형
private String viewType;
private String gridType;
private String inspectionDataType;
@ -71,14 +70,6 @@ public class CrdnQuery extends CmmnQuery {
private String vhrno;
private String cvlcptPrcsPicNm;
public String getViewType() {
return ifEmpty(viewType, () -> null);
}
public <T extends CrdnQuery> T setViewType(String viewType) {
this.viewType = viewType;
return self();
}
public String getGridType() {
return ifEmpty(gridType, () -> null);
@ -242,6 +233,15 @@ public class CrdnQuery extends CmmnQuery {
return self();
}
public String getSchDmndYmdTo() {
return ifEmpty(schDmndYmdTo, () -> null);
}
public <T extends CrdnQuery> T setSchDmndYmdTo(String schDmndYmdTo) {
this.schDmndYmdTo = schDmndYmdTo;
return self();
}
public Integer getSchCrdnCntFrom() {
return ifEmpty(schCrdnCntFrom, () -> null);
}

@ -35,12 +35,6 @@ public interface CrdnCvlcptMapper extends AbstractMapper {
*/
DataObject selectCivilComplaintOriginalInfo(CrdnQuery query);
/** .
* @param query
* @return
*/
DataObject selectCivilComplaintOriginalInfoHwp(CrdnQuery query);
/** .
* @param query
* @return

@ -71,9 +71,6 @@ public class CrdnCvlcptMainBean extends AbstractComponent {
* @return
*/
public DataObject getCivilComplaintOriginalInfo(CrdnQuery query) {
if(ifEmpty(query.getViewType(), () -> "").equals("hwp")) {
return crdnCvlcptMapper.selectCivilComplaintOriginalInfoHwp(query);
}
return crdnCvlcptMapper.selectCivilComplaintOriginalInfo(query);
}

@ -126,7 +126,6 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
String baseFormatFilePath = ("classpath:format/cvlcptOrgnl_text.hwp");
String attachFormatFilePath = ("classpath:format/cvlcptOrgnl_photo.hwp");
query.setViewType("hwp");
DataObject dataObject = crdnCvlcptMainBean.getCivilComplaintOriginalInfo(query);
SimpleDateFormat ymdhmsFormat = new SimpleDateFormat("yyyyMMddHHmmss");
SimpleDateFormat ymdFormat = new SimpleDateFormat("yyyyMMdd");

@ -283,21 +283,6 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, CC.CVLCPT_PRCS_PRNMNT_DT <!-- 민원 처리 예정 일시 -->
, CC.CVLCPT_APLY_CN <!-- 민원 신청 내용 -->
, CC.CVLCPT_APLY_SE_CD <!-- 민원 신청 구분코드 -->
FROM TB_CRDN C
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
WHERE C.DEL_YN = 'N' AND CC.DEL_YN = 'N'
AND C.CRDN_ID = #{crdnId}
</select>
<select id="selectCivilComplaintOriginalInfoHwp" parameterType="map" resultType="dataobject">
/* 민원내역 원본 보기(한글 파일)(crdnCvlcptMapper.selectCivilComplaintOriginalInfoHwp) */
SELECT C.CRDN_ID <!-- 단속 ID -->
, CC.CVLCPT_RCPT_NO <!-- 민원 접수 번호 -->
, CC.CVLCPT_LIST_NO <!-- 민원 목록 번호 -->
, CC.CVLCPT_APLCNT_NM <!-- 민원 신청인 명 -->
, CC.CVLCPT_RCPT_YMD <!-- 민원 접수 일자 -->
, CC.CVLCPT_PRCS_PRNMNT_DT <!-- 민원 처리 예정 일시 -->
, CC.CVLCPT_APLY_CN <!-- 민원 신청 내용 -->
, C.LINK_TBL_NM <!-- 연계 테이블 명 -->
, C.LINK_ID <!-- 연계 ID -->
FROM TB_CRDN C

Loading…
Cancel
Save