jsshin 5 лет назад
Родитель
Сommit
d8793fed6c

+ 17 - 0
src/main/java/com/style24/admin/biz/service/TsaCustomerService.java

@@ -226,6 +226,23 @@ public class TsaCustomerService {
 		return customerDao.getCustomerContactList(custNo);
 		return customerDao.getCustomerContactList(custNo);
 	}
 	}
 
 
+	/**
+	 * 회원상세-회원접촉이력 생성
+	 *
+	 * @param custContactHst -고객정보
+	 * @return void
+	 * @author jsshin
+	 * @since 2021. 01. 25
+	 */
+	@Transactional("shopTxnManager")
+	public void createCustomerContactHistory(CustContactHst custContactHst) {
+		Integer userNo = TsaSession.getInfo().getUserNo();
+		custContactHst.setRegNo(userNo);
+		custContactHst.setUpdNo(userNo);
+		custContactHst.setSenderNo(userNo);
+		custContactHst.setReceiverNo(custContactHst.getCustNo());
+		coreCustomerService.createCustomerContactHistory(custContactHst);
+	}
 
 
 	/**
 	/**
 	 * 탈퇴회원 목록
 	 * 탈퇴회원 목록

+ 6 - 1
src/main/java/com/style24/admin/biz/service/TsaKakaoService.java

@@ -59,6 +59,8 @@ public class TsaKakaoService {
 			custContactHst.setContactContents("고객 임시비밀번호 발송");
 			custContactHst.setContactContents("고객 임시비밀번호 발송");
 			custContactHst.setReceiverNo(customer.getCustNo());
 			custContactHst.setReceiverNo(customer.getCustNo());
 			custContactHst.setSenderNo(userNo);
 			custContactHst.setSenderNo(userNo);
+			custContactHst.setRegNo(userNo);
+			custContactHst.setUpdNo(userNo);
 			coreCustomerService.createCustomerContactHistory(custContactHst);
 			coreCustomerService.createCustomerContactHistory(custContactHst);
 		} catch (Exception e) {
 		} catch (Exception e) {
 			log.error("error", e);
 			log.error("error", e);
@@ -86,12 +88,15 @@ public class TsaKakaoService {
 
 
 		try {
 		try {
 			// 고객접촉이력 정보
 			// 고객접촉이력 정보
+			Integer userNo = TsaSession.getInfo().getUserNo();
 			CustContactHst custContactHst = new CustContactHst();
 			CustContactHst custContactHst = new CustContactHst();
 			custContactHst.setContactType(TscConstants.ContactType.BASIC_LMS.value()); // 접촉유형:회원-기본LMS안내발송
 			custContactHst.setContactType(TscConstants.ContactType.BASIC_LMS.value()); // 접촉유형:회원-기본LMS안내발송
 			custContactHst.setContactMethod(TscConstants.ContactMethod.LMS.value()); // 접촉방법:LMS(공통코드G055)
 			custContactHst.setContactMethod(TscConstants.ContactMethod.LMS.value()); // 접촉방법:LMS(공통코드G055)
 			custContactHst.setContactContents("기본LMS안내발송");
 			custContactHst.setContactContents("기본LMS안내발송");
 			custContactHst.setReceiverNo(customer.getCustNo());
 			custContactHst.setReceiverNo(customer.getCustNo());
-			custContactHst.setSenderNo(TsaSession.getInfo().getUserNo());
+			custContactHst.setSenderNo(userNo);
+			custContactHst.setRegNo(userNo);
+			custContactHst.setUpdNo(userNo);
 			coreCustomerService.createCustomerContactHistory(custContactHst);
 			coreCustomerService.createCustomerContactHistory(custContactHst);
 		} catch (Exception e) {
 		} catch (Exception e) {
 			log.error("error", e);
 			log.error("error", e);

+ 3 - 4
src/main/java/com/style24/admin/biz/web/TsaCustomerController.java

@@ -779,16 +779,15 @@ public class TsaCustomerController extends TsaBaseController {
 	/**
 	/**
 	 * 회원상세-회원접촉이력 생성
 	 * 회원상세-회원접촉이력 생성
 	 *
 	 *
-	 * @param customer -고객정보
+	 * @param custContactHst -고객정보
 	 * @return GagaResponse
 	 * @return GagaResponse
 	 * @author jsshin
 	 * @author jsshin
 	 * @since 2021. 01. 21
 	 * @since 2021. 01. 21
 	 */
 	 */
 	@PostMapping("/contact/create")
 	@PostMapping("/contact/create")
 	@ResponseBody
 	@ResponseBody
-	public GagaResponse createCustomerContactHistory(@RequestBody Customer customer) {
-//		customer.setReceiverId(customer.getCustNo());
-//		customerService.createCustomerContactHistory(customer);
+	public GagaResponse createCustomerContactHistory(@RequestBody CustContactHst custContactHst) {
+		customerService.createCustomerContactHistory(custContactHst);
 		return super.ok(message.getMessage("SUCC_0001"));
 		return super.ok(message.getMessage("SUCC_0001"));
 	}
 	}