기금, 국세, 시세, 구세 관련 메소드 추가

master
mjkhan21 8 months ago
parent 9b9b6c2984
commit 1750e6ed47

@ -14,16 +14,27 @@ import cokr.xit.interfaces.sntris.SntrisWSDTO;
public class Ye22InputDTO extends SntrisWSDTO { public class Ye22InputDTO extends SntrisWSDTO {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 과태료대장 키 */
private String buAk; private String buAk;
/** 부서코드 */
private String buseoCd; private String buseoCd;
/** 물건명 */
private String mulNm; private String mulNm;
/** 납부자 ID */
private String napId; private String napId;
/** 납부자 이름 */
private String napNm; private String napNm;
/** 세목코드 */
private String semokCd; private String semokCd;
/** 시구코드 */
private String siguCd; private String siguCd;
/** 시스템 구분 */
private String systemGubun; private String systemGubun;
/** 과세구분 */
private String taxGubun; private String taxGubun;
/** 과세번호 */
private String taxNo; private String taxNo;
/** 과세년월 */
private String taxYm; private String taxYm;
public Ye22InputDTO() {} public Ye22InputDTO() {}

@ -1156,6 +1156,30 @@ public class Ye22NoticeInfoDTO extends SntrisWSDTO {
getters.put("K뱅크", this::getQAccountNo); getters.put("K뱅크", this::getQAccountNo);
return getters; return getters;
} }
/** .
* @return
*/
public long getGigumAmt() {
return gigum + gigumGasanAmt + gigumIja;
}
/** .
* @return
*/
public long getGukseAmt() {
return gukse + gukseGasanAmt + gukseIja;
}
/** .
* @return
*/
public long getSiseAmt() {
return sise + siseGasanAmt + siseIja;
}
/** .
* @return
*/
public long getGuseAmt() {
return guse + guseGasanAmt + guseIja;
}
/** . /** .
* @return * @return
@ -1171,6 +1195,13 @@ public class Ye22NoticeInfoDTO extends SntrisWSDTO {
return getTaxAmt() + getGasanAmt(); return getTaxAmt() + getGasanAmt();
} }
/** .
* @return
*/
public long getFinalAmt() {
return getTaxAmt() - getGigumAmt() - getGukseAmt() - getSiseAmt() - getGuseAmt();
}
private Object __equalsCalc = null; private Object __equalsCalc = null;
@Override @Override
public synchronized boolean equals(Object obj) { public synchronized boolean equals(Object obj) {

@ -754,7 +754,7 @@ public class Bu18WebPreNoticeDTO extends SntrisWSDTO {
} }
); );
public static org.apache.axis.description.TypeDesc getTypeDesc() { public static TypeDesc getTypeDesc() {
return typeDesc; return typeDesc;
} }

@ -1,5 +1,9 @@
package cokr.xit.interfaces.sntris.prenotice; package cokr.xit.interfaces.sntris.prenotice;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.function.Supplier;
import javax.xml.namespace.QName; import javax.xml.namespace.QName;
import org.apache.axis.description.ElementDesc; import org.apache.axis.description.ElementDesc;
@ -36,6 +40,7 @@ public class Bu18WebReturnInfoDTO extends SntrisWSDTO {
private String SAccountNo; private String SAccountNo;
/** 계좌번호(우리) */ /** 계좌번호(우리) */
private String WAccountNo; private String WAccountNo;
/** 세외수입부과 키 */
private String buAfk; private String buAfk;
/** 전자납부번호 */ /** 전자납부번호 */
private String enapbuNo; private String enapbuNo;
@ -44,6 +49,7 @@ public class Bu18WebReturnInfoDTO extends SntrisWSDTO {
private String etcColmn3; private String etcColmn3;
private String etcColmn4; private String etcColmn4;
private String etcColmn5; private String etcColmn5;
/** 과태료대장 키 */
private String noticeAk; private String noticeAk;
private String returnCode; private String returnCode;
private String returnMsg; private String returnMsg;
@ -390,6 +396,22 @@ public class Bu18WebReturnInfoDTO extends SntrisWSDTO {
this.returnMsg = returnMsg; this.returnMsg = returnMsg;
} }
public Map<String, Supplier<String>> accountGetters() {
LinkedHashMap<String, Supplier<String>> getters = new LinkedHashMap<>();
getters.put("신한", this::getSAccountNo);
getters.put("우리", this::getWAccountNo);
getters.put("하나", this::getHAccountNo);
getters.put("국민", this::getKAccountNo);
getters.put("기업", this::getIAccountNo);
getters.put("우체국", this::getPAccountNo);
getters.put("씨티", this::getCAccountNo);
getters.put("농협", this::getNAccountNo);
getters.put("수협", this::getFAccountNo);
getters.put("카카오", this::getOAccountNo);
getters.put("K뱅크", this::getQAccountNo);
return getters;
}
public boolean isSuccess() { public boolean isSuccess() {
return "0".equals(returnCode); return "0".equals(returnCode);
} }

@ -100,14 +100,6 @@ public class SntrisBean extends AbstractBean {
} }
} }
public List<Ye22NoticeInfoDTO> getPreNoticeList(Ye22InputDTO input) {
try {
return List.of(fileOfferWS.webGwaseInfo007(input));
} catch (Exception e) {
throw runtimeException(e);
}
}
public Map<String, List<Ye22NoticeInfoDTO>> registerPreNotices(Ye22InputDTO input, Map<String, Bu18WebPreNoticeDTO> prenotices) { public Map<String, List<Ye22NoticeInfoDTO>> registerPreNotices(Ye22InputDTO input, Map<String, Bu18WebPreNoticeDTO> prenotices) {
return registerPreNotices(prenotices).entrySet().stream() return registerPreNotices(prenotices).entrySet().stream()
.filter(entry -> entry.getValue().isSuccess()) .filter(entry -> entry.getValue().isSuccess())
@ -120,6 +112,14 @@ public class SntrisBean extends AbstractBean {
)); ));
} }
public List<Ye22NoticeInfoDTO> getPreNoticeList(Ye22InputDTO input) {
try {
return List.of(fileOfferWS.webGwaseInfo007(input));
} catch (Exception e) {
throw runtimeException(e);
}
}
public List<Ye22NoticeInfoDTO> parseNotices(InputStream input) { public List<Ye22NoticeInfoDTO> parseNotices(InputStream input) {
return new Ye22NoticeReader().read(input, null); return new Ye22NoticeReader().read(input, null);
} }

Loading…
Cancel
Save