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());