2024-02-15 18:36 청소년 찾교 결과보고제출 SMS 요청 수정
This commit is contained in:
parent
437ed46e5e
commit
52e3bdc84b
@ -220,7 +220,10 @@ public class SndMngController {
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
//System.out.println("@@@@@@@ 문자전송 시작 ----------------------------------");
|
||||
System.out.println("@@@@@@@ 문자전송 시작 ----------------------------------");
|
||||
System.out.println(vEEduAplctVO.toString());
|
||||
System.out.println(vEEduAplctVO.getChk());
|
||||
|
||||
|
||||
//로그인 처리====================================
|
||||
//로그인 정보 가져오기
|
||||
@ -249,14 +252,19 @@ public class SndMngController {
|
||||
//String[] sendChk = {}; //발송정보체크용
|
||||
List<String> sendChk = new ArrayList<>();
|
||||
|
||||
System.out.println("aaa");
|
||||
VeSendMail sendMail = new VeSendMail();
|
||||
if("Z".equals(vEEduAplctVO.getSndFlag())) {
|
||||
System.out.println("aaab");
|
||||
emails = vEEduAplctVO.getEmail().split(",");
|
||||
System.out.println("aaac");
|
||||
}
|
||||
|
||||
for(int i=0; i<splitChk.length; i++) {
|
||||
System.out.println("aaad");
|
||||
if(!"".equals(splitChk[i])) {
|
||||
|
||||
System.out.println("aaae");
|
||||
String[] aplctChasi = splitChk[i].split("\\@");
|
||||
|
||||
//동일한 신청에 대한 메일 발송이 있었는지 확인 한다.===시작
|
||||
@ -269,10 +277,15 @@ public class SndMngController {
|
||||
sendChk.add(splitChk[i]);
|
||||
//동일한 신청에 대한 메일 발송이 있었는지 확인 한다.===끝
|
||||
|
||||
System.out.println("b_sendChk");
|
||||
System.out.println(b_sendChk);
|
||||
System.out.println(splitChk[i]);
|
||||
|
||||
if (b_sendChk) {//동일학교는 2번 발송하지 않는다.
|
||||
|
||||
|
||||
String snd_ord = sndGnrService.getNextStringId();
|
||||
System.out.println(snd_ord);
|
||||
vEEduAplctVO.setSndHstryOrd(snd_ord);
|
||||
vEEduAplctVO.setSndId(loginVO.getUniqId());
|
||||
vEEduAplctVO.setClphone(phones[i]);
|
||||
@ -280,6 +293,8 @@ public class SndMngController {
|
||||
vEEduAplctVO.setEduAplctOrd(aplctChasi[0]);
|
||||
vEEduAplctVO.setEduChasiOrd(aplctChasi[1]);
|
||||
|
||||
System.out.println(vEEduAplctVO.getSndFlag());
|
||||
|
||||
// returnMsg = smsOracleService.insertSmsSend(vEEduAplctVO);
|
||||
|
||||
//문자 발송 로그
|
||||
@ -320,9 +335,10 @@ public class SndMngController {
|
||||
modelAndView.addObject("result", "success");
|
||||
}
|
||||
|
||||
|
||||
System.out.println("aaaf");
|
||||
} else {
|
||||
//SMS
|
||||
System.out.println("aaag");
|
||||
String snd_ord = sndGnrService.getNextStringId();
|
||||
vEEduAplctVO.setSndHstryOrd(snd_ord);
|
||||
|
||||
@ -343,6 +359,9 @@ public class SndMngController {
|
||||
modelAndView.addObject("result", "success");
|
||||
}
|
||||
}
|
||||
|
||||
System.out.println("aaagh");
|
||||
|
||||
}catch(Exception ex) {
|
||||
//System.out.println("@@@@@@@ ex ----------------------------------");
|
||||
ex.printStackTrace();
|
||||
|
||||
@ -85,7 +85,7 @@
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
//sms 발송
|
||||
//sms 발송 - to 강사
|
||||
function fncSndSms(){
|
||||
|
||||
var chkLen = $(listForm).find("input[name=chk]:checked").length;
|
||||
@ -122,13 +122,36 @@
|
||||
|
||||
var p_smsMsg = "종료된 강의의 결과보고를 등록해주세요.";
|
||||
|
||||
|
||||
var chkLen = $(listForm).find("input[name=chk]:checked").length;
|
||||
|
||||
if(chkLen == 0){
|
||||
alert("선택된 항목이 없습니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
$('input:checkbox[name="chk"]:checked').each(function() {
|
||||
sendSms(
|
||||
$(this).data('instrphone'),
|
||||
p_smsMsg,
|
||||
$(this).val().split('@')[0],
|
||||
$(this).data('userid'),
|
||||
"C",
|
||||
"N"
|
||||
);
|
||||
});
|
||||
alert("발송되었습니다.");
|
||||
|
||||
/*
|
||||
fncContent(
|
||||
"${pageContext.request.contextPath}/kccadr/oprtn/pblc/smsSndAjax.do",
|
||||
"${pageContext.request.contextPath}/kccadr/oprtn/pblc/offeduSMSSndAjax.do",
|
||||
"10",
|
||||
p_smsMsg,
|
||||
chkAplctChasi,
|
||||
phones
|
||||
phones,
|
||||
"C"
|
||||
);
|
||||
*/
|
||||
}
|
||||
|
||||
//발송
|
||||
@ -487,6 +510,7 @@
|
||||
class="${list.atchFileId}"
|
||||
data-lctr="${list.userId}" value="${list.eduAplctOrd}@${list.eduChasiOrd}" data-phone="<c:out value='${list.clphone}' />" data-cnt="<c:out value='${list.cnt}' />"
|
||||
data-date="<c:out value='${list.eduHopeDt}' /> <c:out value='${list.strtTm}' /> ~ <c:out value='${list.endTm}' />"
|
||||
data-instrphone="<c:out value='${list.instrPhone}' />"
|
||||
data-email="<c:out value='${list.email}' />" data-chrgnm="<c:out value='${list.chrgNm}' />" data-userId="<c:out value='${list.userId}' />"
|
||||
data-educhasiord="<c:out value='${list.eduChasiOrd}' />" title="Check" type="checkbox"/>
|
||||
</td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user