File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
package itn.let.mail.web;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import itn.let.mail.service.MailTemplateService;
import itn.let.utl.user.service.MjonNoticeSendUtil;
@Controller
public class MailTemplateController {
@Resource (name = "MailTemplateService")
private MailTemplateService mailTemplateService;
/** 알림전송 Util */
@Resource(name = "mjonNoticeSendUtil")
private MjonNoticeSendUtil mjonNoticeSendUtil;
// 휴면회원 메일발송
@RequestMapping("/mail/mailTmplSendMemberDormantAjax.do")
public ModelAndView mailTmplSendMemberDormant(
HttpServletRequest request
) throws Exception{
ModelAndView modelAndView = new ModelAndView();
modelAndView.setViewName("jsonView");
boolean isSuccess = true;
String msg = "";
try {
// 시스템 문자발송 테스트
String callTo = "01087872615";
String smsTxt = "시스템발송 테스트";
//mjonNoticeSendUtil.userSmsSendBySystem(callTo, smsTxt);
// 휴면회원 메일발송
//mailTemplateService.mailSendMemberDormant();
// 휴면회원 지정
mailTemplateService.setMemberDormantUpdate();
}
catch(Exception e) {
isSuccess = false;
msg = "에러메시지 : " + e.getMessage();
e.printStackTrace();
}
modelAndView.addObject("isSuccess", isSuccess);
modelAndView.addObject("msg", msg);
return modelAndView;
}
}