B선 전송사 이용고객 이벤트대상 제외처리
@aba49eacb07751b317e45c4e7c2654895340dd5f
--- src/main/java/itn/let/mjo/event/web/MjonEventController.java
+++ src/main/java/itn/let/mjo/event/web/MjonEventController.java
... | ... | @@ -281,31 +281,42 @@ |
| 281 | 281 |
|
| 282 | 282 |
if(resultEvent != null) {//진행중 이벤트 이면 이벤트 게시글 번호 셋팅
|
| 283 | 283 |
|
| 284 |
- //이벤트 회원 정보 조회 |
|
| 285 |
- MjonEventVO mjonEventVO = new MjonEventVO(); |
|
| 286 |
- MjonEventVO eventMberInfo = selectEventMsgMberDefaultInfo(mjonEventVO, resultEvent.getNttId(), bbsId, loginVO.getId(), loginVO.getName()); |
|
| 287 |
- |
|
| 288 |
- int resultCnt = 0; |
|
| 289 |
- |
|
| 290 |
- if(eventMberInfo == null) {//등록된 회원정보가 없으면 정보 입력
|
|
| 291 |
- mjonEventVO.setEventStatus("N");
|
|
| 292 |
- resultCnt = mjonEventService.insertEventMsgMberDefaultInfo(mjonEventVO); |
|
| 293 |
- }else {//등록된 회원정보가 있으면 화면 이동 및 메세지 처리
|
|
| 284 |
+ // Step 0. B선 전송사 이용고객 => 이벤트대상 제외처리 |
|
| 285 |
+ MberManageVO mberManageVO = new MberManageVO(); |
|
| 286 |
+ mberManageVO.setMberId(userId); |
|
| 287 |
+ String blineCode = mberManageService.selectBlineCodeByMberId(mberManageVO); |
|
| 288 |
+ if (blineCode != null && blineCode.equals("N")) {
|
|
| 294 | 289 |
|
| 295 |
- String status = eventMberInfo.getEventStatus(); |
|
| 290 |
+ //이벤트 회원 정보 조회 |
|
| 291 |
+ MjonEventVO mjonEventVO = new MjonEventVO(); |
|
| 292 |
+ MjonEventVO eventMberInfo = selectEventMsgMberDefaultInfo(mjonEventVO, resultEvent.getNttId(), bbsId, loginVO.getId(), loginVO.getName()); |
|
| 296 | 293 |
|
| 297 |
- if(status.equals("Y")) {//이벤트가 진행중인 경우
|
|
| 298 |
- |
|
| 299 |
- redirectAttributes.addFlashAttribute("message", "현재 첫 결제 이벤트를 진행중입니다.");
|
|
| 300 |
- return "redirect:/web/main/mainPage.do"; |
|
| 301 |
- |
|
| 302 |
- }else if(status.equals("E")) {//이벤트가 종료된 경우
|
|
| 303 |
- |
|
| 304 |
- redirectAttributes.addFlashAttribute("message", "현재 첫 결제 이벤트를 완료 하였습니다.");
|
|
| 305 |
- return "redirect:/web/main/mainPage.do"; |
|
| 306 |
- |
|
| 307 |
- } |
|
| 294 |
+ int resultCnt = 0; |
|
| 308 | 295 |
|
| 296 |
+ if(eventMberInfo == null) {//등록된 회원정보가 없으면 정보 입력
|
|
| 297 |
+ mjonEventVO.setEventStatus("N");
|
|
| 298 |
+ resultCnt = mjonEventService.insertEventMsgMberDefaultInfo(mjonEventVO); |
|
| 299 |
+ }else {//등록된 회원정보가 있으면 화면 이동 및 메세지 처리
|
|
| 300 |
+ |
|
| 301 |
+ String status = eventMberInfo.getEventStatus(); |
|
| 302 |
+ |
|
| 303 |
+ if(status.equals("Y")) {//이벤트가 진행중인 경우
|
|
| 304 |
+ |
|
| 305 |
+ redirectAttributes.addFlashAttribute("message", "현재 첫 결제 이벤트를 진행중입니다.");
|
|
| 306 |
+ return "redirect:/web/main/mainPage.do"; |
|
| 307 |
+ |
|
| 308 |
+ }else if(status.equals("E")) {//이벤트가 종료된 경우
|
|
| 309 |
+ |
|
| 310 |
+ redirectAttributes.addFlashAttribute("message", "현재 첫 결제 이벤트를 완료 하였습니다.");
|
|
| 311 |
+ return "redirect:/web/main/mainPage.do"; |
|
| 312 |
+ |
|
| 313 |
+ } |
|
| 314 |
+ |
|
| 315 |
+ } |
|
| 316 |
+ } |
|
| 317 |
+ else {
|
|
| 318 |
+ redirectAttributes.addFlashAttribute("message", "이벤트 대상자가 아닙니다.");
|
|
| 319 |
+ return "redirect:/web/main/mainPage.do"; |
|
| 309 | 320 |
} |
| 310 | 321 |
|
| 311 | 322 |
}else {//이벤트 게시글 정보가 없으면 0으로 셋팅.
|
--- src/main/java/itn/let/mjo/event/web/MjonEventPayV2Controller.java
+++ src/main/java/itn/let/mjo/event/web/MjonEventPayV2Controller.java
... | ... | @@ -103,31 +103,41 @@ |
| 103 | 103 |
|
| 104 | 104 |
if(resultEvent != null) {//진행중 이벤트 이면 이벤트 게시글 번호 셋팅
|
| 105 | 105 |
|
| 106 |
- //이벤트 회원 정보 조회 |
|
| 107 |
- MjonEventVO mjonEventVO = new MjonEventVO(); |
|
| 108 |
- MjonEventVO eventMberInfo = selectEventMsgMberDefaultInfo(mjonEventVO, resultEvent.getNttId(), bbsId, loginVO.getId(), loginVO.getName()); |
|
| 109 |
- |
|
| 110 |
- int resultCnt = 0; |
|
| 111 |
- |
|
| 112 |
- if(eventMberInfo == null) {//등록된 회원정보가 없으면 정보 입력
|
|
| 113 |
- mjonEventVO.setEventStatus("N");
|
|
| 114 |
- resultCnt = mjonEventService.insertEventMsgMberDefaultInfo(mjonEventVO); |
|
| 115 |
- }else {//등록된 회원정보가 있으면 화면 이동 및 메세지 처리
|
|
| 106 |
+ // Step 0. B선 전송사 이용고객 => 이벤트대상 제외처리 |
|
| 107 |
+ MberManageVO mberManageVO = new MberManageVO(); |
|
| 108 |
+ mberManageVO.setMberId(userId); |
|
| 109 |
+ String blineCode = mberManageService.selectBlineCodeByMberId(mberManageVO); |
|
| 110 |
+ if (blineCode != null && blineCode.equals("N")) {
|
|
| 111 |
+ //이벤트 회원 정보 조회 |
|
| 112 |
+ MjonEventVO mjonEventVO = new MjonEventVO(); |
|
| 113 |
+ MjonEventVO eventMberInfo = selectEventMsgMberDefaultInfo(mjonEventVO, resultEvent.getNttId(), bbsId, loginVO.getId(), loginVO.getName()); |
|
| 116 | 114 |
|
| 117 |
- String status = eventMberInfo.getEventStatus(); |
|
| 115 |
+ int resultCnt = 0; |
|
| 118 | 116 |
|
| 119 |
- if(status.equals("Y")) {//이벤트가 진행중인 경우
|
|
| 117 |
+ if(eventMberInfo == null) {//등록된 회원정보가 없으면 정보 입력
|
|
| 118 |
+ mjonEventVO.setEventStatus("N");
|
|
| 119 |
+ resultCnt = mjonEventService.insertEventMsgMberDefaultInfo(mjonEventVO); |
|
| 120 |
+ }else {//등록된 회원정보가 있으면 화면 이동 및 메세지 처리
|
|
| 120 | 121 |
|
| 121 |
- redirectAttributes.addFlashAttribute("message", "현재 첫 결제 이벤트를 진행중입니다.");
|
|
| 122 |
- return "redirect:/web/main/mainPage.do"; |
|
| 122 |
+ String status = eventMberInfo.getEventStatus(); |
|
| 123 | 123 |
|
| 124 |
- }else if(status.equals("E")) {//이벤트가 종료된 경우
|
|
| 124 |
+ if(status.equals("Y")) {//이벤트가 진행중인 경우
|
|
| 125 |
+ |
|
| 126 |
+ redirectAttributes.addFlashAttribute("message", "현재 첫 결제 이벤트를 진행중입니다.");
|
|
| 127 |
+ return "redirect:/web/main/mainPage.do"; |
|
| 128 |
+ |
|
| 129 |
+ }else if(status.equals("E")) {//이벤트가 종료된 경우
|
|
| 130 |
+ |
|
| 131 |
+ redirectAttributes.addFlashAttribute("message", "현재 첫 결제 이벤트를 완료 하였습니다.");
|
|
| 132 |
+ return "redirect:/web/main/mainPage.do"; |
|
| 133 |
+ |
|
| 134 |
+ } |
|
| 125 | 135 |
|
| 126 |
- redirectAttributes.addFlashAttribute("message", "현재 첫 결제 이벤트를 완료 하였습니다.");
|
|
| 127 |
- return "redirect:/web/main/mainPage.do"; |
|
| 128 |
- |
|
| 129 |
- } |
|
| 130 |
- |
|
| 136 |
+ } |
|
| 137 |
+ } |
|
| 138 |
+ else {
|
|
| 139 |
+ redirectAttributes.addFlashAttribute("message", "이벤트 대상자가 아닙니다.");
|
|
| 140 |
+ return "redirect:/web/main/mainPage.do"; |
|
| 131 | 141 |
} |
| 132 | 142 |
|
| 133 | 143 |
}else {//이벤트 게시글 정보가 없으면 0으로 셋팅.
|
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?