main
jjh 11 months ago
parent ec81ac25c8
commit 5e8ef1419e

@ -42,12 +42,7 @@ public class LevyExclQuery extends CmmnQuery {
private String schCrdnYmdTo; // 단속(TB_CRDN)_단속 일자 종료 private String schCrdnYmdTo; // 단속(TB_CRDN)_단속 일자 종료
private String schRtpyrNm; // 납부자(TB_PAYER)_납부자 명 private String schRtpyrNm; // 납부자(TB_PAYER)_납부자 명
// 상세 검색 조건 // 상세 검색 조건
private String schDetailRegDtOpt; // 상세 검색 등록 일자 구분
private String schDetailRegDtFrom; // 상세 검색 등록 일자 시작
private String schDetailRegDtTo; // 상세 검색 등록 일자 종료
private String schDetailRgtrOpt; // 상세 검색 등록 사용자 구분
private String schDetailRgtrNm; // 상세 검색 등록 사용자 명
private String schDetailRgtrCd; // 상세 검색 등록 사용자 코드
// 동적 검색 조건 // 동적 검색 조건
private String levyExclSeCd; // 부과제외_부과 제외 구분 코드 private String levyExclSeCd; // 부과제외_부과 제외 구분 코드
private String levyExclSeNm; // 부과제외_부과 제외 구분 명 private String levyExclSeNm; // 부과제외_부과 제외 구분 명
@ -267,59 +262,7 @@ public class LevyExclQuery extends CmmnQuery {
} }
// 상세 검색 조건 /////////////////////////////////////////////////////////////// // 상세 검색 조건 ///////////////////////////////////////////////////////////////
public String getSchDetailRegDtOpt() {
return ifEmpty(schDetailRegDtOpt, () -> null);
}
public <T extends LevyExclQuery> T setSchDetailRegDtOpt(String schDetailRegDtOpt) {
this.schDetailRegDtOpt = schDetailRegDtOpt;
return self();
}
public String getSchDetailRegDtFrom() {
return ifEmpty(schDetailRegDtFrom, () -> null);
}
public <T extends LevyExclQuery> T setSchDetailRegDtFrom(String schDetailRegDtFrom) {
this.schDetailRegDtFrom = schDetailRegDtFrom;
return self();
}
public String getSchDetailRegDtTo() {
return ifEmpty(schDetailRegDtTo, () -> null);
}
public <T extends LevyExclQuery> T setSchDetailRegDtTo(String schDetailRegDtTo) {
this.schDetailRegDtTo = schDetailRegDtTo;
return self();
}
public String getSchDetailRgtrOpt() {
return ifEmpty(schDetailRgtrOpt, () -> null);
}
public <T extends LevyExclQuery> T setSchDetailRgtrOpt(String schDetailRgtrOpt) {
this.schDetailRgtrOpt = schDetailRgtrOpt;
return self();
}
public String getSchDetailRgtrNm() {
return ifEmpty(schDetailRgtrNm, () -> null);
}
public <T extends LevyExclQuery> T setSchDetailRgtrNm(String schDetailRgtrNm) {
this.schDetailRgtrNm = schDetailRgtrNm;
return self();
}
public String getSchDetailRgtrCd() {
return ifEmpty(schDetailRgtrCd, () -> null);
}
public <T extends LevyExclQuery> T setSchDetailRgtr(String schDetailRgtrCd) {
this.schDetailRgtrCd = schDetailRgtrCd;
return self();
}
// 상세 검색 조건 /////////////////////////////////////////////////////////////// // 상세 검색 조건 ///////////////////////////////////////////////////////////////
// 동적 검색 조건 /////////////////////////////////////////////////////////////// // 동적 검색 조건 ///////////////////////////////////////////////////////////////

@ -137,11 +137,10 @@ public class OpnnSbmsnBean extends AbstractComponent {
return rtnMsg; return rtnMsg;
} }
// 의견제출 대장 필수값 입력 // 의견제출 대장을 등록 한다.
opnnSbmsn.setOpnnSbmsnSttsCd("00"); // 의견 제출 상태 코드 00:접수 opnnSbmsn.setOpnnSbmsnSttsCd("00"); // 의견 제출 상태 코드 00:접수
// 의견제출 대장을 등록 한다. rtnScs = opnnSbmsnMapper.insert(opnnSbmsn); // 의견제출 등록
rtnScs = opnnSbmsnMapper.insert(opnnSbmsn);
if (!rtnScs) { if (!rtnScs) {
throw new RuntimeException("의견제출 대장 등록에 실패하였습니다."); // 예외를 발생시켜서 DB Rollback throw new RuntimeException("의견제출 대장 등록에 실패하였습니다."); // 예외를 발생시켜서 DB Rollback
} }

@ -0,0 +1,76 @@
package cokr.xit.fims.sndb;
import cokr.xit.foundation.AbstractEntity;
import lombok.Getter;
import lombok.Setter;
/**
*
* @author JoJH
*/
@Getter
@Setter
public class SndngHstry extends AbstractEntity {
/**
* ID
*/
private String sndngHstryId;
/**
* ID
*/
private String sndngDtlId;
/**
*
*/
private String conKey;
/**
*
*/
private String rgNo;
/**
*
*/
private String dlvrYmd;
/**
*
*/
private String dlvrTm;
/**
*
*/
private String rcpnNm;
/**
*
*/
private String rcpnRelCd;
/**
*
*/
private String rcpnRelNm;
/**
*
*/
private String dlvrRsltCd;
/**
*
*/
private String undlvrRsnCd;
/**
*
*/
private String undlvrRsnNm;
}

@ -0,0 +1,19 @@
package cokr.xit.fims.sndb;
import cokr.xit.foundation.component.QueryRequest;
/**
*
* <p> :
*
* <pre>
* ============ ============
* 2023-12-20 JoJH
* ================================
* </pre>
*/
public class SndngHstryQuery extends QueryRequest {
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,99 @@
package cokr.xit.fims.sndb.dao;
import java.util.List;
import java.util.Map;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
import cokr.xit.foundation.component.AbstractMapper;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.sndb.SndngHstry;
import cokr.xit.fims.sndb.SndngHstryQuery;
/** DAO
*
* <p> :
*
* <pre>
* ============ ============
* 2023-12-20 JoJH
* ================================
* </pre>
*/
@Mapper("sndngHstryMapper")
public interface SndngHstryMapper extends AbstractMapper {
/** .<br />
* @param req
* @return
*/
List<DataObject> selectSndngHstryList(SndngHstryQuery req);
/** .
* @param req
* @return
*/
List<SndngHstry> selectSndngHstrys(SndngHstryQuery req);
/** .
* @param params
* <ul><li>"sndngHstry" - </li>
* <li>"currentUser" - </li>
* </ul>
* @return
*/
int insertSndngHstry(Map<String, Object> params);
/** .
* @param sndngHstry
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
default boolean insert(SndngHstry sndngHstry) {
return sndngHstry != null && insertSndngHstry(params().set("sndngHstry", sndngHstry)) == 1;
}
/** .
* @param params
* <ul><li>"sndngHstry" - </li>
* <li>"currentUser" - </li>
* </ul>
* @return
*/
int updateSndngHstry(Map<String, Object> params);
/** .
* @param sndngHstry
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
default boolean update(SndngHstry sndngHstry) {
return sndngHstry != null && updateSndngHstry(params().set("sndngHstry", sndngHstry)) == 1;
}
/** .
* @param params
* <ul><li>"sndngHstry" - </li>
* <li>"currentUser" - </li>
* </ul>
* @return
*/
int deleteSndngHstry(Map<String, ?> params);
/** .
* @param sndngHstry
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
default boolean delete(SndngHstry sndngHstry) {
return sndngHstry != null && deleteSndngHstry(params().set("sndngHstry", sndngHstry)) == 1;
}
}

@ -0,0 +1,61 @@
package cokr.xit.fims.sndb.service;
import java.util.List;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.sndb.SndngHstry;
import cokr.xit.fims.sndb.SndngHstryQuery;
/** .
*
* <p> :
*
* <pre>
* ============ ============
* 2023-12-20 JoJH
* ================================
* </pre>
*/
public interface SndngHstryService {
/** .
* @param req
* @return
*/
List<DataObject> getSndngHstryList(SndngHstryQuery req);
/** .
* @param req
* @return
*/
List<SndngHstry> getSndngHstrys(SndngHstryQuery req);
/** .
* @param sndngHstry
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean create(SndngHstry sndngHstry);
/** .
* @param sndngHstry
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean update(SndngHstry sndngHstry);
/** .
* @param sndngHstry
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean remove(SndngHstry sndngHstry);
}

@ -0,0 +1,82 @@
package cokr.xit.fims.sndb.service.bean;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import cokr.xit.foundation.AbstractComponent;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.sndb.SndngHstry;
import cokr.xit.fims.sndb.SndngHstryQuery;
import cokr.xit.fims.sndb.dao.SndngHstryMapper;
/** Bean
*
* <p> :
*
* <pre>
* ============ ============
* 2023-12-20 JoJH
* ================================
* </pre>
*/
@Component("sndngHstryBean")
public class SndngHstryBean extends AbstractComponent {
/** 발송 이력 정보 DAO */
@Resource(name = "sndngHstryMapper")
private SndngHstryMapper sndngHstryMapper;
/** .
* @param req
* @return
*/
public List<DataObject> getSndngHstryList(SndngHstryQuery req) {
return sndngHstryMapper.selectSndngHstryList(req);
}
/** .
* @param req
* @return
*/
public List<SndngHstry> getSndngHstrys(SndngHstryQuery req) {
return sndngHstryMapper.selectSndngHstrys(req);
}
/** .
* @param sndngHstry
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
public boolean create(SndngHstry sndngHstry) {
return sndngHstryMapper.insert(sndngHstry);
}
/** .
* @param sndngHstry
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
public boolean update(SndngHstry sndngHstry) {
return sndngHstryMapper.update(sndngHstry);
}
/** .
* @param sndngHstry
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
public boolean remove(SndngHstry sndngHstry) {
return sndngHstryMapper.delete(sndngHstry);
}
}

@ -0,0 +1,56 @@
package cokr.xit.fims.sndb.service.bean;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.sndb.SndngHstry;
import cokr.xit.fims.sndb.SndngHstryQuery;
import cokr.xit.fims.sndb.service.SndngHstryService;
/** .
*
* <p> :
*
* <pre>
* ============ ============
* 2023-12-20 JoJH
* ================================
* </pre>
*/
@Service("sndngHstryService")
public class SndngHstryServiceBean extends AbstractServiceBean implements SndngHstryService {
/** 발송 이력 정보 Bean */
@Resource(name = "sndngHstryBean")
private SndngHstryBean sndngHstryBean;
@Override
public List<DataObject> getSndngHstryList(SndngHstryQuery req) {
return sndngHstryBean.getSndngHstryList(req);
}
@Override
public List<SndngHstry> getSndngHstrys(SndngHstryQuery req) {
return sndngHstryBean.getSndngHstrys(req);
}
@Override
public boolean create(SndngHstry sndngHstry) {
return sndngHstryBean.create(sndngHstry);
}
@Override
public boolean update(SndngHstry sndngHstry) {
return sndngHstryBean.update(sndngHstry);
}
@Override
public boolean remove(SndngHstry sndngHstry) {
return sndngHstryBean.remove(sndngHstry);
}
}

@ -0,0 +1,110 @@
<?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.fims.sndb.dao.SndngHstryMapper">
<!-- 발송 이력 정보 매퍼
========== 변경 이력 ==========
2023-12-20 JoJH 최초 작성
============================ -->
<resultMap id="sndngHstryRow" type="cokr.xit.fims.sndb.SndngHstry"> <!-- 발송 이력 -->
<result property="sndngHstryId" column="SNDNG_HSTRY_ID" /> <!-- 발송 이력 ID -->
<result property="sndngDtlId" column="SNDNG_DTL_ID" /> <!-- 발송 상세 ID -->
<result property="conKey" column="CON_KEY" /> <!-- 외부연계식별키 -->
<result property="rgNo" column="RG_NO" /> <!-- 등기 번호 -->
<result property="dlvrYmd" column="DLVR_YMD" /> <!-- 배달 일자 -->
<result property="dlvrTm" column="DLVR_TM" /> <!-- 배달 시각 -->
<result property="rcpnNm" column="RCPN_NM" /> <!-- 수령인 명 -->
<result property="rcpnRelCd" column="RCPN_REL_CD" /> <!-- 수령인 관계 코드 -->
<result property="rcpnRelNm" column="RCPN_REL_NM" /> <!-- 수령인 관계 명 -->
<result property="dlvrRsltCd" column="DLVR_RSLT_CD" /> <!-- 배달 결과 코드 -->
<result property="undlvrRsnCd" column="UNDLVR_RSN_CD" /> <!-- 미배달 사유 코드 -->
<result property="undlvrRsnNm" column="UNDLVR_RSN_NM" /> <!-- 미배달 사유 명 -->
<result property="createdAt" column="REG_DT" /> <!-- 등록 일시 -->
<result property="createdBy" column="RGTR" /> <!-- 등록자 -->
</resultMap>
<sql id="select">SELECT SNDNG_HSTRY_ID <!-- 발송 이력 ID -->
, SNDNG_DTL_ID <!-- 발송 상세 ID -->
, CON_KEY <!-- 외부연계식별키 -->
, RG_NO <!-- 등기 번호 -->
, DLVR_YMD <!-- 배달 일자 -->
, DLVR_TM <!-- 배달 시각 -->
, RCPN_NM <!-- 수령인 명 -->
, RCPN_REL_CD <!-- 수령인 관계 코드 -->
, RCPN_REL_NM <!-- 수령인 관계 명 -->
, DLVR_RSLT_CD <!-- 배달 결과 코드 -->
, UNDLVR_RSN_CD <!-- 미배달 사유 코드 -->
, UNDLVR_RSN_NM <!-- 미배달 사유 명 -->
, REG_DT <!-- 등록 일시 -->
, RGTR <!-- 등록자 -->
FROM TB_SNDNG_HSTRY</sql>
<select id="selectSndngHstryList" parameterType="map" resultType="dataobject">/* 발송 이력 목록 조회(sndngHstryMapper.selectSndngHstryList) */
<include refid="utility.paging-prefix" />
<include refid="select" />
<where></where>
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" /></select>
<select id="selectSndngHstrys" parameterType="map" resultMap="sndngHstryRow">/* 발송 이력 객체 가져오기(sndngHstryMapper.selectSndngHstrys) */
<include refid="select" />
<where></where>
<include refid="utility.orderBy" /></select>
<insert id="insertSndngHstry" parameterType="map">/* 발송 이력 등록(sndngHstryMapper.insertSndngHstry) */
INSERT INTO TB_SNDNG_HSTRY (
SNDNG_HSTRY_ID <!-- 발송 이력 ID -->
, SNDNG_DTL_ID <!-- 발송 상세 ID -->
, CON_KEY <!-- 외부연계식별키 -->
, RG_NO <!-- 등기 번호 -->
, DLVR_YMD <!-- 배달 일자 -->
, DLVR_TM <!-- 배달 시각 -->
, RCPN_NM <!-- 수령인 명 -->
, RCPN_REL_CD <!-- 수령인 관계 코드 -->
, RCPN_REL_NM <!-- 수령인 관계 명 -->
, DLVR_RSLT_CD <!-- 배달 결과 코드 -->
, UNDLVR_RSN_CD <!-- 미배달 사유 코드 -->
, UNDLVR_RSN_NM <!-- 미배달 사유 명 -->
, REG_DT <!-- 등록 일시 -->
, RGTR <!-- 등록자 -->
) VALUES (
#{sndngHstry.sndngHstryId} <!-- 발송 이력 ID -->
, #{sndngHstry.sndngDtlId} <!-- 발송 상세 ID -->
, #{sndngHstry.conKey} <!-- 외부연계식별키 -->
, #{sndngHstry.rgNo} <!-- 등기 번호 -->
, #{sndngHstry.dlvrYmd} <!-- 배달 일자 -->
, #{sndngHstry.dlvrTm} <!-- 배달 시각 -->
, #{sndngHstry.rcpnNm} <!-- 수령인 명 -->
, #{sndngHstry.rcpnRelCd} <!-- 수령인 관계 코드 -->
, #{sndngHstry.rcpnRelNm} <!-- 수령인 관계 명 -->
, #{sndngHstry.dlvrRsltCd} <!-- 배달 결과 코드 -->
, #{sndngHstry.undlvrRsnCd} <!-- 미배달 사유 코드 -->
, #{sndngHstry.undlvrRsnNm} <!-- 미배달 사유 명 -->
, <include refid="utility.now" /> <!-- 등록 일시 -->
, #{currentUser.id} <!-- 등록자 -->
)</insert>
<update id="updateSndngHstry" parameterType="map">/* 발송 이력 수정(sndngHstryMapper.updateSndngHstry) */
UPDATE TB_SNDNG_HSTRY SET
SNDNG_DTL_ID = #{sndngHstry.sndngDtlId} <!-- 발송 상세 ID -->
, CON_KEY = #{sndngHstry.conKey} <!-- 외부연계식별키 -->
, RG_NO = #{sndngHstry.rgNo} <!-- 등기 번호 -->
, DLVR_YMD = #{sndngHstry.dlvrYmd} <!-- 배달 일자 -->
, DLVR_TM = #{sndngHstry.dlvrTm} <!-- 배달 시각 -->
, RCPN_NM = #{sndngHstry.rcpnNm} <!-- 수령인 명 -->
, RCPN_REL_CD = #{sndngHstry.rcpnRelCd} <!-- 수령인 관계 코드 -->
, RCPN_REL_NM = #{sndngHstry.rcpnRelNm} <!-- 수령인 관계 명 -->
, DLVR_RSLT_CD = #{sndngHstry.dlvrRsltCd} <!-- 배달 결과 코드 -->
, UNDLVR_RSN_CD = #{sndngHstry.undlvrRsnCd} <!-- 미배달 사유 코드 -->
, UNDLVR_RSN_NM = #{sndngHstry.undlvrRsnNm} <!-- 미배달 사유 명 -->
WHERE SNDNG_HSTRY_ID = #{sndngHstry.sndngHstryId}</update>
<update id="deleteSndngHstry" parameterType="map">/* 발송 이력 삭제(sndngHstryMapper.deleteSndngHstry) */
UPDATE TB_SNDNG_HSTRY SET
USE_YN = 'N'
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE SNDNG_HSTRY_ID = #{sndngHstry.sndngHstryId}</update>
</mapper>

@ -149,10 +149,10 @@
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('EXTRI_REGYMD', this.innerText, 'ymd', '');">발송일자</th> <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('EXTRI_REGYMD', this.innerText, 'ymd', '');">발송일자</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('RCEPT_YMD', this.innerText, 'ymd', '');">접수일자</th> <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('RCEPT_YMD', this.innerText, 'ymd', '');">접수일자</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('DIV_KB', this.innerText, 'codeValue', 'EGP002');">취급구분</th> <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('DIV_KB', this.innerText, 'codeValue', 'EGP002');">취급구분</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('RCEPT_CNT', this.innerText, 'match', 'part');">발송건수</th> <th class="cmn" style="width: 100px;" onclick="searchFromGridTitle('RCEPT_CNT', this.innerText, 'match', 'part');">발송건수</th>
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('RCEPT_AMT', this.innerText, 'match', 'part');">결제금액</th> <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('RCEPT_AMT', this.innerText, 'match', 'part');">결제금액</th>
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('USEFEE_AMT', this.innerText, 'match', 'part');">제작수수료</th> <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('USEFEE_AMT', this.innerText, 'match', 'part');">제작수수료</th>
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('TOTPOST_PRC', this.innerText, 'match', 'part');">우편요금</th> <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('TOTPOST_PRC', this.innerText, 'match', 'part');">우편요금</th>
<th class="cmn" style="width: 180px;">등록일시</th> <th class="cmn" style="width: 180px;">등록일시</th>
<th class="cmn" style="width: 140px;">등록사용자</th> <th class="cmn" style="width: 140px;">등록사용자</th>
<th class="cmn dummy-th"></th> <th class="cmn dummy-th"></th>
@ -199,7 +199,7 @@
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr id="theadTr--${pageName}${pageDataName2}"> <tr id="theadTr--${pageName}${pageDataName2}">
<th class="cmn" style="width: 160px;">취급구분</th> <th class="cmn" style="width: 160px;">취급구분</th>
<th class="cmn" style="width: 120px;">발송건수</th> <th class="cmn" style="width: 160px;">발송건수</th>
<th class="cmn" style="width: 200px;">결제금액</th> <th class="cmn" style="width: 200px;">결제금액</th>
<th class="cmn" style="width: 200px;">제작수수료</th> <th class="cmn" style="width: 200px;">제작수수료</th>
<th class="cmn" style="width: 200px;">우편요금</th> <th class="cmn" style="width: 200px;">우편요금</th>

Loading…
Cancel
Save