|
@@ -12,6 +12,7 @@ import com.style24.core.biz.thirdparty.SsgKakaoSender;
|
|
|
import com.style24.core.support.env.TscConstants;
|
|
import com.style24.core.support.env.TscConstants;
|
|
|
import com.style24.persistence.domain.CustContactHst;
|
|
import com.style24.persistence.domain.CustContactHst;
|
|
|
import com.style24.persistence.domain.Customer;
|
|
import com.style24.persistence.domain.Customer;
|
|
|
|
|
+import com.style24.persistence.domain.GiftCard;
|
|
|
import com.style24.persistence.domain.SsgDirectMessage;
|
|
import com.style24.persistence.domain.SsgDirectMessage;
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -126,6 +127,53 @@ public class TscKakaotalkService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 인증번호발송
|
|
|
|
|
+ * @param customer - 고객 정보
|
|
|
|
|
+ * @param senderNo - 발송자번호(고객, 사용자)
|
|
|
|
|
+ * @author jsshin
|
|
|
|
|
+ * @since 2020. 4. 8
|
|
|
|
|
+ */
|
|
|
|
|
+ public void sendCustomerCertNo(Customer customer, Integer senderNo) throws Exception {
|
|
|
|
|
+ SsgDirectMessage dm = new SsgDirectMessage();
|
|
|
|
|
+ dm.setFuserid(String.valueOf(senderNo)); // 발송자NO
|
|
|
|
|
+ dm.setFdestine(customer.getCellPhnno());
|
|
|
|
|
+// dm.setFkkoresendtype("LMS");
|
|
|
|
|
+
|
|
|
|
|
+ GagaMap replaceInfo = new GagaMap();
|
|
|
|
|
+ replaceInfo.setString("siteNm", siteNm);
|
|
|
|
|
+ replaceInfo.setString("custNm", customer.getCustNm());
|
|
|
|
|
+ replaceInfo.setString("certNo", customer.getCertNo());
|
|
|
|
|
+
|
|
|
|
|
+ // SMS로 발송
|
|
|
|
|
+ kakaoSender.sendSms(SsgKakaoSender.KakaoAnswerSq.CERT_NO_SEND.value(), dm, replaceInfo);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 상품권 기간만료 알림톡(30일)
|
|
|
|
|
+ * @param giftcard - 상품권 정보
|
|
|
|
|
+ * @param senderNo - 발송자번호(고객번호)
|
|
|
|
|
+ * @author sowon
|
|
|
|
|
+ * @since 2021. 5. 27
|
|
|
|
|
+ */
|
|
|
|
|
+ @Transactional("shopTxnManager")
|
|
|
|
|
+ public void sendGiftcardExpect(GiftCard giftcard, Integer senderNo) {
|
|
|
|
|
+ SsgDirectMessage dm = new SsgDirectMessage();
|
|
|
|
|
+ dm.setFuserid(String.valueOf(senderNo)); // 발송자NO
|
|
|
|
|
+ dm.setFdestine(giftcard.getCellPhnno());
|
|
|
|
|
+ dm.setFkkoresendtype("LMS");
|
|
|
|
|
+
|
|
|
|
|
+ GagaMap replaceInfo = new GagaMap();
|
|
|
|
|
+ replaceInfo.setString("siteNm", siteNm);
|
|
|
|
|
+ replaceInfo.setString("custNm", giftcard.getCustNm());
|
|
|
|
|
+ replaceInfo.setInt("rmGfcdAmt", giftcard.getRmGfcdAmt());
|
|
|
|
|
+ replaceInfo.setString("useExpDate", giftcard.getUseExpDate());
|
|
|
|
|
+ kakaoSender.send(SsgKakaoSender.KakaoAnswerSq.GIFTCARD_EXTNC_EXPECT.value(), dm, replaceInfo);
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// /**
|
|
// /**
|
|
|
// * 결제완료 알림톡
|
|
// * 결제완료 알림톡
|
|
|
// * @param customer - 고객 정보
|
|
// * @param customer - 고객 정보
|