소스 검색

이태영 - 20210311 TB_PAYMENT INSERT 추가

xodud1202 5 년 전
부모
커밋
0e6e65daab

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

@@ -17,6 +17,7 @@ import org.springframework.transaction.annotation.Transactional;
 import org.thymeleaf.util.StringUtils;
 
 import com.gagaframework.web.parameter.GagaMap;
+import com.style24.core.biz.dao.TscOrderDao;
 import com.style24.core.biz.service.TscKakaoPayService;
 import com.style24.core.biz.service.TscKcpService;
 import com.style24.core.biz.service.TscNaverPayService;
@@ -46,6 +47,9 @@ public class TsfOrderService {
 
 	@Autowired
 	private TscKcpService coreKcpService;
+
+	@Autowired
+	private TscOrderDao coreOrderDao;
 	
 	@Autowired
 	private TscKakaoPayService coreKakaoPayService;
@@ -257,8 +261,9 @@ public class TsfOrderService {
 			result.setPaySq(param.getPaySq());
 			result.setUpdNo(param.getCustNo());
 			result.setRegNo(param.getCustNo());
+			result.setPayGb("O");
 
-			if(updatePaymentForOrderFinished(result) < 1) {
+			if(coreOrderDao.insertPayment(result) < 1) {
 				// TODO 전체 취소 로직 추가
 				if(TscConstants.PgGb.KCP.value().equals(param.getPgGb()) || TscConstants.PgGb.PAYCO.value().equals(param.getPgGb())) {
 					coreKcpService.kcpPayRollBack(result, request);

+ 0 - 8
src/main/webapp/WEB-INF/views/web/cart/cartChangeOptionPopupWeb.html

@@ -157,10 +157,6 @@
 
 
 <script th:inline="javascript">
-	$(document).ready(function() {
-
-	})
-
 	// 세트상품 컬러 변경시
 	$(".setColorSelect").on("change", function(e) {
 		let goodsCd = $(this).find("option:checked").attr("data");
@@ -266,10 +262,6 @@
 			}
 		});
 	}
-
-	$(".closeCartOptionModal").on("click", function() {
-		$(".cartOptionModal").html("");
-	});
 </script>
 
 </div>