|
|
@@ -10,7 +10,9 @@ import com.style24.core.biz.dao.TscOrderChangeDao;
|
|
|
import com.style24.core.biz.dao.TscOrderDao;
|
|
|
import com.style24.core.support.env.TscConstants.OrderChangeStat;
|
|
|
import com.style24.core.support.env.TscConstants.OrderDetailStat;
|
|
|
+import com.style24.core.support.env.TscConstants.MallGb;
|
|
|
import com.style24.core.support.message.TscMessageByLocale;
|
|
|
+import com.style24.core.biz.service.TscKakaotalkService;
|
|
|
import com.style24.front.biz.dao.TsfDeliveryDao;
|
|
|
import com.style24.persistence.domain.Order;
|
|
|
import com.style24.persistence.domain.OrderChange;
|
|
|
@@ -40,6 +42,11 @@ public class TsfDeliveryService {
|
|
|
@Autowired
|
|
|
private TscOrderDao orderDao;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TscKakaotalkService kakaotalkService;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 스윗트래커 배송상태 등록 및 주문상세상태 변경
|
|
|
* @param SweetTracker
|
|
|
@@ -91,6 +98,23 @@ public class TsfDeliveryService {
|
|
|
orderChangeDao.createOrderChangeDetailHst(ordChg);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ try {
|
|
|
+ // 알림톡
|
|
|
+ SweetTracker info = deliveryDao.getOrdNoInfo(sweetTracker);
|
|
|
+ if(MallGb.SELFMALL.value().equals(info.getMallGb())) {
|
|
|
+ Order order = new Order();
|
|
|
+ order.setOrdNo(info.getOrdNo());
|
|
|
+ order.setCustNo(info.getCustNo());
|
|
|
+ order.setOrdNm(info.getOrdNm());
|
|
|
+ order.setOrdPhnno(info.getOrdPhnno());
|
|
|
+
|
|
|
+ kakaotalkService.sendDeliveryComplete(order, 99999);
|
|
|
+ }
|
|
|
+ }catch(Exception e) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
// TB_SWEET_TRACKER 등록
|