Explorar el Código

이태영 - 20210423 KCP 상품권 현금영수증 취소 로직 개발 중

xodud1202 hace 5 años
padre
commit
8b4d4ecb1b

+ 0 - 8
src/main/java/com/style24/front/biz/dao/TsfOrderDao.java

@@ -136,12 +136,4 @@ public interface TsfOrderDao {
 	 * @since 2021.04.23
 	 */
 	void createGiftcartReceipt(GiftCard param);
-
-	/**
-	 * 상품권 현금영수증 API 연동 결과 등록
-	 * @param param
-	 * @author xodud1202
-	 * @since 2021.04.23
-	 */
-	void createGiftcartReceiptApi(GiftCard param);
 }

+ 1 - 1
src/main/java/com/style24/front/biz/service/TsfOrderService.java

@@ -703,7 +703,7 @@ public class TsfOrderService {
 		}
 
 		// 성공이든 실패이든 로그성 데이터 TB_GIFTCARD_RECEIPT_API INSERT
-		orderDao.createGiftcartReceiptApi(result);
+		coreOrderDao.createGiftcartReceiptApi(result);
 
 		return result;
 	}

+ 4 - 0
src/main/java/com/style24/front/biz/web/TsfCartController.java

@@ -24,6 +24,7 @@ import org.springframework.web.servlet.ModelAndView;
 import org.thymeleaf.util.StringUtils;
 
 import com.gagaframework.web.parameter.GagaMap;
+import com.style24.core.biz.service.TscKcpService;
 import com.style24.core.biz.service.TscOrderService;
 import com.style24.core.support.env.TscConstants;
 import com.style24.core.support.message.TscMessageByLocale;
@@ -67,6 +68,9 @@ public class TsfCartController extends TsfBaseController {
 	@Autowired
 	private TscOrderService coreOrderService;
 
+	@Autowired
+	private TscKcpService coreKcpService;
+
 	@Autowired
 	private TsfOrderService orderService;
 

+ 2 - 22
src/main/java/com/style24/persistence/mybatis/shop/TsfOrder.xml

@@ -506,34 +506,14 @@
 		    , AUTH_NO
 		    , AMT
 		    , REG_DT
+		    , UPD_DT
 		) VALUES (
 		      #{ordNo}
 		    , #{tradeNo}
 		    , #{authNo}
 		    , #{usGfcdAmt}
 		    , NOW()
-		)
-	</insert>
-
-	<!-- 상품권 현금영수증 정보 등록 API 결과 -->
-	<insert id="createGiftcartReceiptApi" parameterType="GiftCard">
-		/* TsfOrder.createGiftcartReceiptApi : 상품권 현금영수증 정보 등록 */
-		INSERT INTO TB_GIFTCARD_RECEIPT_API (
-			  ORD_NO
-			, TRADE_NO
-			, AUTH_NO
-			, AMT
-			, RESULT_CD
-			, RESULT_MSG
-			, REG_DT
-		) VALUES (
-			  #{ordNo}
-			, #{tradeNo}
-			, #{authNo}
-			, #{usGfcdAmt}
-			, #{resultCd}
-			, #{resultMsg}
-			, NOW()
+		    , NOW()
 		)
 	</insert>
 </mapper>