마이페이지 나의단가 표시 오류 수정
@d6a4d90016a71827cd9b7ef7533a09511cf73e84
--- src/main/java/itn/let/uat/uia/web/EgovMypageController.java
+++ src/main/java/itn/let/uat/uia/web/EgovMypageController.java
... | ... | @@ -257,17 +257,21 @@ |
| 257 | 257 |
int userMoney = (int) mberManageVO.getUserMoney(); |
| 258 | 258 |
String userPoint = mberManageVO.getUserPoint(); |
| 259 | 259 |
|
| 260 |
- if(shortPrice < 1 || longPrice < 1 || picturePrice < 1 || kakaoAtPrice < 1 || faxPrice < 1) {
|
|
| 261 |
- |
|
| 260 |
+ if(shortPrice < 1 || longPrice < 1 || picturePrice < 1) {
|
|
| 262 | 261 |
shortPrice = (float) sysJoinSetVO.getShortPrice(); |
| 263 | 262 |
longPrice = (float) sysJoinSetVO.getLongPrice(); |
| 264 | 263 |
picturePrice = (float) sysJoinSetVO.getPicturePrice(); |
| 265 | 264 |
picture2Price = (float) sysJoinSetVO.getPicture2Price(); |
| 266 | 265 |
picture3Price = (float) sysJoinSetVO.getPicture3Price(); |
| 267 |
- kakaoAtPrice = (float) sysJoinSetVO.getKakaoAtPrice(); |
|
| 268 |
- faxPrice = (float) sysJoinSetVO.getFaxPrice(); |
|
| 269 | 266 |
} |
| 270 | 267 |
|
| 268 |
+ if(kakaoAtPrice < 1) {
|
|
| 269 |
+ kakaoAtPrice = (float) sysJoinSetVO.getKakaoAtPrice(); |
|
| 270 |
+ } |
|
| 271 |
+ |
|
| 272 |
+ if(faxPrice < 1) {
|
|
| 273 |
+ faxPrice = (float) sysJoinSetVO.getFaxPrice(); |
|
| 274 |
+ } |
|
| 271 | 275 |
model.addAttribute("shortPrice", shortPrice);
|
| 272 | 276 |
model.addAttribute("longPrice", longPrice);
|
| 273 | 277 |
model.addAttribute("picturePrice", picturePrice);
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?