그룹데이터 이벤트여부 값 수정
@a2a8fc580f6b85daec1911c4b0aef626d1dd410c
--- src/main/java/itn/let/mjo/msgdata/service/impl/MjonMsgDataServiceImpl.java
+++ src/main/java/itn/let/mjo/msgdata/service/impl/MjonMsgDataServiceImpl.java
... | ... | @@ -4203,6 +4203,29 @@ |
| 4203 | 4203 |
// 개별단가 |
| 4204 | 4204 |
mjonMsgVO.setEachPrice(mjonMsgSendVO.getEachPrice()); |
| 4205 | 4205 |
|
| 4206 |
+ //이벤트 회원인 경우 이벤트 캐시도 함께 차감. |
|
| 4207 |
+ MjonEventVO mjonEventVO = new MjonEventVO(); |
|
| 4208 |
+ mjonEventVO.setMberId(mjonMsgSendVO.getUserId()); |
|
| 4209 |
+ mjonEventVO.setEventStatus("Y");
|
|
| 4210 |
+ MjonEventVO eventMberInfo = mjonEventService.selectEventMsgMberDefaultInfo(mjonEventVO); |
|
| 4211 |
+ |
|
| 4212 |
+ if(eventMberInfo != null) {
|
|
| 4213 |
+ if(mjonMsgSendVO.getEachPrice().equals(eventMberInfo.getEventShortPrice())) {
|
|
| 4214 |
+ mjonMsgVO.setEventYn("Y");
|
|
| 4215 |
+ }else if(mjonMsgSendVO.getEachPrice().equals(eventMberInfo.getEventLongPrice())) {
|
|
| 4216 |
+ mjonMsgVO.setEventYn("Y");
|
|
| 4217 |
+ }else if(mjonMsgSendVO.getEachPrice().equals(eventMberInfo.getEventPicturePrice())) {
|
|
| 4218 |
+ mjonMsgVO.setEventYn("Y");
|
|
| 4219 |
+ }else if(mjonMsgSendVO.getEachPrice().equals(eventMberInfo.getEventPicture2Price())) {
|
|
| 4220 |
+ mjonMsgVO.setEventYn("Y");
|
|
| 4221 |
+ }else if(mjonMsgSendVO.getEachPrice().equals(eventMberInfo.getEventPicture3Price())) {
|
|
| 4222 |
+ mjonMsgVO.setEventYn("Y");
|
|
| 4223 |
+ }else {
|
|
| 4224 |
+ mjonMsgVO.setEventYn("N");
|
|
| 4225 |
+ } |
|
| 4226 |
+ } |
|
| 4227 |
+ |
|
| 4228 |
+ |
|
| 4206 | 4229 |
// 전송사 코드 번호를 셋팅해 준다. |
| 4207 | 4230 |
mjonMsgVO.setAgentCode(mjonMsgSendVO.getAgentCode()); |
| 4208 | 4231 |
|
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?