wyh 2025-01-24
Merge branch 'master' of http://dudgusw@vcs.iten.co.kr:9999/hylee/mjon_git
@a2ba4a9865987a2880b7e352a0a32c179a382c8f
src/main/java/itn/let/mjo/pay/service/impl/MjonPayServiceImpl.java
--- src/main/java/itn/let/mjo/pay/service/impl/MjonPayServiceImpl.java
+++ src/main/java/itn/let/mjo/pay/service/impl/MjonPayServiceImpl.java
@@ -79,6 +79,9 @@
 	@Resource(name = "egovPgMoidGnrService")
     private EgovIdGnrService idgenPgMoid;
 	
+	@Resource(name = "mjonPayService")
+    private MjonPayService mjonPayService;
+	
 	/** 메모 idgen */
 	@Resource(name="egovGnrlUserSelectMemoIdGnrService")
 	private EgovIdGnrService memoidgenService;
@@ -2259,13 +2262,16 @@
     		 * 
     		 * */ 
     		
+			//결제내역 카운트 조회
+			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 테이블
Add a comment
List