|
|
@@ -1,9 +1,9 @@
|
|
|
package com.style24.admin.biz.web;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Collection;
|
|
|
-import java.util.List;
|
|
|
+import java.util.*;
|
|
|
|
|
|
+import com.style24.core.biz.service.*;
|
|
|
+import com.style24.persistence.domain.Payment;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
@@ -22,12 +22,6 @@ import com.style24.admin.biz.service.TsaOrderChangeService;
|
|
|
import com.style24.admin.biz.service.TsaRendererService;
|
|
|
import com.style24.admin.support.controller.TsaBaseController;
|
|
|
import com.style24.admin.support.security.session.TsaSession;
|
|
|
-import com.style24.core.biz.service.TscKakaotalkService;
|
|
|
-import com.style24.core.biz.service.TscKcpService;
|
|
|
-import com.style24.core.biz.service.TscMailService;
|
|
|
-import com.style24.core.biz.service.TscOrderChangeService;
|
|
|
-import com.style24.core.biz.service.TscOrderRefundService;
|
|
|
-import com.style24.core.biz.service.TscOrderService;
|
|
|
import com.style24.core.support.env.TscConstants;
|
|
|
import com.style24.core.support.message.TscMessageByLocale;
|
|
|
import com.style24.persistence.domain.CustAccount;
|
|
|
@@ -68,6 +62,9 @@ public class TsaOrderChangeController extends TsaBaseController {
|
|
|
@Autowired
|
|
|
private TscKcpService coreKcpService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TscNaverPayService coreNaverPayService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private TscKakaotalkService coreKakaotalkService;
|
|
|
|
|
|
@@ -232,6 +229,13 @@ public class TsaOrderChangeController extends TsaBaseController {
|
|
|
// 2021.06.09 취소접수승인
|
|
|
else if ("cnclReqComplete".equals(cnclReq.getReqGbn())) {
|
|
|
result = coreOrderChangeService.approveCancelRequest(cnclReq, userNo);
|
|
|
+ if(StringUtils.isNotBlank(result.getString("pgGb")) && TscConstants.PgGb.NAVER_ORDER.value().equals(result.getString("pgGb"))) {
|
|
|
+ Order order = new Order();
|
|
|
+ order.setOrdNo(cnclReq.getOrdNo());
|
|
|
+ order.setOrdChgSq(cnclReq.getOrdChgSq());
|
|
|
+ order.setRegNo(userNo);
|
|
|
+ coreNaverPayService.sendNaverPayOrderCancelConfirm(order);
|
|
|
+ }
|
|
|
}
|
|
|
// 2021.06.09 취소접수철회
|
|
|
else if ("cnclReqCancel".equals(cnclReq.getReqGbn())) {
|
|
|
@@ -247,6 +251,14 @@ public class TsaOrderChangeController extends TsaBaseController {
|
|
|
|
|
|
if (ordChgSq > 0) {
|
|
|
try {
|
|
|
+ Payment payment = new Payment();
|
|
|
+ payment.setOrdNo(cnclReq.getOrdNo());
|
|
|
+ payment = coreOrderChangeService.getPaymentInfo(payment);
|
|
|
+ // 네이버페이 주문형 데이터는 알림톡, 메일 송부X
|
|
|
+ if(TscConstants.PgGb.NAVER_ORDER.value().equals(payment.getPgGb())) {
|
|
|
+ return super.ok("성공");
|
|
|
+ }
|
|
|
+
|
|
|
// 취소 알림톡 관련 정보 조회
|
|
|
OrderChange orderChange = coreOrderChangeService.getKakaoOrderCancelInfo(ordChgSq);
|
|
|
|