mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 18:42:43 +09:00
발신번호 반려시 메일, 팝업 추가
This commit is contained in:
@@ -618,12 +618,6 @@ public class SendNumMgtService {
|
||||
|
||||
SendNumMgtMapper sendNumMgtMapper = sqlSessionMaster.getMapper(SendNumMgtMapper.class);
|
||||
|
||||
logger.debug("넘어오는 값 확인하기={}",updateApprReqDto);
|
||||
|
||||
String adminId = updateApprReqDto.getAdminId();
|
||||
|
||||
String userEmail = sendNumMgtMapper.selectUserEmailByAdminId(adminId);
|
||||
|
||||
Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
|
||||
UserDetails userDetails = (UserDetails) principal;
|
||||
String regId = userDetails.getUsername();
|
||||
@@ -657,12 +651,15 @@ public class SendNumMgtService {
|
||||
|
||||
//2. 반려 발신번호 리스트에 값이 있을 경우 메일을 보냄
|
||||
if(sndrNoList.size()>0) {
|
||||
// 3. 반려 발신번호 메일 대상 주소
|
||||
String adminId = updateApprReqDto.getAdminId();
|
||||
String userEmail = sendNumMgtMapper.selectUserEmailByAdminId(adminId);
|
||||
|
||||
//3. 발신번호 리스트 치환
|
||||
String SndrNoString = sndrNoList.toString();
|
||||
String re1 = SndrNoString.replace("[", "<br>");
|
||||
String re2 = re1.replace(", ","</br><br>");
|
||||
String re3 = re2.replace("]", "</br>");
|
||||
String SndrNoRe1 = SndrNoString.replace("[", "<br>");
|
||||
String SndrNoRe2 = SndrNoRe1.replace(", ","</br><br>");
|
||||
String SndrNoRe3 = SndrNoRe2.replace("]", "</br>");
|
||||
|
||||
// logger.debug("발신번호 리스트 스트링 ={}",re3);
|
||||
//try catch 처리하기
|
||||
@@ -675,7 +672,7 @@ public class SendNumMgtService {
|
||||
//3. 메일에 담을 내용 셋팅
|
||||
mailReqMap.put("applicationId", apiApplicationId);
|
||||
mailReqMap.put("authToken", apiAuthToken);
|
||||
mailReqMap.put("rejectListSndrNo", re3);
|
||||
mailReqMap.put("rejectListSndrNo", SndrNoRe3);
|
||||
mailReqMap.put("rejectHtml", updateApprReqDto.getMemo());
|
||||
//이메일 수신자 가져오는 쿼리
|
||||
mailReqMap.put("toEmail", userEmail);
|
||||
|
||||
Reference in New Issue
Block a user