2025-01-24 21:02 첫 결제 이벤트 등록시 결제 여부 확인하는 로직 추가됨
This commit is contained in:
parent
4a140f57a6
commit
2763b71c85
@ -79,6 +79,9 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP
|
|||||||
@Resource(name = "egovPgMoidGnrService")
|
@Resource(name = "egovPgMoidGnrService")
|
||||||
private EgovIdGnrService idgenPgMoid;
|
private EgovIdGnrService idgenPgMoid;
|
||||||
|
|
||||||
|
@Resource(name = "mjonPayService")
|
||||||
|
private MjonPayService mjonPayService;
|
||||||
|
|
||||||
/** 메모 idgen */
|
/** 메모 idgen */
|
||||||
@Resource(name="egovGnrlUserSelectMemoIdGnrService")
|
@Resource(name="egovGnrlUserSelectMemoIdGnrService")
|
||||||
private EgovIdGnrService memoidgenService;
|
private EgovIdGnrService memoidgenService;
|
||||||
@ -2259,13 +2262,16 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP
|
|||||||
*
|
*
|
||||||
* */
|
* */
|
||||||
|
|
||||||
|
//결제내역 카운트 조회
|
||||||
|
int payCnt = mjonPayService.selectMemerPayCount(mjonPayVO.getUserId());
|
||||||
|
|
||||||
//이벤트 회원 정보 테이블에서 미진행 대상자의 정보를 불러온다.
|
//이벤트 회원 정보 테이블에서 미진행 대상자의 정보를 불러온다.
|
||||||
MjonEventVO eventMberInfo = selectEventMsgMberDefaultInfo(mjonPayVO.getUserId(), "N");
|
MjonEventVO eventMberInfo = selectEventMsgMberDefaultInfo(mjonPayVO.getUserId(), "N");
|
||||||
|
|
||||||
// 문자할인여부(1: 할인, 0: 미할인)
|
// 문자할인여부(1: 할인, 0: 미할인)
|
||||||
int isMsgSalePrice = selectMsgSalePriceCnt(mjonPayVO.getUserId());
|
int isMsgSalePrice = selectMsgSalePriceCnt(mjonPayVO.getUserId());
|
||||||
|
|
||||||
if(eventMberInfo == null) {//일반 결제에 해당하는 경우 정상적 포인트 지급, 이벤트 첫결제에 해당되지 않는 회원
|
if(eventMberInfo == null || payCnt > 0) {//일반 결제에 해당하는 경우 정상적 포인트 지급, 이벤트 첫결제에 해당되지 않는 회원
|
||||||
// 문자 미할인 회원만 포인트 충전
|
// 문자 미할인 회원만 포인트 충전
|
||||||
if(isMsgSalePrice == 0) {
|
if(isMsgSalePrice == 0) {
|
||||||
mjonPayDAO.insertPoint(mjonPayVO); //POINT 테이블
|
mjonPayDAO.insertPoint(mjonPayVO); //POINT 테이블
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user