From 62a93189cc4c6d7e88acec107184a8882c0af2e0 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Fri, 4 Apr 2025 13:33:19 +0900 Subject: [PATCH] =?UTF-8?q?Long.parseLong(..)=20->=20toLong(..)=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sntris/fileoffer/Ye22NoticeReader.java | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/src/main/java/cokr/xit/interfaces/sntris/fileoffer/Ye22NoticeReader.java b/src/main/java/cokr/xit/interfaces/sntris/fileoffer/Ye22NoticeReader.java index 4a48343..a3bb160 100644 --- a/src/main/java/cokr/xit/interfaces/sntris/fileoffer/Ye22NoticeReader.java +++ b/src/main/java/cokr/xit/interfaces/sntris/fileoffer/Ye22NoticeReader.java @@ -39,7 +39,6 @@ public class Ye22NoticeReader extends AbstractComponent { private Ye22NoticeInfoDTO read(String[] strs) { Ye22NoticeInfoDTO notice = null; - log().debug("{} strs", strs.length); for (int i = 0; i < strs.length; ++i) { String str = strs[i]; str = str != null ? str.trim() : ""; @@ -112,21 +111,21 @@ public class Ye22NoticeReader extends AbstractComponent { new Field("과세대상", null), new Field("총과세금액", null), new Field("과세금액", null), - new Field("체납금액", (notice, str) -> notice.setCheAmt(Long.parseLong(ifEmpty(str, "0")))), + new Field("체납금액", (notice, str) -> notice.setCheAmt(toLong(str))), new Field("이자총금액", null), - new Field("부가가치세", (notice, str) -> notice.setVatAmt(Long.parseLong(ifEmpty(str, "0")))), - new Field("본세", (notice, str) -> notice.setTaxAmt(Long.parseLong(ifEmpty(str, "0")))), - new Field("구세", (notice, str) -> notice.setGuse(Long.parseLong(ifEmpty(str, "0")))), - new Field("국세", (notice, str) -> notice.setGukse(Long.parseLong(ifEmpty(str, "0")))), - new Field("기금", (notice, str) -> notice.setGigum(Long.parseLong(ifEmpty(str, "0")))), + new Field("부가가치세", (notice, str) -> notice.setVatAmt(toLong(str))), + new Field("본세", (notice, str) -> notice.setTaxAmt(toLong(str))), + new Field("구세", (notice, str) -> notice.setGuse(toLong(str))), + new Field("국세", (notice, str) -> notice.setGukse(toLong(str))), + new Field("기금", (notice, str) -> notice.setGigum(toLong(str))), new Field("본세이자", null), - new Field("구세이자", (notice, str) -> notice.setGuseIja(Long.parseLong(ifEmpty(str, "0")))), - new Field("국세이자", (notice, str) -> notice.setGukseIja(Long.parseLong(ifEmpty(str, "0")))), - new Field("기금이자", (notice, str) -> notice.setGigumIja(Long.parseLong(ifEmpty(str, "0")))), - new Field("본세가산금", (notice, str) -> notice.setGuseIja(Long.parseLong(ifEmpty(str, "0")))), - new Field("구세가산금", (notice, str) -> notice.setGuseGasanAmt(Long.parseLong(ifEmpty(str, "0")))), - new Field("국세가산금", (notice, str) -> notice.setGukseGasanAmt(Long.parseLong(ifEmpty(str, "0")))), - new Field("기금가산금", (notice, str) -> notice.setGigumGasanAmt(Long.parseLong(ifEmpty(str, "0")))), + new Field("구세이자", (notice, str) -> notice.setGuseIja(toLong(str))), + new Field("국세이자", (notice, str) -> notice.setGukseIja(toLong(str))), + new Field("기금이자", (notice, str) -> notice.setGigumIja(toLong(str))), + new Field("본세가산금", (notice, str) -> notice.setGuseIja(toLong(str))), + new Field("구세가산금", (notice, str) -> notice.setGuseGasanAmt(toLong(str))), + new Field("국세가산금", (notice, str) -> notice.setGukseGasanAmt(toLong(str))), + new Field("기금가산금", (notice, str) -> notice.setGigumGasanAmt(toLong(str))), new Field("가산금총금액", null), new Field("최초본세", null), new Field("감액구분", null),