전용계좌 첫결제시 스미싱알림 처리
@761a305ae78b5c1ca84d764b03c53757763eff67
--- src/main/java/itn/let/schdlr/service/impl/SchdlrManageServiceImpl.java
+++ src/main/java/itn/let/schdlr/service/impl/SchdlrManageServiceImpl.java
... | ... | @@ -19,6 +19,7 @@ |
| 19 | 19 |
import itn.com.cmm.service.impl.FileManageDAO; |
| 20 | 20 |
import itn.let.fax.user.service.impl.FaxDAO; |
| 21 | 21 |
import itn.let.kakao.user.kakaoAt.service.KakaoAlimTalkService; |
| 22 |
+import itn.let.mjo.mjocommon.MjonCommon; |
|
| 22 | 23 |
import itn.let.mjo.msgdata.service.MjonMsgDataService; |
| 23 | 24 |
import itn.let.mjo.pay.service.MjonPayService; |
| 24 | 25 |
import itn.let.mjo.pay.service.StVcVO; |
... | ... | @@ -26,6 +27,9 @@ |
| 26 | 27 |
import itn.let.mjo.payva.service.VacsAhstVO; |
| 27 | 28 |
import itn.let.schdlr.service.SchdlrManageService; |
| 28 | 29 |
import itn.let.schdlr.service.SchdlrVO; |
| 30 |
+import itn.let.sym.site.service.EgovSiteManagerService; |
|
| 31 |
+import itn.let.uss.umt.service.EgovUserManageService; |
|
| 32 |
+import itn.let.utl.user.service.MjonNoticeSendUtil; |
|
| 29 | 33 |
|
| 30 | 34 |
@Service("SchdlrManageService")
|
| 31 | 35 |
public class SchdlrManageServiceImpl extends EgovAbstractServiceImpl implements SchdlrManageService {
|
... | ... | @@ -73,6 +77,21 @@ |
| 73 | 77 |
@Resource(name = "mjonPayService") |
| 74 | 78 |
private MjonPayService mjonPayService; |
| 75 | 79 |
|
| 80 |
+ /** userManageService */ |
|
| 81 |
+ @Resource(name = "userManageService") |
|
| 82 |
+ private EgovUserManageService userManageService; |
|
| 83 |
+ |
|
| 84 |
+ /** 사이트 설정 */ |
|
| 85 |
+ @Resource(name = "egovSiteManagerService") |
|
| 86 |
+ EgovSiteManagerService egovSiteManagerService; |
|
| 87 |
+ |
|
| 88 |
+ /** 알림전송 Util */ |
|
| 89 |
+ @Resource(name = "mjonNoticeSendUtil") |
|
| 90 |
+ private MjonNoticeSendUtil mjonNoticeSendUtil; |
|
| 91 |
+ |
|
| 92 |
+ @Resource(name="MjonCommon") |
|
| 93 |
+ private MjonCommon mjonCommon; |
|
| 94 |
+ |
|
| 76 | 95 |
@Resource(name = "faxDAO") |
| 77 | 96 |
public FaxDAO faxDao; |
| 78 | 97 |
|
... | ... | @@ -343,6 +362,53 @@ |
| 343 | 362 |
//세틀뱅크 입금 내역 원장에 처리 완료 내용 입력해 주기 |
| 344 | 363 |
vacsAhstService.updateVacsAhstCashComplete(temp); |
| 345 | 364 |
|
| 365 |
+ /* |
|
| 366 |
+ try {
|
|
| 367 |
+ String Userid = temp.getMberId(); |
|
| 368 |
+ String mberNm = ""; |
|
| 369 |
+ |
|
| 370 |
+ // 대상 : 휴대폰결제, 즉시이체, 전용계좌 |
|
| 371 |
+ // Step 1. 스미싱의심 지정 여부 |
|
| 372 |
+ JoinSettingVO joinSettingVO = new JoinSettingVO(); |
|
| 373 |
+ joinSettingVO = egovSiteManagerService.selectAdminNotiDetail(); |
|
| 374 |
+ if (joinSettingVO != null && joinSettingVO.getSmishingNoti().equals("Y")) {
|
|
| 375 |
+ // Step 1. 개인회원 여부 체크 |
|
| 376 |
+ int isPersnalMemberCnt = egovSiteManagerService.selectPersnalMemberCnt(Userid); |
|
| 377 |
+ if (isPersnalMemberCnt == 1) {
|
|
| 378 |
+ // Step 2. 첫결제 여부 체크 |
|
| 379 |
+ int isFirstPayCnt = egovSiteManagerService.selectFirstPayCnt(Userid); |
|
| 380 |
+ if (isFirstPayCnt == 1) {
|
|
| 381 |
+ // SMS 체크 |
|
| 382 |
+ if (joinSettingVO != null && joinSettingVO.getSmsNoti().equals("Y")) {
|
|
| 383 |
+ // 스미싱의심 SMS 알림전송 |
|
| 384 |
+ mjonNoticeSendUtil.smishingSmsNoticeSend("스미싱의심/전용계좌 첫결제", Userid, mberNm);
|
|
| 385 |
+ } |
|
| 386 |
+ |
|
| 387 |
+ // SLACK 체크 |
|
| 388 |
+ if (joinSettingVO != null && joinSettingVO.getSlackNoti().equals("Y")) {
|
|
| 389 |
+ // Slack 메시지 발송(단순본문) |
|
| 390 |
+ String msg = "[문자온] 스미싱의심/전용계좌 첫결제 - " + mberNm +"("+ Userid + ")";
|
|
| 391 |
+ mjonCommon.sendSimpleSlackMsg(msg); |
|
| 392 |
+ } |
|
| 393 |
+ |
|
| 394 |
+ // 스미싱 의심회원으로 변경 |
|
| 395 |
+ UserManageVO userManageVO = new UserManageVO(); |
|
| 396 |
+ userManageVO.setSmishingYn("Y");
|
|
| 397 |
+ userManageVO.setMberId(Userid); |
|
| 398 |
+ userManageService.updateOneUserSmishingYnNotAlert(userManageVO); |
|
| 399 |
+ } |
|
| 400 |
+ } |
|
| 401 |
+ } |
|
| 402 |
+ |
|
| 403 |
+ } |
|
| 404 |
+ catch (Exception e) {
|
|
| 405 |
+ System.out.println("#############################################################");
|
|
| 406 |
+ System.out.println("전용계좌 슬랙알림 & 스미싱의심 처리 Error");
|
|
| 407 |
+ System.out.println("전용계좌 TrNo : " + temp.getTrNo());
|
|
| 408 |
+ System.out.println("전용계좌 e.getMessage() : " + e.getMessage());
|
|
| 409 |
+ } |
|
| 410 |
+ */ |
|
| 411 |
+ |
|
| 346 | 412 |
} |
| 347 | 413 |
|
| 348 | 414 |
} |
--- src/main/java/itn/web/ContentController.java
+++ src/main/java/itn/web/ContentController.java
... | ... | @@ -34,6 +34,7 @@ |
| 34 | 34 |
import itn.com.uss.olh.hpc.service.HackIpVO; |
| 35 | 35 |
import itn.let.lett.service.LetterVO; |
| 36 | 36 |
import itn.let.mjo.pay.service.MjonPayVO; |
| 37 |
+import itn.let.schdlr.service.SchdlrManageService; |
|
| 37 | 38 |
import itn.let.uss.ion.cnt.service.CntManageVO; |
| 38 | 39 |
import itn.let.uss.ion.cnt.service.EgovCntManageService; |
| 39 | 40 |
|
... | ... | @@ -45,6 +46,9 @@ |
| 45 | 46 |
|
| 46 | 47 |
@Resource(name = "hackIpService") |
| 47 | 48 |
private HackIpService hackIpService; |
| 49 |
+ |
|
| 50 |
+ @Resource(name = "SchdlrManageService") |
|
| 51 |
+ private SchdlrManageService schdlrManageService; |
|
| 48 | 52 |
|
| 49 | 53 |
/*인사말*/ |
| 50 | 54 |
@RequestMapping(value="/web/intro/intro.do") |
... | ... | @@ -661,4 +665,30 @@ |
| 661 | 665 |
return modelAndView; |
| 662 | 666 |
} |
| 663 | 667 |
|
| 668 |
+ // 전용계좌 스케줄러 실행 |
|
| 669 |
+ @RequestMapping(value= {"/web/main/vacsAutoChargeAjax.do"})
|
|
| 670 |
+ public ModelAndView vacsAutoCharge(HttpServletRequest request, |
|
| 671 |
+ ModelMap model) throws Exception{
|
|
| 672 |
+ |
|
| 673 |
+ ModelAndView modelAndView = new ModelAndView(); |
|
| 674 |
+ modelAndView.setViewName("jsonView");
|
|
| 675 |
+ |
|
| 676 |
+ boolean isSuccess = true; |
|
| 677 |
+ String msg = ""; |
|
| 678 |
+ |
|
| 679 |
+ try {
|
|
| 680 |
+ |
|
| 681 |
+ schdlrManageService.vacsAutoCharge(); |
|
| 682 |
+ |
|
| 683 |
+ } |
|
| 684 |
+ catch(Exception e) {
|
|
| 685 |
+ isSuccess = false; |
|
| 686 |
+ msg = e.getMessage(); |
|
| 687 |
+ } |
|
| 688 |
+ |
|
| 689 |
+ modelAndView.addObject("isSuccess", isSuccess);
|
|
| 690 |
+ modelAndView.addObject("msg", msg);
|
|
| 691 |
+ |
|
| 692 |
+ return modelAndView; |
|
| 693 |
+ } |
|
| 664 | 694 |
} |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?