|
|
@@ -6,7 +6,6 @@ import java.util.List;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@@ -33,7 +32,6 @@ import com.style24.front.support.controller.TsfBaseController;
|
|
|
import com.style24.front.support.security.session.TsfSession;
|
|
|
import com.style24.persistence.TscPageRequest;
|
|
|
import com.style24.persistence.domain.Cart;
|
|
|
-import com.style24.persistence.domain.Customer;
|
|
|
import com.style24.persistence.domain.Order;
|
|
|
import com.style24.persistence.domain.OrderChange;
|
|
|
|
|
|
@@ -423,12 +421,12 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 마이페이지 취소신청
|
|
|
+ * 비회원 취소신청
|
|
|
*
|
|
|
* @param Collection<Order>
|
|
|
* @return GagaMap
|
|
|
* @author card007
|
|
|
- * @since 2021. 03. 22
|
|
|
+ * @since 2021. 04. 28
|
|
|
*/
|
|
|
@SuppressWarnings("unchecked")
|
|
|
@PostMapping("/cancel")
|
|
|
@@ -457,7 +455,7 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
* @param Cart
|
|
|
* @return Collecion<Cart>
|
|
|
* @author card007
|
|
|
- * @since 2021. 03. 26
|
|
|
+ * @since 2021. 04. 28
|
|
|
*/
|
|
|
@PostMapping("/cart/add/info")
|
|
|
@ResponseBody
|
|
|
@@ -465,191 +463,13 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
return cartService.getAddCartInfoForMypage(cart);
|
|
|
}
|
|
|
|
|
|
- // ================================== 아직 처리 안함 =====================================
|
|
|
- /**
|
|
|
- * 마이페이지 교환신청 화면
|
|
|
- *
|
|
|
- * @param Order
|
|
|
- * @return ModelAndView
|
|
|
- * @author card007
|
|
|
- * @since 2021. 02. 22
|
|
|
- */
|
|
|
- @PostMapping("/exchange/form")
|
|
|
- @ResponseBody
|
|
|
- public ModelAndView exchangeForm(Order order) {
|
|
|
- ModelAndView mav = new ModelAndView();
|
|
|
-
|
|
|
- // 주문번호 설정
|
|
|
- mav.addObject("ordNo", order.getOrdNo());
|
|
|
-
|
|
|
- // 고객번호 설정
|
|
|
- int custNo = TsfSession.getInfo().getCustNo();
|
|
|
- order.setCustNo(custNo);
|
|
|
- mav.addObject("custNo", custNo);
|
|
|
-
|
|
|
- // 고객정보 조회
|
|
|
- Customer customer = new Customer();
|
|
|
- customer.setSiteCd(TscConstants.Site.STYLE24.value());
|
|
|
- customer.setCustNo(custNo);
|
|
|
- customer.setCustStat(TscConstants.CustStat.ACTIVE.value());
|
|
|
- customer = coreCustomerService.getCustomerInfo(customer);
|
|
|
-
|
|
|
- mav.addObject("customerInfo", customer);
|
|
|
-
|
|
|
- // 로그인여부 설정
|
|
|
- mav.addObject("isLogin", TsfSession.isLogin());
|
|
|
-
|
|
|
- // 교환 가능 리스트 조회
|
|
|
- GagaMap map = orderChangeService.getReturnListForMypage(order);
|
|
|
- Order oneData = (Order)map.get("oneData");
|
|
|
- mav.addObject("exchangeList", map);
|
|
|
- mav.addObject("oneData", oneData);
|
|
|
-
|
|
|
- // 주문 배송지 정보 조회
|
|
|
- mav.addObject("deliveryAddrInfo", orderService.getOrderDeliveryAddrInfo(order));
|
|
|
-
|
|
|
- // 교환 사유 목록 조회
|
|
|
- mav.addObject("exchangeReason", rendererService.getCommonCodeList("G689", "Y"));
|
|
|
-
|
|
|
- mav.setViewName(super.getDeviceViewName("/mypage/MypageExchangeForm"));
|
|
|
-
|
|
|
- return mav;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 마이페이지 교환 옵션 변경 팝업
|
|
|
- *
|
|
|
- * @param Order
|
|
|
- * @return ModelAndView
|
|
|
- * @author card007
|
|
|
- * @since 2021. 03. 30
|
|
|
- */
|
|
|
- @PostMapping("/change/option/popup/form")
|
|
|
- @ResponseBody
|
|
|
- public ModelAndView changeOptionPopupForm(OrderChange orderChange) {
|
|
|
- ModelAndView mav = new ModelAndView();
|
|
|
-
|
|
|
- // custNo 설정
|
|
|
- if (TsfSession.isLogin()) {
|
|
|
- orderChange.setCustNo(TsfSession.getInfo().getCustNo());
|
|
|
- } else {
|
|
|
- orderChange.setCustNo(0);
|
|
|
- }
|
|
|
-
|
|
|
- // 교환 옵션 정보 조회
|
|
|
- Collection<OrderChange> exchangeOptionInfo = orderChangeService.getExchangeOptionInfo(orderChange);
|
|
|
- mav.addObject("exchangeOptionInfo", exchangeOptionInfo);
|
|
|
- mav.addObject("oneData", exchangeOptionInfo.iterator().next());
|
|
|
- mav.addObject("ordDtlNo", orderChange.getOrdDtlNo());
|
|
|
- mav.addObject("chgQty", orderChange.getChgQty());
|
|
|
-
|
|
|
- mav.setViewName(super.getDeviceViewName("mypage/ChangeOptionPopupForm"));
|
|
|
-
|
|
|
- return mav;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 교환신청
|
|
|
- *
|
|
|
- * @param OrderChange
|
|
|
- * @return GagaMap
|
|
|
- * @author card007
|
|
|
- * @since 2021. 04. 06
|
|
|
- */
|
|
|
- @SuppressWarnings("unchecked")
|
|
|
- @PostMapping("/exchange")
|
|
|
- @ResponseBody
|
|
|
- public GagaMap excReq(@RequestBody OrderChange orderChange) {
|
|
|
- GagaMap result = new GagaMap();
|
|
|
-
|
|
|
- // 교환요청 데이터 확인
|
|
|
- if (orderChange == null) {
|
|
|
- result.set("status", GagaResponseStatus.FAIL.getCode());
|
|
|
- result.set("message", message.getMessage("FAIL_1001"));
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- // 세션 고객번호 설정
|
|
|
- int custNo = TsfSession.getInfo().getCustNo();
|
|
|
- orderChange.setUpdNo(custNo);
|
|
|
- orderChange.setRegNo(custNo);
|
|
|
-
|
|
|
- // 교환처리
|
|
|
- result = coreOrderChangeService.exchReq(orderChange);
|
|
|
-
|
|
|
- // 처리 결과 코드에 따른 메세지 설정
|
|
|
- if (result.get("status").equals(GagaResponseStatus.SUCCESS.getCode())) {
|
|
|
- if (orderChange.getAddPayCost() == 0) {
|
|
|
- result.set("message", message.getMessage("EXCHANGE_0001"));
|
|
|
- }
|
|
|
- } else {
|
|
|
- result.set("message", message.getMessage("FAIL_0004"));
|
|
|
- }
|
|
|
-
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 교환요청철회
|
|
|
- *
|
|
|
- * @param OrderChange
|
|
|
- * @return GagaResponse
|
|
|
- * @author card007
|
|
|
- * @since 2021. 04. 20
|
|
|
- */
|
|
|
- @PostMapping("/exchange/cancel")
|
|
|
- @ResponseBody
|
|
|
- public GagaResponse exchangeRequestCancel(@RequestBody OrderChange orderChange) {
|
|
|
-
|
|
|
- if (orderChange== null) {
|
|
|
- throw new IllegalStateException(message.getMessage("FAIL_1001"));
|
|
|
- }
|
|
|
-
|
|
|
- // 1. 교환요청철회 정보 설정
|
|
|
- int custNo = TsfSession.isLogin() ? TsfSession.getInfo().getCustNo() : 0;
|
|
|
- orderChange.setCustNo(custNo);
|
|
|
- orderChange.setRegNo(custNo);
|
|
|
- orderChange.setUpdNo(custNo);
|
|
|
-
|
|
|
- String ipAddress = TsfSession.getIpAddress();
|
|
|
- orderChange.setIpAddress(ipAddress);
|
|
|
-
|
|
|
- // 2.교환요청철회
|
|
|
- coreOrderChangeService.exchangeCancel(orderChange);
|
|
|
-
|
|
|
- return super.ok(message.getMessage("EXCHANGE_0002"));
|
|
|
- // return super.ok();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 마이페이지 상태별 수량 조회
|
|
|
- *
|
|
|
- * @return
|
|
|
- * @author card007
|
|
|
- * @since 2021. 02. 25
|
|
|
- */
|
|
|
- @PostMapping("/status/count")
|
|
|
- @ResponseBody
|
|
|
- public GagaMap fnReloadStatusCount() {
|
|
|
- GagaMap result = new GagaMap();
|
|
|
-
|
|
|
- // 쿠폰정보 조회
|
|
|
- Order order = new Order();
|
|
|
- order.setCustNo(TsfSession.getInfo().getCustNo());
|
|
|
- result.set("orderCount", coreOrderService.getOrderStatCount(order));
|
|
|
-
|
|
|
- result.set("status", GagaResponseStatus.SUCCESS.getCode());
|
|
|
-
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
- * 마이페이지 반품신청 화면
|
|
|
+ * 비회원 반품신청 화면
|
|
|
*
|
|
|
* @param Order
|
|
|
* @return ModelAndView
|
|
|
* @author card007
|
|
|
- * @since 2021. 02. 25
|
|
|
+ * @since 2021. 05. 02
|
|
|
*/
|
|
|
@PostMapping("/return/form")
|
|
|
@ResponseBody
|
|
|
@@ -659,24 +479,11 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
// 주문번호 설정
|
|
|
mav.addObject("ordNo", order.getOrdNo());
|
|
|
|
|
|
- // 고객번호 설정
|
|
|
- int custNo = TsfSession.getInfo().getCustNo();
|
|
|
- order.setCustNo(custNo);
|
|
|
- mav.addObject("custNo", custNo);
|
|
|
-
|
|
|
- // 고객정보 조회
|
|
|
- Customer customer = new Customer();
|
|
|
- customer.setSiteCd(TscConstants.Site.STYLE24.value());
|
|
|
- customer.setCustNo(custNo);
|
|
|
- customer.setCustStat(TscConstants.CustStat.ACTIVE.value());
|
|
|
- customer = coreCustomerService.getCustomerInfo(customer);
|
|
|
-
|
|
|
- mav.addObject("customerInfo", customer);
|
|
|
-
|
|
|
// 로그인여부 설정
|
|
|
- mav.addObject("isLogin", TsfSession.isLogin());
|
|
|
+ mav.addObject("isLogin", false);
|
|
|
|
|
|
// 반품 가능 리스트 조회
|
|
|
+ order.setChgGb(TscConstants.OrderChangeGb.RETURN.value());
|
|
|
GagaMap map = orderChangeService.getReturnListForMypage(order);
|
|
|
Order oneData = (Order)map.get("oneData");
|
|
|
mav.addObject("returnList", map);
|
|
|
@@ -691,7 +498,7 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
// 반품 사유 목록 조회
|
|
|
mav.addObject("returnReason", rendererService.getCommonCodeList("G688", "Y"));
|
|
|
|
|
|
- mav.setViewName(super.getDeviceViewName("/mypage/MypageReturnForm"));
|
|
|
+ mav.setViewName(super.getDeviceViewName("/mypage/NoMemberReturnForm"));
|
|
|
|
|
|
return mav;
|
|
|
}
|
|
|
@@ -702,7 +509,7 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
* @param OrderChange
|
|
|
* @return GagaMap
|
|
|
* @author card007
|
|
|
- * @since 2021. 03. 30
|
|
|
+ * @since 2021. 05. 02
|
|
|
*/
|
|
|
@SuppressWarnings("unchecked")
|
|
|
@PostMapping("/return")
|
|
|
@@ -716,23 +523,16 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
// @ 주문취소시 상태값 체크
|
|
|
// @ 취소, 반품시 배송비 체크 로직 (선결제 로직)
|
|
|
|
|
|
- // 1. 세션회원조회
|
|
|
- int custNo = TsfSession.getInfo().getCustNo();
|
|
|
- orderChange.setCustNo(custNo);
|
|
|
-
|
|
|
// 2. 환불 사전 정보 조회
|
|
|
GagaMap refundPreInfo = coreOrderChangeService.getRefundPreInfo(orderChange);
|
|
|
List<Order> returnReqList = (List<Order>)refundPreInfo.get("cnclReqList");
|
|
|
- String allLastCanYn = refundPreInfo.getString("allLastCanYn");
|
|
|
- String supplyCompCd = refundPreInfo.getString("supplyCompCd");
|
|
|
|
|
|
// 3. 환불금액계산
|
|
|
GagaMap result = coreOrderRefundService.cnclRtnRefundAmt(returnReqList);
|
|
|
|
|
|
// 4. 주문변경 기본정보 설정
|
|
|
result.set("ordNo", orderChange.getOrdNo()); // 주문번호
|
|
|
- result.setInt("custNo", custNo); // 고객번호
|
|
|
- // result.set("ordChgSq", orderChange.getOrdChgSq()); // 주문변경번호
|
|
|
+ result.setInt("custNo", 0); // 고객번호
|
|
|
result.set("chgReason", orderChange.getChgReason()); // 변경사유
|
|
|
result.set("chgMemo", orderChange.getChgMemo()); // 변경메모
|
|
|
|
|
|
@@ -740,7 +540,6 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
result.set("accountNm", orderChange.getAccountNm()); // 환불계좌예금주명
|
|
|
result.set("bankCd", orderChange.getBankCd()); // 환불계좌은행코드
|
|
|
|
|
|
- result.setString("allLastCanYn", allLastCanYn); // 전체 마지막 취소 여부
|
|
|
result.set("isCustomer", orderChange.getIsCustomer()); // 변경사유 (고객, 회사)
|
|
|
result.set("wdGb", orderChange.getWdGb()); // 회수방법
|
|
|
result.set("wdInvoiceNo", orderChange.getWdInvoiceNo()); // 회수송장번호
|
|
|
@@ -757,7 +556,6 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
|
|
|
// 6. 주문변경 DB 등록 (TB_ORDER_CHANGE, TB_ORDER_CHANGE_DETAIL, TB_REFUND)
|
|
|
coreOrderChangeService.returnRequest(result);
|
|
|
- // coreOrderChangeService.rtnReq(result, custNo);
|
|
|
|
|
|
result.set("status", GagaResponseStatus.SUCCESS.getCode());
|
|
|
if (orderChange.getAddPayCost() == 0) {
|
|
|
@@ -773,7 +571,7 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
* @param OrderChange
|
|
|
* @return GagaResponse
|
|
|
* @author card007
|
|
|
- * @since 2021. 04. 20
|
|
|
+ * @since 2021. 05. 02
|
|
|
*/
|
|
|
@PostMapping("/return/cancel")
|
|
|
@ResponseBody
|
|
|
@@ -804,7 +602,7 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
* @param OrderChange
|
|
|
* @return ModelAndView
|
|
|
* @author card007
|
|
|
- * @since 2021. 04. 05
|
|
|
+ * @since 2021. 05. 02
|
|
|
*/
|
|
|
@ResponseBody
|
|
|
@RequestMapping(value = "/refund/account/register/popup/form")
|
|
|
@@ -826,35 +624,191 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 마이페이지 취반교 목록 화면
|
|
|
+ * 비회원 교환신청 화면
|
|
|
*
|
|
|
- * @return
|
|
|
+ * @param Order
|
|
|
+ * @return ModelAndView
|
|
|
+ * @author card007
|
|
|
+ * @since 2021. 05. 02
|
|
|
+ */
|
|
|
+ @PostMapping("/exchange/form")
|
|
|
+ @ResponseBody
|
|
|
+ public ModelAndView exchangeForm(Order order) {
|
|
|
+ ModelAndView mav = new ModelAndView();
|
|
|
+
|
|
|
+ // 주문번호 설정
|
|
|
+ mav.addObject("ordNo", order.getOrdNo());
|
|
|
+
|
|
|
+ // 로그인여부 설정
|
|
|
+ mav.addObject("isLogin", false);
|
|
|
+
|
|
|
+ // 교환 가능 리스트 조회
|
|
|
+ order.setChgGb(TscConstants.OrderChangeGb.EXCHANGE.value());
|
|
|
+ GagaMap map = orderChangeService.getReturnListForMypage(order);
|
|
|
+ Order oneData = (Order)map.get("oneData");
|
|
|
+ mav.addObject("exchangeList", map);
|
|
|
+ mav.addObject("oneData", oneData);
|
|
|
+
|
|
|
+ // 주문 배송지 정보 조회
|
|
|
+ mav.addObject("deliveryAddrInfo", orderService.getOrderDeliveryAddrInfo(order));
|
|
|
+
|
|
|
+ // 교환 사유 목록 조회
|
|
|
+ mav.addObject("exchangeReason", rendererService.getCommonCodeList("G689", "Y"));
|
|
|
+
|
|
|
+ mav.setViewName(super.getDeviceViewName("/mypage/NoMemberExchangeForm"));
|
|
|
+
|
|
|
+ return mav;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 비회원 교환 옵션 변경 팝업
|
|
|
+ *
|
|
|
+ * @param Order
|
|
|
+ * @return ModelAndView
|
|
|
* @author card007
|
|
|
- * @since 2021. 02. 04
|
|
|
+ * @since 2021. 05. 02
|
|
|
*/
|
|
|
- @GetMapping({"/cre/list/form"})
|
|
|
- public ModelAndView mypageCreListForm() {
|
|
|
+ @PostMapping("/change/option/popup/form")
|
|
|
+ @ResponseBody
|
|
|
+ public ModelAndView changeOptionPopupForm(OrderChange orderChange) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
+ // 교환 옵션 정보 조회
|
|
|
+ Collection<OrderChange> exchangeOptionInfo = orderChangeService.getExchangeOptionInfo(orderChange);
|
|
|
+ mav.addObject("exchangeOptionInfo", exchangeOptionInfo);
|
|
|
+ mav.addObject("oneData", exchangeOptionInfo.iterator().next());
|
|
|
+ mav.addObject("ordDtlNo", orderChange.getOrdDtlNo());
|
|
|
+ mav.addObject("chgQty", orderChange.getChgQty());
|
|
|
+
|
|
|
+ mav.setViewName(super.getDeviceViewName("mypage/ChangeOptionPopupForm"));
|
|
|
+
|
|
|
+ return mav;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 교환신청
|
|
|
+ *
|
|
|
+ * @param OrderChange
|
|
|
+ * @return GagaMap
|
|
|
+ * @author card007
|
|
|
+ * @since 2021. 05. 02
|
|
|
+ */
|
|
|
+ @SuppressWarnings("unchecked")
|
|
|
+ @PostMapping("/exchange")
|
|
|
+ @ResponseBody
|
|
|
+ public GagaMap excReq(@RequestBody OrderChange orderChange) {
|
|
|
+ GagaMap result = new GagaMap();
|
|
|
+
|
|
|
+ // 교환요청 데이터 확인
|
|
|
+ if (orderChange == null) {
|
|
|
+ result.set("status", GagaResponseStatus.FAIL.getCode());
|
|
|
+ result.set("message", message.getMessage("FAIL_1001"));
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
// 고객번호 설정
|
|
|
- int custNo = TsfSession.getInfo().getCustNo();
|
|
|
- mav.addObject("custNo", custNo);
|
|
|
+ orderChange.setUpdNo(0);
|
|
|
+ orderChange.setRegNo(0);
|
|
|
+
|
|
|
+ // 교환처리
|
|
|
+ result = coreOrderChangeService.exchReq(orderChange);
|
|
|
+
|
|
|
+ // 처리 결과 코드에 따른 메세지 설정
|
|
|
+ if (result.get("status").equals(GagaResponseStatus.SUCCESS.getCode())) {
|
|
|
+ if (orderChange.getAddPayCost() == 0) {
|
|
|
+ result.set("message", message.getMessage("EXCHANGE_0001"));
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ result.set("message", message.getMessage("FAIL_0004"));
|
|
|
+ }
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 교환요청철회
|
|
|
+ *
|
|
|
+ * @param OrderChange
|
|
|
+ * @return GagaResponse
|
|
|
+ * @author card007
|
|
|
+ * @since 2021. 04. 20
|
|
|
+ */
|
|
|
+ @PostMapping("/exchange/cancel")
|
|
|
+ @ResponseBody
|
|
|
+ public GagaResponse exchangeRequestCancel(@RequestBody OrderChange orderChange) {
|
|
|
+
|
|
|
+ if (orderChange== null) {
|
|
|
+ throw new IllegalStateException(message.getMessage("FAIL_1001"));
|
|
|
+ }
|
|
|
+
|
|
|
+ // 1. 교환요청철회 정보 설정
|
|
|
+ orderChange.setCustNo(0);
|
|
|
+ orderChange.setRegNo(0);
|
|
|
+ orderChange.setUpdNo(0);
|
|
|
+
|
|
|
+ String ipAddress = TsfSession.getIpAddress();
|
|
|
+ orderChange.setIpAddress(ipAddress);
|
|
|
+
|
|
|
+ // 2.교환요청철회
|
|
|
+ coreOrderChangeService.exchangeCancel(orderChange);
|
|
|
+
|
|
|
+ return super.ok(message.getMessage("EXCHANGE_0002"));
|
|
|
+ // return super.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 비회원 상태별 수량 조회
|
|
|
+ *
|
|
|
+ * @param Order
|
|
|
+ * @return GagaMap
|
|
|
+ * @author card007
|
|
|
+ * @since 2021. 05. 02
|
|
|
+ */
|
|
|
+ @PostMapping("/status/count")
|
|
|
+ @ResponseBody
|
|
|
+ public GagaMap fnReloadStatusCount(@RequestBody Order order) {
|
|
|
+ GagaMap result = new GagaMap();
|
|
|
+
|
|
|
+ // 상태별 수량 조회
|
|
|
+ result.set("orderCount", coreOrderService.getOrderStatCount(order));
|
|
|
+
|
|
|
+ result.set("status", GagaResponseStatus.SUCCESS.getCode());
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 비회원 취반교 목록 화면
|
|
|
+ *
|
|
|
+ * @param Order
|
|
|
+ * @return ModelAndView
|
|
|
+ * @author card007
|
|
|
+ * @since 2021. 05. 02
|
|
|
+ */
|
|
|
+ @PostMapping("/cre/list/form")
|
|
|
+ public ModelAndView mypageCreListForm(Order order) {
|
|
|
+ ModelAndView mav = new ModelAndView();
|
|
|
+
|
|
|
+ // 주문 정보 설정
|
|
|
+ mav.addObject("ordNo", order.getOrdNo());
|
|
|
+ mav.addObject("ordNm", order.getOrdNm());
|
|
|
+ mav.addObject("ordPhnno", order.getOrdPhnno());
|
|
|
|
|
|
// 주문 상태 별 수량 조회
|
|
|
- Order order = new Order();
|
|
|
- order.setCustNo(custNo);
|
|
|
mav.addObject("orderCount", coreOrderService.getOrderStatCount(order));
|
|
|
|
|
|
// 2021.04.21 모바일에서 사용하려고 추가
|
|
|
OrderChange orderChange = new OrderChange();
|
|
|
- orderChange.setCustNo(custNo);
|
|
|
+ orderChange.setOrdNo(order.getOrdNo());
|
|
|
+ orderChange.setOrdNm(order.getOrdNm());
|
|
|
+ orderChange.setOrdPhnno(order.getOrdPhnno());
|
|
|
int totalCnt = orderChangeService.getPagingCreListCount(orderChange);
|
|
|
mav.addObject("totalCnt", totalCnt);
|
|
|
|
|
|
// 주문상세상태코드 설정
|
|
|
mav.addObject("chgStatList", rendererService.getCommonCodeList("G685", "Y", new String[] {"G685_10", "G685_11", "G685_19"}));
|
|
|
|
|
|
- mav.setViewName(super.getDeviceViewName("mypage/MypageCreListForm"));
|
|
|
+ mav.setViewName(super.getDeviceViewName("mypage/NoMemberCreListForm"));
|
|
|
|
|
|
return mav;
|
|
|
}
|
|
|
@@ -865,21 +819,14 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
* @param OrderChange
|
|
|
* @return ModelAndView
|
|
|
* @author card007
|
|
|
- * @since 2021. 02. 18
|
|
|
+ * @since 2021. 05. 02
|
|
|
*/
|
|
|
@PostMapping("/cre/list")
|
|
|
@ResponseBody
|
|
|
public GagaMap getCreList(@RequestBody OrderChange orderChange) {
|
|
|
GagaMap map = new GagaMap();
|
|
|
|
|
|
- // 고객번호 설정
|
|
|
- int custNo = 0;
|
|
|
- if(TsfSession.isLogin()) {
|
|
|
- custNo = TsfSession.getInfo().getCustNo();
|
|
|
- }
|
|
|
-
|
|
|
// 페이징 처리 설정
|
|
|
- orderChange.setCustNo(custNo);
|
|
|
TscPageRequest pageable = new TscPageRequest((orderChange.getPageNo() > 0 ? orderChange.getPageNo() - 1 : 0), orderChange.getPageSize(), orderChange.getPageUnit());
|
|
|
pageable.setTotalCount(orderChangeService.getPagingCreListCount(orderChange));
|
|
|
orderChange.setPageable(pageable);
|
|
|
@@ -903,21 +850,17 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
|
|
|
/**
|
|
|
* 마이페이지 취반교 취소 상세 화면
|
|
|
- *
|
|
|
+ *
|
|
|
+ * @param OrderChange
|
|
|
* @return ModelAndView
|
|
|
* @author card007
|
|
|
- * @since 2021. 04. 12
|
|
|
+ * @since 2021. 05. 02
|
|
|
*/
|
|
|
- @PostMapping({"/cre/cancel/detail/form"})
|
|
|
+ @PostMapping("/cre/cancel/detail/form")
|
|
|
public ModelAndView mypageCreCancelDetailForm(OrderChange orderChange) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
- // 고객번호 설정
|
|
|
- int custNo = TsfSession.getInfo().getCustNo();
|
|
|
- mav.addObject("custNo", custNo);
|
|
|
-
|
|
|
// 취소상세 데이터 조회
|
|
|
- orderChange.setCustNo(custNo);
|
|
|
GagaMap map = orderChangeService.getCreCancelDetailInfo(orderChange);
|
|
|
OrderChange oneData = (OrderChange) map.get("oneData");
|
|
|
mav.addObject("cancelDetailList", map);
|
|
|
@@ -929,31 +872,27 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
order.setOrdNo(orderChange.getOrdNo());
|
|
|
mav.addObject("paymentInfo", orderService.getPaymentInfoForMypage(order));
|
|
|
|
|
|
- mav.setViewName(super.getDeviceViewName("mypage/MypageCreCancelDetailForm"));
|
|
|
+ mav.setViewName(super.getDeviceViewName("mypage/NoMemberCreCancelDetailForm"));
|
|
|
|
|
|
return mav;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 마이페이지 취반교 반품 상세 화면
|
|
|
- *
|
|
|
+ *
|
|
|
+ * @param OrderChange
|
|
|
* @return ModelAndView
|
|
|
* @author card007
|
|
|
- * @since 2021. 04. 13
|
|
|
+ * @since 2021. 05. 02
|
|
|
*/
|
|
|
- @PostMapping({"/cre/return/detail/form"})
|
|
|
+ @PostMapping("/cre/return/detail/form")
|
|
|
public ModelAndView mypageCreReturnDetailForm(OrderChange orderChange) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
- // 고객번호 설정
|
|
|
- int custNo = TsfSession.getInfo().getCustNo();
|
|
|
- mav.addObject("custNo", custNo);
|
|
|
-
|
|
|
// 로그인여부 설정
|
|
|
- mav.addObject("isLogin", TsfSession.isLogin());
|
|
|
+ mav.addObject("isLogin", false);
|
|
|
|
|
|
// 취소상세 데이터 조회
|
|
|
- orderChange.setCustNo(custNo);
|
|
|
GagaMap map = orderChangeService.getCreReturnDetailInfo(orderChange);
|
|
|
OrderChange oneData = (OrderChange) map.get("oneData");
|
|
|
mav.addObject("returnDetailList", map);
|
|
|
@@ -964,37 +903,33 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
order.setOrdNo(orderChange.getOrdNo());
|
|
|
mav.addObject("paymentInfo", orderService.getPaymentInfoForMypage(order));
|
|
|
|
|
|
- mav.setViewName(super.getDeviceViewName("mypage/MypageCreReturnDetailForm"));
|
|
|
+ mav.setViewName(super.getDeviceViewName("mypage/NoMemberCreReturnDetailForm"));
|
|
|
|
|
|
return mav;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 마이페이지 취반교 교환 상세 화면
|
|
|
- *
|
|
|
+ *
|
|
|
+ * @param OrderChange
|
|
|
* @return ModelAndView
|
|
|
* @author card007
|
|
|
- * @since 2021. 04. 13
|
|
|
+ * @since 2021. 05. 02
|
|
|
*/
|
|
|
- @PostMapping({"/cre/exchange/detail/form"})
|
|
|
+ @PostMapping("/cre/exchange/detail/form")
|
|
|
public ModelAndView mypageCreExchangeDetailForm(OrderChange orderChange) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
- // 고객번호 설정
|
|
|
- int custNo = TsfSession.getInfo().getCustNo();
|
|
|
- mav.addObject("custNo", custNo);
|
|
|
-
|
|
|
// 로그인여부 설정
|
|
|
- mav.addObject("isLogin", TsfSession.isLogin());
|
|
|
+ mav.addObject("isLogin", false);
|
|
|
|
|
|
// 취소상세 데이터 조회
|
|
|
- orderChange.setCustNo(custNo);
|
|
|
GagaMap map = orderChangeService.getCreExchangeDetailInfo(orderChange);
|
|
|
OrderChange oneData = (OrderChange) map.get("oneData");
|
|
|
mav.addObject("exchangeDetailList", map);
|
|
|
mav.addObject("oneData", oneData);
|
|
|
|
|
|
- mav.setViewName(super.getDeviceViewName("mypage/MypageCreExchangeDetailForm"));
|
|
|
+ mav.setViewName(super.getDeviceViewName("mypage/NoMemberCreExchangeDetailForm"));
|
|
|
|
|
|
return mav;
|
|
|
}
|
|
|
@@ -1002,8 +937,8 @@ public class TsfNoMemberController extends TsfBaseController {
|
|
|
/**
|
|
|
* WMS 주문 취소 가능 여부 조회
|
|
|
*
|
|
|
- * @param
|
|
|
- * @return
|
|
|
+ * @param OrderChange
|
|
|
+ * @return GagaMap
|
|
|
* @author card007
|
|
|
* @since 2021. 04. 22
|
|
|
*/
|