From d6a4d90016a71827cd9b7ef7533a09511cf73e84 Mon Sep 17 00:00:00 2001 From: itn Date: Thu, 15 Jun 2023 17:20:08 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A7=88=EC=9D=B4=ED=8E=98=EC=9D=B4=EC=A7=80?= =?UTF-8?q?=20=EB=82=98=EC=9D=98=EB=8B=A8=EA=B0=80=20=ED=91=9C=EC=8B=9C=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itn/let/uat/uia/web/EgovMypageController.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/itn/let/uat/uia/web/EgovMypageController.java b/src/main/java/itn/let/uat/uia/web/EgovMypageController.java index b5977305..8e8c3996 100644 --- a/src/main/java/itn/let/uat/uia/web/EgovMypageController.java +++ b/src/main/java/itn/let/uat/uia/web/EgovMypageController.java @@ -257,17 +257,21 @@ public class EgovMypageController { int userMoney = (int) mberManageVO.getUserMoney(); String userPoint = mberManageVO.getUserPoint(); - if(shortPrice < 1 || longPrice < 1 || picturePrice < 1 || kakaoAtPrice < 1 || faxPrice < 1) { - + if(shortPrice < 1 || longPrice < 1 || picturePrice < 1) { shortPrice = (float) sysJoinSetVO.getShortPrice(); longPrice = (float) sysJoinSetVO.getLongPrice(); picturePrice = (float) sysJoinSetVO.getPicturePrice(); picture2Price = (float) sysJoinSetVO.getPicture2Price(); picture3Price = (float) sysJoinSetVO.getPicture3Price(); - kakaoAtPrice = (float) sysJoinSetVO.getKakaoAtPrice(); - faxPrice = (float) sysJoinSetVO.getFaxPrice(); } + if(kakaoAtPrice < 1) { + kakaoAtPrice = (float) sysJoinSetVO.getKakaoAtPrice(); + } + + if(faxPrice < 1) { + faxPrice = (float) sysJoinSetVO.getFaxPrice(); + } model.addAttribute("shortPrice", shortPrice); model.addAttribute("longPrice", longPrice); model.addAttribute("picturePrice", picturePrice);