From 2763b71c85d42868226c550f5fc6e313c74e9d6c Mon Sep 17 00:00:00 2001 From: myname Date: Fri, 24 Jan 2025 21:03:32 +0900 Subject: [PATCH] =?UTF-8?q?2025-01-24=2021:02=20=EC=B2=AB=20=EA=B2=B0?= =?UTF-8?q?=EC=A0=9C=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EB=93=B1=EB=A1=9D?= =?UTF-8?q?=EC=8B=9C=20=EA=B2=B0=EC=A0=9C=20=EC=97=AC=EB=B6=80=20=ED=99=95?= =?UTF-8?q?=EC=9D=B8=ED=95=98=EB=8A=94=20=EB=A1=9C=EC=A7=81=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=EB=90=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itn/let/mjo/pay/service/impl/MjonPayServiceImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/itn/let/mjo/pay/service/impl/MjonPayServiceImpl.java b/src/main/java/itn/let/mjo/pay/service/impl/MjonPayServiceImpl.java index 603bf80e..d9814bdf 100644 --- a/src/main/java/itn/let/mjo/pay/service/impl/MjonPayServiceImpl.java +++ b/src/main/java/itn/let/mjo/pay/service/impl/MjonPayServiceImpl.java @@ -79,6 +79,9 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP @Resource(name = "egovPgMoidGnrService") private EgovIdGnrService idgenPgMoid; + @Resource(name = "mjonPayService") + private MjonPayService mjonPayService; + /** 메모 idgen */ @Resource(name="egovGnrlUserSelectMemoIdGnrService") 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"); // 문자할인여부(1: 할인, 0: 미할인) int isMsgSalePrice = selectMsgSalePriceCnt(mjonPayVO.getUserId()); - if(eventMberInfo == null) {//일반 결제에 해당하는 경우 정상적 포인트 지급, 이벤트 첫결제에 해당되지 않는 회원 + if(eventMberInfo == null || payCnt > 0) {//일반 결제에 해당하는 경우 정상적 포인트 지급, 이벤트 첫결제에 해당되지 않는 회원 // 문자 미할인 회원만 포인트 충전 if(isMsgSalePrice == 0) { mjonPayDAO.insertPoint(mjonPayVO); //POINT 테이블