차세대 세외수입 연계 수정.

main
jjh 9 months ago
parent c110c779e0
commit 4e7c8516c1

@ -11,6 +11,7 @@ import lombok.Setter;
@Getter @Getter
@Setter @Setter
public class NisIndivA01 extends AbstractEntity { public class NisIndivA01 extends AbstractEntity {
/** /**
* ID * ID
*/ */

@ -16,4 +16,86 @@ public class NisIndivQuery extends QueryRequest {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
// ID
private String[] crdnIds; // 단속 IDs
private String crdnId; // 단속 ID
private String[] levyIds; // 부과 IDs
private String levyId; // 부과 ID
private String[] sndngIds; // 발송 IDs
private String sndngId; // 발송 ID
private String[] sndngDtlIds; // 발송 상세 IDs
private String sndngDtlId; // 발송 상세 ID
public String[] getCrdnIds() {
return ifEmpty(crdnIds, () -> null);
}
public <T extends NisIndivQuery> T setCrdnIds(String... crdnIds) {
this.crdnIds = crdnIds;
return self();
}
public String getCrdnId() {
return ifEmpty(crdnId, () -> null);
}
public <T extends NisIndivQuery> T setCrdnId(String crdnId) {
this.crdnId = crdnId;
return self();
}
public String[] getLevyIds() {
return ifEmpty(levyIds, () -> null);
}
public <T extends NisIndivQuery> T setLevyIds(String... levyIds) {
this.levyIds = levyIds;
return self();
}
public String getLevyId() {
return ifEmpty(levyId, () -> null);
}
public <T extends NisIndivQuery> T setLevyId(String levyId) {
this.levyId = levyId;
return self();
}
public String[] getSndngIds() {
return ifEmpty(sndngIds, () -> null);
}
public <T extends NisIndivQuery> T setSndngIds(String... sndngIds) {
this.sndngIds = sndngIds;
return self();
}
public String getSndngId() {
return ifEmpty(sndngId, () -> null);
}
public <T extends NisIndivQuery> T setSndngId(String sndngId) {
this.sndngId = sndngId;
return self();
}
public String[] getSndngDtlIds() {
return ifEmpty(sndngDtlIds, () -> null);
}
public <T extends NxrpMtchgQuery> T setSndngDtlIds(String... sndngDtlIds) {
this.sndngDtlIds = sndngDtlIds;
return self();
}
public String getSndngDtlId() {
return ifEmpty(sndngDtlId, () -> null);
}
public <T extends NisIndivQuery> T setSndngDtlId(String sndngDtlId) {
this.sndngDtlId = sndngDtlId;
return self();
}
} }

@ -23,6 +23,7 @@ import cokr.xit.fims.nxrp.NisIndivQuery;
*/ */
@Mapper("nisIndivA01Mapper") @Mapper("nisIndivA01Mapper")
public interface NisIndivA01Mapper extends AbstractMapper { public interface NisIndivA01Mapper extends AbstractMapper {
/** .<br /> /** .<br />
* @param req * @param req
* @return * @return

@ -4,8 +4,6 @@ import java.util.List;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.nxrp.NisIndivA02;
import cokr.xit.fims.nxrp.NisIndivA03;
import cokr.xit.fims.nxrp.NisIndivQuery; import cokr.xit.fims.nxrp.NisIndivQuery;
/** . /** .

@ -16,6 +16,7 @@ import cokr.xit.fims.nxrp.NisIndivQuery;
import cokr.xit.fims.nxrp.dao.NisIndivA01Mapper; import cokr.xit.fims.nxrp.dao.NisIndivA01Mapper;
import cokr.xit.fims.nxrp.dao.NisIndivA02Mapper; import cokr.xit.fims.nxrp.dao.NisIndivA02Mapper;
import cokr.xit.fims.nxrp.dao.NisIndivA03Mapper; import cokr.xit.fims.nxrp.dao.NisIndivA03Mapper;
import cokr.xit.fims.sndb.dao.SndngDtlMapper;
/** Bean /** Bean
* *
@ -42,6 +43,10 @@ public class NisIndivBean extends AbstractComponent {
@Resource(name = "nisIndivA03Mapper") @Resource(name = "nisIndivA03Mapper")
private NisIndivA03Mapper nisIndivA03Mapper; private NisIndivA03Mapper nisIndivA03Mapper;
/** 발송 대장 정보 DAO */
@Resource(name = "sndngDtlMapper")
private SndngDtlMapper sndngDtlMapper;
/** . /** .
* @param req * @param req
* @return * @return
@ -70,6 +75,15 @@ public class NisIndivBean extends AbstractComponent {
boolean rtnScs = false; // DB 처리 결과 boolean rtnScs = false; // DB 처리 결과
String rtnMsg = "[F] "; // 처리 결과 메시지 String rtnMsg = "[F] "; // 처리 결과 메시지
// 검색 조건 확인
if (req.getSndngId() != null) {
// 발송상세 대상를 조회
// List<DataObject> sndngDtlIds = sndngDtlMapper.selectSndngTrgtDtlIds();
}
// 단속 자료 조회
NisIndivA01 nisIndivA01 = new NisIndivA01(); NisIndivA01 nisIndivA01 = new NisIndivA01();
rtnScs = nisIndivA01Mapper.insert(nisIndivA01); rtnScs = nisIndivA01Mapper.insert(nisIndivA01);

@ -9,8 +9,6 @@ import org.springframework.stereotype.Service;
import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.nxrp.NisIndivA02;
import cokr.xit.fims.nxrp.NisIndivA03;
import cokr.xit.fims.nxrp.NisIndivQuery; import cokr.xit.fims.nxrp.NisIndivQuery;
import cokr.xit.fims.nxrp.service.NisIndivService; import cokr.xit.fims.nxrp.service.NisIndivService;

@ -11,6 +11,7 @@ import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.nxrp.dao.NxrpMtchgMapper; import cokr.xit.fims.nxrp.dao.NxrpMtchgMapper;
import cokr.xit.fims.nxrp.NxrpMtchg; import cokr.xit.fims.nxrp.NxrpMtchg;
import cokr.xit.fims.nxrp.NxrpMtchgQuery; import cokr.xit.fims.nxrp.NxrpMtchgQuery;
import cokr.xit.fims.sndb.SndbQuery;
import cokr.xit.fims.sndb.SndngDtl; import cokr.xit.fims.sndb.SndngDtl;
import cokr.xit.fims.sndb.dao.SndngDtlMapper; import cokr.xit.fims.sndb.dao.SndngDtlMapper;
import cokr.xit.fims.sndb.dao.SndngMapper; import cokr.xit.fims.sndb.dao.SndngMapper;
@ -89,7 +90,11 @@ public class NxrpMtchgBean extends AbstractComponent {
// 세외수입 연계관련 정보 확인 // 세외수입 연계관련 정보 확인
// 발송상세 대상를 조회 // 발송상세 대상를 조회
List<DataObject> sndngDtlIds = sndngDtlMapper.selectSndngTrgtDtlIds(req.getSndngId()); SndbQuery sndbQuery = new SndbQuery();
sndbQuery.setSndngId(req.getSndngId());
sndbQuery.setDelYN("N");
List<DataObject> sndngDtlIds = sndngDtlMapper.selectSndngTrgtDtlIds(sndbQuery);
// 발송상세 대상 자료로 세외수입 매핑 내역 등록한다. // 발송상세 대상 자료로 세외수입 매핑 내역 등록한다.
for (int iLoop = 0; iLoop < sndngDtlIds.size(); iLoop++) { for (int iLoop = 0; iLoop < sndngDtlIds.size(); iLoop++) {

@ -54,13 +54,7 @@ public interface SndngDtlMapper extends AbstractMapper {
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectSndngTrgtDtlIds(String sndngId); List<DataObject> selectSndngTrgtDtlIds(SndbQuery req);
/** ID ID .
* @param req
* @return
*/
List<DataObject> selectSndngTrgtCrdnIds(String sndngId);
/** /**
* @param req * @param req

@ -36,13 +36,7 @@ public interface SndngDtlService {
* @param req * @param req
* @return * @return
*/ */
List<DataObject> getSndngTrgtDtlIds(String sndngId); List<DataObject> getSndngTrgtDtlIds(SndbQuery req);
/** ID ID .
* @param req
* @return
*/
List<DataObject> getSndngTrgtCrdnIds(String sndngId);
/** . /** .
* @param sndngDtl * @param sndngDtl

@ -1043,7 +1043,11 @@ public class SndngBean extends AbstractComponent {
recevSubj3 = deptSggInfo.string("SGG_NM"); recevSubj3 = deptSggInfo.string("SGG_NM");
// 9. 전자우편 접수 상세 조회 // 9. 전자우편 접수 상세 조회
List<DataObject> sndngTrgts = sndngDtlMapper.selectSndngTrgtDtlIds(sndng.getSndngId()); SndbQuery sndbQuery = new SndbQuery();
sndbQuery.setSndngId(sndng.getSndngId());
sndbQuery.setDelYN("N");
List<DataObject> sndngTrgts = sndngDtlMapper.selectSndngTrgtDtlIds(sndbQuery);
for (int iLoop = 0; iLoop < sndngTrgts.size(); iLoop++) { for (int iLoop = 0; iLoop < sndngTrgts.size(); iLoop++) {
// 전자우편 접수 상세 // 전자우편 접수 상세

@ -83,16 +83,8 @@ public class SndngDtlBean extends AbstractComponent {
* @param req * @param req
* @return * @return
*/ */
public List<DataObject> getSndngTrgtDtlIds(String sndngId) { public List<DataObject> getSndngTrgtDtlIds(SndbQuery req) {
return sndngDtlMapper.selectSndngTrgtDtlIds(sndngId); return sndngDtlMapper.selectSndngTrgtDtlIds(req);
}
/** ID ID .
* @param req
* @return
*/
public List<DataObject> getSndngTrgtCrdnIds(String sndngId) {
return sndngDtlMapper.selectSndngTrgtCrdnIds(sndngId);
} }
/** . /** .
@ -173,7 +165,7 @@ public class SndngDtlBean extends AbstractComponent {
boolean rtnScs = false; // DB 처리 결과 boolean rtnScs = false; // DB 처리 결과
String rtnMsg = "[F] "; // 처리 결과 메시지 String rtnMsg = "[F] "; // 처리 결과 메시지
List<DataObject> sndngDtlList = sndngDtlMapper.selectSndngTrgtDtlIds(req.getSndngId()); List<DataObject> sndngDtlList = sndngDtlMapper.selectSndngTrgtDtlIds(req);
// 조회 건수 확인 // 조회 건수 확인
if (sndngDtlList == null || sndngDtlList.size() < 1) { if (sndngDtlList == null || sndngDtlList.size() < 1) {

@ -46,13 +46,8 @@ public class SndngDtlServiceBean extends AbstractServiceBean implements SndngDtl
} }
@Override @Override
public List<DataObject> getSndngTrgtDtlIds(String sndngId) { public List<DataObject> getSndngTrgtDtlIds(SndbQuery req) {
return sndngDtlBean.getSndngTrgtDtlIds(sndngId); return sndngDtlBean.getSndngTrgtDtlIds(req);
}
@Override
public List<DataObject> getSndngTrgtCrdnIds(String sndngId) {
return sndngDtlBean.getSndngTrgtCrdnIds(sndngId);
} }
@Override @Override

@ -1598,10 +1598,11 @@ public class Sndb01Controller extends ApplicationController {
/** PDF . /** PDF .
* @return PDF * @return PDF
*/ */
public ModelAndView makeAdvntcePdf(PrintOption printOption, String sndngId) { public ModelAndView makeAdvntcePdf(PrintOption printOption, SndbQuery req) {
//
ModelAndView mav = new ModelAndView("downloadView"); ModelAndView mav = new ModelAndView("downloadView");
List<DataObject> list = sndngDtlService.getSndngTrgtCrdnIds(sndngId); List<DataObject> list = sndngDtlService.getSndngTrgtDtlIds(req);
String[] crdnIds = new String[list.size()]; String[] crdnIds = new String[list.size()];
@ -1619,10 +1620,10 @@ public class Sndb01Controller extends ApplicationController {
/** txt, . /** txt, .
* @return * @return
*/ */
public ModelAndView makeAdvntceOutsourcing(PrintOption printOption, String sndngId) { public ModelAndView makeAdvntceOutsourcing(PrintOption printOption, SndbQuery req) {
ModelAndView mav = new ModelAndView("downloadView"); ModelAndView mav = new ModelAndView("downloadView");
List<DataObject> list = sndngDtlService.getSndngTrgtCrdnIds(sndngId); List<DataObject> list = sndngDtlService.getSndngTrgtDtlIds(req);
String[] crdnIds = new String[list.size()]; String[] crdnIds = new String[list.size()];

@ -646,14 +646,14 @@ public class DpvController {
@Override @Override
@RequestMapping(name="사전통지발송 현황 사전통지서 pdf 파일 생성", value=METHOD_URL.makeAdvntcePdf) @RequestMapping(name="사전통지발송 현황 사전통지서 pdf 파일 생성", value=METHOD_URL.makeAdvntcePdf)
public ModelAndView makeAdvntcePdf(PrintOption printOption, String sndngId) { public ModelAndView makeAdvntcePdf(PrintOption printOption, SndbQuery req) {
return super.makeAdvntcePdf(printOption, sndngId); return super.makeAdvntcePdf(printOption, req);
} }
@Override @Override
@RequestMapping(name="사전통지발송 현황 사전통지서 외주 파일 생성", value=METHOD_URL.makeAdvntceOutsourcing) @RequestMapping(name="사전통지발송 현황 사전통지서 외주 파일 생성", value=METHOD_URL.makeAdvntceOutsourcing)
public ModelAndView makeAdvntceOutsourcing(PrintOption printOption, String sndngId) { public ModelAndView makeAdvntceOutsourcing(PrintOption printOption, SndbQuery req) {
return super.makeAdvntceOutsourcing(printOption, sndngId); return super.makeAdvntceOutsourcing(printOption, req);
} }
@Override @Override

@ -276,19 +276,25 @@
<include refid="utility.orderBy" /> <include refid="utility.orderBy" />
</select> </select>
<select id="selectSndngTrgtDtlIds" parameterType="String" resultType="dataobject">/* 발송 ID로 발송상세 ID를 가져오기(sndngDtlMapper.selectSndngTrgtDtlIds) */ <select id="selectSndngTrgtDtlIds" parameterType="map" resultType="dataobject">/* 발송 ID로 발송상세 ID를 가져오기(sndngDtlMapper.selectSndngTrgtDtlIds) */
SELECT SNDNG_DTL_ID <!-- 발송 상세 ID --> SELECT SNDNG_DTL_ID <!-- 발송 상세 ID -->
FROM TB_SNDNG_DTL , CRDN_ID <!-- 단속 ID -->
WHERE SNDNG_ID = #{sndngId} <!-- 발송 ID --> , SNDNG_DTL_STTS_CD <!-- 발송 상세 상태 코드 -->
AND DEL_YN = 'N'
ORDER BY SNDNG_DTL_ID
</select>
<select id="selectSndngTrgtCrdnIds" parameterType="String" resultType="dataobject">/* 발송 ID로 단속 ID를 가져오기(sndngDtlMapper.selectSndngTrgtCrdnIds) */
SELECT CRDN_ID <!-- 단속 ID -->
FROM TB_SNDNG_DTL FROM TB_SNDNG_DTL
WHERE SNDNG_ID = #{sndngId} <!-- 발송 ID --> <choose>
AND DEL_YN = 'N' <when test="sndngDtlIds != null">
WHERE SNDNG_DTL_ID IN ( <!-- 발송 상세 Ids -->
<foreach collection="sndngDtlIds" item="sndngDtlId" separator=","> #{sndngDtlId} </foreach>
)
</when>
<otherwise>
WHERE SNDNG_ID = #{sndngId} <!-- 발송 ID -->
</otherwise>
</choose>
<if test="sndngDtlSttsCd != null">
AND SNDNG_DTL_STTS_CD = #{sndngDtlSttsCd} <!-- 발송 상세 상태 코드 -->
</if>
AND DEL_YN = 'N' <!-- 삭제 여부 -->
ORDER BY SNDNG_DTL_ID ORDER BY SNDNG_DTL_ID
</select> </select>

Loading…
Cancel
Save