|
|
@@ -159,7 +159,7 @@ public class TscKakaotalkService {
|
|
|
* @since 2021. 5. 27
|
|
|
*/
|
|
|
@Transactional("shopTxnManager")
|
|
|
- public void sendGiftcardExpect(GiftCard giftcard, Integer senderNo) {
|
|
|
+ public void sendGiftcardExpectNotify(GiftCard giftcard, Integer senderNo) {
|
|
|
SsgDirectMessage dm = new SsgDirectMessage();
|
|
|
dm.setFuserid(String.valueOf(senderNo)); // 발송자NO
|
|
|
dm.setFdestine(giftcard.getCellPhnno());
|
|
|
@@ -168,9 +168,24 @@ public class TscKakaotalkService {
|
|
|
GagaMap replaceInfo = new GagaMap();
|
|
|
replaceInfo.setString("siteNm", siteNm);
|
|
|
replaceInfo.setString("custNm", giftcard.getCustNm());
|
|
|
- replaceInfo.setInt("rmGfcdAmt", giftcard.getRmGfcdAmt());
|
|
|
+ replaceInfo.setString("rmGfcdAmt", Integer.toString(giftcard.getRmGfcdAmt()));
|
|
|
replaceInfo.setString("useExpDate", giftcard.getUseExpDate());
|
|
|
kakaoSender.send(SsgKakaoSender.KakaoAnswerSq.GIFTCARD_EXTNC_EXPECT.value(), dm, replaceInfo);
|
|
|
+
|
|
|
+ try {
|
|
|
+ // 고객접촉이력 정보
|
|
|
+ CustContactHst custContactHst = new CustContactHst();
|
|
|
+ custContactHst.setContactType(TscConstants.ContactType.GIFTCARD_EXPECTED.value()); // 접촉유형:임시비밀번호발급(공통코드G054)
|
|
|
+ custContactHst.setContactMethod(TscConstants.ContactMethod.KAKAOTALK.value()); // 접촉방법:알림톡+문자(공통코드G055)
|
|
|
+ custContactHst.setContactContents("상품권소멸예정");
|
|
|
+ custContactHst.setReceiverNo(giftcard.getCustNo());
|
|
|
+ custContactHst.setSenderNo(senderNo);
|
|
|
+ custContactHst.setRegNo(senderNo);
|
|
|
+ coreCustomerService.createCustomerContactHistory(custContactHst);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("error", e);
|
|
|
+ // Do nothing
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|