From 4ddc073ab8ce8bd93c7a54d66c05f8b85d7a89c8 Mon Sep 17 00:00:00 2001 From: JoJH Date: Fri, 1 Nov 2024 18:01:17 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=ED=83=80=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/payer/web/PayerController.java | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/main/java/cokr/xit/fims/payer/web/PayerController.java b/src/main/java/cokr/xit/fims/payer/web/PayerController.java index c39c3d41..56e74ca7 100644 --- a/src/main/java/cokr/xit/fims/payer/web/PayerController.java +++ b/src/main/java/cokr/xit/fims/payer/web/PayerController.java @@ -157,22 +157,19 @@ public class PayerController extends ApplicationController { boolean json = jsonResponse(); ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/payer/payer01020-info"); - DataObject info = payerService.getPayerInfo(req); - mav.addObject("Info", json ? info : toJson(info)); + DataObject payerInfo = payerService.getPayerInfo(req); - if (!json) { - // View(jsp)에서 사용할 공통코드를 조회 - Map> commonCodes = getCodesOf("FIM011", "FIM014", "FIM054"); + // View(jsp)에서 사용할 공통코드를 조회 + Map> commonCodes = getCodesOf("FIM011", "FIM014", "FIM054"); - mav.addObject("pageName", "payer01020") // jsp pageName + return mav + .addObject("pageName", "payer01020") // jsp pageName + .addObject("Info", json ? payerInfo : toJson(payerInfo)) .addObject("FIM011List", commonCodes.get("FIM011")) // 납부자 구분 코드(RTPYR_SE_CD) .addObject("FIM014List", commonCodes.get("FIM014")) // 납부자 상태 코드(RTPYR_STTS_CD) .addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD) - ; - } - - return mav; - } + ; + } /**납부자 대장를 등록한다. * @param Payer 납부자 대장 정보