전용계좌 첫결제시 스미싱알림 처리
This commit is contained in:
parent
cee6094218
commit
761a305ae7
@ -19,6 +19,7 @@ import itn.com.cmm.service.EgovFileMngService;
|
||||
import itn.com.cmm.service.impl.FileManageDAO;
|
||||
import itn.let.fax.user.service.impl.FaxDAO;
|
||||
import itn.let.kakao.user.kakaoAt.service.KakaoAlimTalkService;
|
||||
import itn.let.mjo.mjocommon.MjonCommon;
|
||||
import itn.let.mjo.msgdata.service.MjonMsgDataService;
|
||||
import itn.let.mjo.pay.service.MjonPayService;
|
||||
import itn.let.mjo.pay.service.StVcVO;
|
||||
@ -26,6 +27,9 @@ import itn.let.mjo.payva.service.VacsAhstService;
|
||||
import itn.let.mjo.payva.service.VacsAhstVO;
|
||||
import itn.let.schdlr.service.SchdlrManageService;
|
||||
import itn.let.schdlr.service.SchdlrVO;
|
||||
import itn.let.sym.site.service.EgovSiteManagerService;
|
||||
import itn.let.uss.umt.service.EgovUserManageService;
|
||||
import itn.let.utl.user.service.MjonNoticeSendUtil;
|
||||
|
||||
@Service("SchdlrManageService")
|
||||
public class SchdlrManageServiceImpl extends EgovAbstractServiceImpl implements SchdlrManageService {
|
||||
@ -73,6 +77,21 @@ public class SchdlrManageServiceImpl extends EgovAbstractServiceImpl implements
|
||||
@Resource(name = "mjonPayService")
|
||||
private MjonPayService mjonPayService;
|
||||
|
||||
/** userManageService */
|
||||
@Resource(name = "userManageService")
|
||||
private EgovUserManageService userManageService;
|
||||
|
||||
/** 사이트 설정 */
|
||||
@Resource(name = "egovSiteManagerService")
|
||||
EgovSiteManagerService egovSiteManagerService;
|
||||
|
||||
/** 알림전송 Util */
|
||||
@Resource(name = "mjonNoticeSendUtil")
|
||||
private MjonNoticeSendUtil mjonNoticeSendUtil;
|
||||
|
||||
@Resource(name="MjonCommon")
|
||||
private MjonCommon mjonCommon;
|
||||
|
||||
@Resource(name = "faxDAO")
|
||||
public FaxDAO faxDao;
|
||||
|
||||
@ -343,6 +362,53 @@ public class SchdlrManageServiceImpl extends EgovAbstractServiceImpl implements
|
||||
//세틀뱅크 입금 내역 원장에 처리 완료 내용 입력해 주기
|
||||
vacsAhstService.updateVacsAhstCashComplete(temp);
|
||||
|
||||
/*
|
||||
try {
|
||||
String Userid = temp.getMberId();
|
||||
String mberNm = "";
|
||||
|
||||
// 대상 : 휴대폰결제, 즉시이체, 전용계좌
|
||||
// Step 1. 스미싱의심 지정 여부
|
||||
JoinSettingVO joinSettingVO = new JoinSettingVO();
|
||||
joinSettingVO = egovSiteManagerService.selectAdminNotiDetail();
|
||||
if (joinSettingVO != null && joinSettingVO.getSmishingNoti().equals("Y")) {
|
||||
// Step 1. 개인회원 여부 체크
|
||||
int isPersnalMemberCnt = egovSiteManagerService.selectPersnalMemberCnt(Userid);
|
||||
if (isPersnalMemberCnt == 1) {
|
||||
// Step 2. 첫결제 여부 체크
|
||||
int isFirstPayCnt = egovSiteManagerService.selectFirstPayCnt(Userid);
|
||||
if (isFirstPayCnt == 1) {
|
||||
// SMS 체크
|
||||
if (joinSettingVO != null && joinSettingVO.getSmsNoti().equals("Y")) {
|
||||
// 스미싱의심 SMS 알림전송
|
||||
mjonNoticeSendUtil.smishingSmsNoticeSend("스미싱의심/전용계좌 첫결제", Userid, mberNm);
|
||||
}
|
||||
|
||||
// SLACK 체크
|
||||
if (joinSettingVO != null && joinSettingVO.getSlackNoti().equals("Y")) {
|
||||
// Slack 메시지 발송(단순본문)
|
||||
String msg = "[문자온] 스미싱의심/전용계좌 첫결제 - " + mberNm +"("+ Userid + ")";
|
||||
mjonCommon.sendSimpleSlackMsg(msg);
|
||||
}
|
||||
|
||||
// 스미싱 의심회원으로 변경
|
||||
UserManageVO userManageVO = new UserManageVO();
|
||||
userManageVO.setSmishingYn("Y");
|
||||
userManageVO.setMberId(Userid);
|
||||
userManageService.updateOneUserSmishingYnNotAlert(userManageVO);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception e) {
|
||||
System.out.println("#############################################################");
|
||||
System.out.println("전용계좌 슬랙알림 & 스미싱의심 처리 Error");
|
||||
System.out.println("전용계좌 TrNo : " + temp.getTrNo());
|
||||
System.out.println("전용계좌 e.getMessage() : " + e.getMessage());
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -34,6 +34,7 @@ import itn.com.uss.olh.hpc.service.HackIpService;
|
||||
import itn.com.uss.olh.hpc.service.HackIpVO;
|
||||
import itn.let.lett.service.LetterVO;
|
||||
import itn.let.mjo.pay.service.MjonPayVO;
|
||||
import itn.let.schdlr.service.SchdlrManageService;
|
||||
import itn.let.uss.ion.cnt.service.CntManageVO;
|
||||
import itn.let.uss.ion.cnt.service.EgovCntManageService;
|
||||
|
||||
@ -46,6 +47,9 @@ public class ContentController{
|
||||
@Resource(name = "hackIpService")
|
||||
private HackIpService hackIpService;
|
||||
|
||||
@Resource(name = "SchdlrManageService")
|
||||
private SchdlrManageService schdlrManageService;
|
||||
|
||||
/*인사말*/
|
||||
@RequestMapping(value="/web/intro/intro.do")
|
||||
public String intro(@RequestParam Map<String, Object> commandMap, Model model) throws Exception {
|
||||
@ -661,4 +665,30 @@ public class ContentController{
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
// 전용계좌 스케줄러 실행
|
||||
@RequestMapping(value= {"/web/main/vacsAutoChargeAjax.do"})
|
||||
public ModelAndView vacsAutoCharge(HttpServletRequest request,
|
||||
ModelMap model) throws Exception{
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = true;
|
||||
String msg = "";
|
||||
|
||||
try {
|
||||
|
||||
schdlrManageService.vacsAutoCharge();
|
||||
|
||||
}
|
||||
catch(Exception e) {
|
||||
isSuccess = false;
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user