|
@@ -2,6 +2,9 @@ package com.style24.front.biz.web;
|
|
|
|
|
|
|
|
import java.util.Collection;
|
|
import java.util.Collection;
|
|
|
|
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
+
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -14,9 +17,11 @@ import com.style24.core.biz.service.TscFreegiftService;
|
|
|
import com.style24.core.biz.service.TscOrderService;
|
|
import com.style24.core.biz.service.TscOrderService;
|
|
|
import com.style24.core.support.message.TscMessageByLocale;
|
|
import com.style24.core.support.message.TscMessageByLocale;
|
|
|
import com.style24.front.biz.service.TsfCartService;
|
|
import com.style24.front.biz.service.TsfCartService;
|
|
|
|
|
+import com.style24.front.biz.service.TsfOrderService;
|
|
|
import com.style24.front.support.controller.TsfBaseController;
|
|
import com.style24.front.support.controller.TsfBaseController;
|
|
|
import com.style24.front.support.security.session.TsfSession;
|
|
import com.style24.front.support.security.session.TsfSession;
|
|
|
import com.style24.persistence.domain.Order;
|
|
import com.style24.persistence.domain.Order;
|
|
|
|
|
+import com.style24.persistence.domain.Payment;
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
@@ -36,6 +41,9 @@ public class TsfOrderController extends TsfBaseController {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private TscOrderService coreOrderService;
|
|
private TscOrderService coreOrderService;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private TsfOrderService orderService;
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private TscFreegiftService coreFreegiftService;
|
|
private TscFreegiftService coreFreegiftService;
|
|
@@ -231,7 +239,43 @@ public class TsfOrderController extends TsfBaseController {
|
|
|
|
|
|
|
|
return mav;
|
|
return mav;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 총알배송 가능 지역 체크
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param
|
|
|
|
|
+ * @return
|
|
|
|
|
+ * @author jsh77b
|
|
|
|
|
+ * @since 2021. 02. 08
|
|
|
|
|
+ */
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ @RequestMapping(value = "/create/order")
|
|
|
|
|
+ public ModelAndView createOrder(Order order) {
|
|
|
|
|
+ ModelAndView mav = new ModelAndView();
|
|
|
|
|
+
|
|
|
|
|
+ mav.setViewName(super.getDeviceViewName("pg/kcpOrder"));
|
|
|
|
|
+ return mav;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 주문페이지
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param
|
|
|
|
|
+ * @return
|
|
|
|
|
+ * @author jsh77b
|
|
|
|
|
+ * @since 2021. 02. 02
|
|
|
|
|
+ */
|
|
|
|
|
+ @SuppressWarnings({ "unchecked", "null" })
|
|
|
|
|
+ @RequestMapping(value = "/pay/result/response")
|
|
|
|
|
+ public ModelAndView payResultResponse(Payment param, HttpServletRequest request, HttpServletResponse response) {
|
|
|
|
|
+ ModelAndView mav = new ModelAndView();
|
|
|
|
|
+
|
|
|
|
|
+ orderService.kcpTest(param, request, response);
|
|
|
|
|
+
|
|
|
|
|
+ mav.setViewName(super.getDeviceViewName("pg/kcpOrder"));
|
|
|
|
|
+ return mav;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 총알배송 가능 지역 체크
|
|
* 총알배송 가능 지역 체크
|
|
|
*
|
|
*
|