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