Long.parseLong(..) -> toLong(..) 변경

master
mjkhan21 8 months ago
parent 6aa1a610dd
commit 62a93189cc

@ -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),

Loading…
Cancel
Save