2024-11-18 15:04 사용자 로그인시 핸드폰 번호 체크 쿼리 수정
@b3015c26c56bc88e14deb2ee15337d06a5378d42
--- src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml
... | ... | @@ -3721,6 +3721,37 @@ |
| 3721 | 3721 |
ORDER BY a.FRST_SEND_PNTTM DESC, a.SEND_ID DESC |
| 3722 | 3722 |
LIMIT 1 |
| 3723 | 3723 |
</select> |
| 3724 |
+ |
|
| 3725 |
+ <select id="mjonMsgDAO.selectSysMsgLogCheck_new" parameterClass="SendLogVO" resultClass="SendLogVO"> |
|
| 3726 |
+ SELECT a.SEND_ID AS sendId, |
|
| 3727 |
+ a.SEND_TYPE AS sendType, |
|
| 3728 |
+ a.FRST_SEND_INFO AS frstSendInfo, |
|
| 3729 |
+ a.RECEIVE AS receive, |
|
| 3730 |
+ a.FRST_SEND_PNTTM AS frstSendPnttm, |
|
| 3731 |
+ a.CHECK_NO AS checkNo, |
|
| 3732 |
+ a.CONTENTS AS contents |
|
| 3733 |
+ FROM mj_system_send a |
|
| 3734 |
+ , ( |
|
| 3735 |
+ |
|
| 3736 |
+ select mber_id, mbtlnum |
|
| 3737 |
+ from lettngnrlmber |
|
| 3738 |
+ where MBER_ID=#sendId# |
|
| 3739 |
+ union all |
|
| 3740 |
+ select mber_id, mbtlnum |
|
| 3741 |
+ from lettngnrlmber |
|
| 3742 |
+ where MBER_ID=#sendId# |
|
| 3743 |
+ |
|
| 3744 |
+ ) b |
|
| 3745 |
+ WHERE 1 =1 |
|
| 3746 |
+ and b.MBTLNUM=#receive# |
|
| 3747 |
+ and b.MBTLNUM=a.RECEIVE |
|
| 3748 |
+ and a.CHECK_NO=#checkNo# |
|
| 3749 |
+ |
|
| 3750 |
+ and DATE_FORMAT(a.FRST_SEND_PNTTM, '%Y%m%d%H%i%s') > DATE_FORMAT( date_add(now(),interval -300 second), '%Y%m%d%H%i%s') |
|
| 3751 |
+ |
|
| 3752 |
+ ORDER BY a.FRST_SEND_PNTTM DESC, a.SEND_ID DESC |
|
| 3753 |
+ LIMIT 1 |
|
| 3754 |
+ </select> |
|
| 3724 | 3755 |
|
| 3725 | 3756 |
<!-- 발신번호 등록 여부 조회 --> |
| 3726 | 3757 |
<select id="mjonMsgDAO.selectSendPhonNumCheck" parameterClass="mjonMsgVO" resultClass="int"> |
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?