Преглед изворни кода

Merge remote-tracking branch 'origin/xodud1202' into jsh77b

jsh77b пре 5 година
родитељ
комит
454ae9fb80

+ 2 - 2
src/main/java/com/style24/core/biz/dao/TscOrderDao.java

@@ -432,11 +432,11 @@ public interface TscOrderDao {
 	void insertPaymentCancel(Payment param);
 
 	/**
-	 * 결제 데이터 생성 중 에러로 인한 결제 취소 데이터 생성
+	 * PAYMENT INSERT
 	 * @param param
 	 * @return
 	 */
-	void insertPaymentRollback(Payment param);
+	int insertPayment(Payment param);
 	
 	/**
 	 * 총알배송 가능 시간 체크

+ 1 - 1
src/main/java/com/style24/core/biz/service/TscKcpService.java

@@ -246,7 +246,7 @@ public class TscKcpService {
 
 			if ("E".equals(param.getPayGb())) {			// 결제완료 로직 진행 중 에러 발생시
 				param.setPgTid(payment.getPgTid());
-				orderDao.insertPaymentCancel(param);
+				orderDao.insertPayment(param);
 			} else {									// 일반 취소 작업
 				payment.setRegNo(param.getRegNo() == null ? 0 : param.getRegNo());
 				payment.setUpdNo(param.getUpdNo() == null ? 0 : param.getUpdNo());

+ 6 - 6
src/main/java/com/style24/persistence/mybatis/shop/TscOrder.xml

@@ -2218,9 +2218,9 @@
 		WHERE  PG_TID = #{pgTid}
 	</insert>
 
-	<!-- 결제 데이터 생성 중 에러로 인한 결제 취소 데이터 생성 -->
-	<insert id="insertPaymentRollback" parameterType="Payment">
-		/* TscOrder.insertPaymentRollback : 결제 데이터 생성 중 에러로 인한 결제 취소 데이터 생성 */
+	<!-- PAYMENT INSERT -->
+	<insert id="insertPayment" parameterType="Payment">
+		/* TscOrder.insertPayment : PAYMENT INSERT */
 		INSERT INTO TB_PAYMENT (
 			  ORD_NO
 			, PAY_DT
@@ -2253,9 +2253,9 @@
 			  #{ordNo}
 			, NOW()
 			, #{payMeans}
-			, -#{payAmt}
-			, -#{pgCpnAmt}
-			, -#{npayPntAmt}
+			, #{payAmt}
+			, #{pgCpnAmt}
+			, #{npayPntAmt}
 			, #{payGb}
 			, #{payStat}
 			, #{pgGb}