|
|
@@ -21,6 +21,7 @@ import com.style24.core.support.env.TscConstants.OrderChangeGb;
|
|
|
import com.style24.core.support.env.TscConstants.OrderChangeStat;
|
|
|
import com.style24.core.support.message.TscMessageByLocale;
|
|
|
import com.style24.core.support.util.CryptoUtils;
|
|
|
+import com.style24.core.biz.service.TscKakaotalkService;
|
|
|
import com.style24.persistence.domain.Order;
|
|
|
import com.style24.persistence.domain.OrderChange;
|
|
|
import com.style24.persistence.domain.Withdraw;
|
|
|
@@ -66,6 +67,11 @@ public class TsaWithdrawService {
|
|
|
@Autowired
|
|
|
private TscNaverPayService coreNaverPayService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TscKakaotalkService kakaotalkService;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 환불관리 목록 건수
|
|
|
@@ -354,7 +360,7 @@ public class TsaWithdrawService {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 회수관리 - 회수처리
|
|
|
+ * 회수관리 > 환불컨펌 > 환불처리
|
|
|
*
|
|
|
* @param params
|
|
|
* @return
|
|
|
@@ -434,6 +440,24 @@ public class TsaWithdrawService {
|
|
|
orderChangeService.partialRefund(info, userNo);
|
|
|
}
|
|
|
|
|
|
+ // 반품완료 알림톡
|
|
|
+
|
|
|
+ Withdraw refundOrdchgSq = new Withdraw();
|
|
|
+ refundOrdchgSq.setOrdChgSq(params.getInt("ordChgSq"));
|
|
|
+ Withdraw info = withdrawDao.getRefundInfo(refundOrdchgSq);
|
|
|
+
|
|
|
+ Order order = new Order();
|
|
|
+ order.setOrdNo(info.getOrdNo());
|
|
|
+ order.setCustNo(info.getCustNo());
|
|
|
+ order.setOrdNm(info.getOrdNm());
|
|
|
+ order.setOrdPhnno(info.getOrdPhnno());
|
|
|
+ order.setRefundAmt(info.getRefundAmt());
|
|
|
+ order.setGoodsCnt(info.getGoodsCnt()+"");
|
|
|
+ order.setGoodsNm(info.getGoodsNm());
|
|
|
+
|
|
|
+ kakaotalkService.sendRefundComplete(order, userNo);
|
|
|
+
|
|
|
+
|
|
|
// 네이버페이 환불컨펌
|
|
|
if(TscConstants.PgGb.NAVER_ORDER.value().equals(change.getPgGb())) {
|
|
|
// PG 미전송이 아닐 경우 (Y면 미전송, N이면 전송)
|