구제시 설정에 따른 단속자료압축파일 생성 처리 수정

main
이범준 10 months ago
parent 20406ce881
commit 6810e55492

@ -131,9 +131,12 @@ public class AttachedTxtMaker extends LinkFileMaker {
crdnSpareaCd = "03"; crdnSpareaCd = "03";
} }
B01[8] = crdnSpareaCd; B01[8] = crdnSpareaCd;
String gujesi = "1";
//TODO : 구제시 if(this.gujesiStng != null && !this.gujesiStng.equals("")) {
B01[9] = gujesi; B01[9] = gujesiStng;
} else {
B01[9] = "1";
}
if(crdnInfo.string("STDG_CD").equals("")) { if(crdnInfo.string("STDG_CD").equals("")) {
B01[10] = "0000000000"; B01[10] = "0000000000";
@ -180,9 +183,11 @@ public class AttachedTxtMaker extends LinkFileMaker {
} }
C01[6] = crdnPlc; C01[6] = crdnPlc;
String gujesi = "1"; if(this.gujesiStng != null && !this.gujesiStng.equals("")) {
//TODO : 구제시 C01[7] = gujesiStng;
C01[7] = gujesi; } else {
C01[7] = "1";
}
if(crdnInfo.string("STDG_CD").equals("")) { if(crdnInfo.string("STDG_CD").equals("")) {
C01[8] = "0000000000"; C01[8] = "0000000000";

@ -7,6 +7,11 @@ public abstract class LinkFileMaker {
protected String ifId; protected String ifId;
protected String zipFileName; protected String zipFileName;
protected int maxImageFileCnt; protected int maxImageFileCnt;
protected String gujesiStng;
public void setGujesiStng(String gujesi) {
this.gujesiStng = gujesi;
}
public int getMaxImageFileCnt() { public int getMaxImageFileCnt() {
return this.maxImageFileCnt; return this.maxImageFileCnt;

@ -62,9 +62,12 @@ public class OnlyImageMaker extends LinkFileMaker {
crdnSpareaCd = "03"; crdnSpareaCd = "03";
} }
B01[6] = crdnSpareaCd; B01[6] = crdnSpareaCd;
String gujesi = "1";
//TODO : 구제시 if(this.gujesiStng != null && !this.gujesiStng.equals("")) {
B01[7] = gujesi; B01[7] = gujesiStng;
} else {
B01[7] = "1";
}
if(crdnInfo.string("STDG_CD").equals("")) { if(crdnInfo.string("STDG_CD").equals("")) {
B01[8] = "0000000000"; B01[8] = "0000000000";
@ -108,9 +111,11 @@ public class OnlyImageMaker extends LinkFileMaker {
} }
C01[5] = crdnPlc; C01[5] = crdnPlc;
String gujesi = "1"; if(this.gujesiStng != null && !this.gujesiStng.equals("")) {
//TODO : 구제시 C01[6] = gujesiStng;
C01[6] = crdnInfo.string(gujesi); } else {
C01[6] = "1";
}
if(crdnInfo.string("STDG_CD").equals("")) { if(crdnInfo.string("STDG_CD").equals("")) {
C01[7] = "0000000000"; C01[7] = "0000000000";

@ -21,6 +21,7 @@ import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.fims.cmmn.CmmnUtil;
import cokr.xit.fims.cmmn.service.bean.CrdnPayerHstryBean; import cokr.xit.fims.cmmn.service.bean.CrdnPayerHstryBean;
import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean; import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean;
import cokr.xit.fims.cmmn.service.bean.StngBean;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.CrdnInfoMapper; import cokr.xit.fims.crdn.dao.CrdnInfoMapper;
@ -76,6 +77,9 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
@Resource(name="codeBean") @Resource(name="codeBean")
private CodeBean codeBean; private CodeBean codeBean;
@Resource(name="stngBean")
private StngBean stngBean;
@Resource(name="mediaBean") @Resource(name="mediaBean")
private MediaBean mediaBean; private MediaBean mediaBean;
@ -367,6 +371,9 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
List<CommonCode> fimsVltnCodes = codeBean.getCodes("FIM004"); List<CommonCode> fimsVltnCodes = codeBean.getCodes("FIM004");
List<CommonCode> nxrpVltnCodes = codeBean.getCodes("NTR055"); List<CommonCode> nxrpVltnCodes = codeBean.getCodes("NTR055");
DataObject deptStng = stngBean.getStng("dept");
String gujesi = deptStng.string("NXRP_RGN_SE_CD");
for(String crdnID : crdnIDs) { for(String crdnID : crdnIDs) {
DataObject crdnInfo = crdnInfoMapper.selectCrdnInfo(crdnID); DataObject crdnInfo = crdnInfoMapper.selectCrdnInfo(crdnID);
@ -444,6 +451,10 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
linkFileMaker = new OnlyImageMaker(nxrpLinkSeCd, instDigit7); linkFileMaker = new OnlyImageMaker(nxrpLinkSeCd, instDigit7);
} }
if(!gujesi.equals("")) {
linkFileMaker.setGujesiStng(gujesi);
}
String workPath = "files/temp/"+crdnInfo.string("SGG_CD")+"/"+crdnInfo.string("CRDN_ID"); String workPath = "files/temp/"+crdnInfo.string("SGG_CD")+"/"+crdnInfo.string("CRDN_ID");
File workFolder = new File(workPath); File workFolder = new File(workPath);
if(workFolder.exists()) { if(workFolder.exists()) {

@ -27,8 +27,9 @@ SELECT DEPT_CD
, DEPT_FXNO <!-- 부서 팩스번호 --> , DEPT_FXNO <!-- 부서 팩스번호 -->
, DTBN_BANK_NM <!-- 교부 은행 명 --> , DTBN_BANK_NM <!-- 교부 은행 명 -->
, DTBN_ACTNO <!-- 교부 계좌번호 --> , DTBN_ACTNO <!-- 교부 계좌번호 -->
, NXRP_LINK_YN <!-- 세외수입 연계 여부 -->
, CVLCPT_LINK_SE_CD <!-- 민원 연계 구분 코드 --> , CVLCPT_LINK_SE_CD <!-- 민원 연계 구분 코드 -->
, NXRP_LINK_YN <!-- 세외수입 연계 여부 -->
, NXRP_RGN_SE_CD <!-- 세외수입 지역 구분 코드 -->
FROM TB_DEPT FROM TB_DEPT
WHERE DEPT_CD = #{deptCd} WHERE DEPT_CD = #{deptCd}
</select> </select>

Loading…
Cancel
Save