|
@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
import com.style24.core.biz.service.TscAnswerPhaseService;
|
|
import com.style24.core.biz.service.TscAnswerPhaseService;
|
|
|
|
|
+import com.style24.core.biz.service.TscKakaotalkService;
|
|
|
import com.style24.core.support.message.TscMessageByLocale;
|
|
import com.style24.core.support.message.TscMessageByLocale;
|
|
|
import com.style24.persistence.domain.AnswerPhase;
|
|
import com.style24.persistence.domain.AnswerPhase;
|
|
|
import com.style24.persistence.domain.Counsel;
|
|
import com.style24.persistence.domain.Counsel;
|
|
@@ -47,6 +48,9 @@ public class TssCustomerController extends TssBaseController {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private TscAnswerPhaseService ansPhaseService;
|
|
private TscAnswerPhaseService ansPhaseService;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private TscKakaotalkService kakaotalkService;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 상품문의관리 화면
|
|
* 상품문의관리 화면
|
|
@@ -139,15 +143,18 @@ public class TssCustomerController extends TssBaseController {
|
|
|
// 상품문의상세 조회
|
|
// 상품문의상세 조회
|
|
|
Counsel tCounsel = counselService.getGoodsQna(counsel.getCounselSq());
|
|
Counsel tCounsel = counselService.getGoodsQna(counsel.getCounselSq());
|
|
|
|
|
|
|
|
-// // TODO. 고객이 SMS답변수신을 요청했을 때
|
|
|
|
|
-// if (counsel.getSmsReqYn().equals("Y")) {
|
|
|
|
|
-// try {
|
|
|
|
|
-// // 답변완료안내 카카오알림톡 발송
|
|
|
|
|
-// kakaoService.sendQnaAnswer(tCounsel);
|
|
|
|
|
-// } catch (Exception e) {
|
|
|
|
|
-// // Do nothing
|
|
|
|
|
-// }
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ // TODO. 고객이 SMS답변수신을 요청했을 때
|
|
|
|
|
+ if (counsel.getSmsReqYn().equals("Y")) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ if (counsel.getCounselType().equals("G")) {
|
|
|
|
|
+ //답변완료안내 카카오알림톡 발송
|
|
|
|
|
+ kakaotalkService.sendGoodsAskNotify(tCounsel,tCounsel.getCustNo());
|
|
|
|
|
+ }
|
|
|
|
|
+ //
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ // Do nothing
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
return super.ok(message.getMessage("SUCC_0001"));
|
|
return super.ok(message.getMessage("SUCC_0001"));
|
|
|
}
|
|
}
|