From 15ef9042ebaa98a9ed2adccf01884c233a7bf83d Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Mon, 22 Jan 2024 14:42:38 +0900 Subject: [PATCH] =?UTF-8?q?getPayer(BasicInfoResponse.BasicInfo)=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fims/payer/service/bean/PayerBean.java | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/main/java/cokr/xit/fims/payer/service/bean/PayerBean.java b/src/main/java/cokr/xit/fims/payer/service/bean/PayerBean.java index 1b8b55c7..bc50c640 100644 --- a/src/main/java/cokr/xit/fims/payer/service/bean/PayerBean.java +++ b/src/main/java/cokr/xit/fims/payer/service/bean/PayerBean.java @@ -132,20 +132,16 @@ public class PayerBean extends AbstractComponent { String vhrno = basicInfo.getVhrno(); payer.setVhrno(vhrno); payer.setRtpyrInptSeCd("02"); - switch (basicInfo.getMber_se_code()) { - case "11" : payer.setRtpyrSeCd("01"); - break; - case "12" : payer.setRtpyrSeCd("02"); - break; - case "13" : payer.setRtpyrSeCd("03"); - break; - case "14" : payer.setRtpyrSeCd("04"); - break; - case "15" : payer.setRtpyrSeCd("05"); - break; - default : payer.setRtpyrSeCd("05"); - break; - } + + payer.setRtpyrSeCd( + Map.of( + "11", "01", + "12", "02", + "13", "03", + "14", "04", + "15", "05" + ).getOrDefault(basicInfo.getMber_se_code(), "05") + ); String rtpyrNo = basicInfo.getMber_se_no(); payer.setRtpyrNo(rtpyrNo); payer.setRtpyrNm(basicInfo.getMber_nm());