문자예약 페이지 API / WEB 전송방식 조회
@23b4d250d61fcfbb6a2135651afd01c7f447fa86
--- src/main/java/itn/let/mjo/msg/service/MjonMsgService.java
+++ src/main/java/itn/let/mjo/msg/service/MjonMsgService.java
... | ... | @@ -224,4 +224,8 @@ |
| 224 | 224 |
|
| 225 | 225 |
//문자 발송 횟수 |
| 226 | 226 |
List<MjonMsgVO> selectMsgSendTotCnt(MjonMsgVO mjonMsgVO) throws Exception; |
| 227 |
+ |
|
| 228 |
+ |
|
| 229 |
+ MjonMsgVO selectApiSttstList(MjonMsgVO mjonMsgVO) throws Exception; |
|
| 230 |
+ |
|
| 227 | 231 |
} |
--- src/main/java/itn/let/mjo/msg/service/MjonMsgVO.java
+++ src/main/java/itn/let/mjo/msg/service/MjonMsgVO.java
... | ... | @@ -177,7 +177,95 @@ |
| 177 | 177 |
private int rateSuccessCount; // 홈페이지 전송 성공율 |
| 178 | 178 |
private int rateApiSuccessCount; // API 전송 성공율 |
| 179 | 179 |
|
| 180 |
+ private int smsGroupSCntSum; // sms 성공(건) |
|
| 181 |
+ private int smsTotSPriceSum; // sms 성공(금액) |
|
| 182 |
+ private int smsGroupFWCntSum; // sms 실패대기(건) |
|
| 183 |
+ private int smsTotFWPriceSum; // sms 실패대기(금액) |
|
| 180 | 184 |
|
| 185 |
+ private int lmsGroupSCntSum; // lms 성공(건) |
|
| 186 |
+ private int lmsTotSPriceSum; // lms 성공(금액) |
|
| 187 |
+ private int lmsGroupFWCntSum; // lms 실패대기(건) |
|
| 188 |
+ private int lmsTotFWPriceSum; // lms 실패대기(금액) |
|
| 189 |
+ |
|
| 190 |
+ private int mmsGroupSCntSum; // mms 성공(건) |
|
| 191 |
+ private int mmsTotSPriceSum; // mms 성공(금액) |
|
| 192 |
+ private int mmsGroupFWCntSum; // mms 실패대기(건) |
|
| 193 |
+ private int mmsTotFWPriceSum; // mms 실패대기(금액) |
|
| 194 |
+ |
|
| 195 |
+ |
|
| 196 |
+ |
|
| 197 |
+ public int getSmsGroupSCntSum() {
|
|
| 198 |
+ return smsGroupSCntSum; |
|
| 199 |
+ } |
|
| 200 |
+ public void setSmsGroupSCntSum(int smsGroupSCntSum) {
|
|
| 201 |
+ this.smsGroupSCntSum = smsGroupSCntSum; |
|
| 202 |
+ } |
|
| 203 |
+ public int getSmsTotSPriceSum() {
|
|
| 204 |
+ return smsTotSPriceSum; |
|
| 205 |
+ } |
|
| 206 |
+ public void setSmsTotSPriceSum(int smsTotSPriceSum) {
|
|
| 207 |
+ this.smsTotSPriceSum = smsTotSPriceSum; |
|
| 208 |
+ } |
|
| 209 |
+ public int getSmsGroupFWCntSum() {
|
|
| 210 |
+ return smsGroupFWCntSum; |
|
| 211 |
+ } |
|
| 212 |
+ public void setSmsGroupFWCntSum(int smsGroupFWCntSum) {
|
|
| 213 |
+ this.smsGroupFWCntSum = smsGroupFWCntSum; |
|
| 214 |
+ } |
|
| 215 |
+ public int getSmsTotFWPriceSum() {
|
|
| 216 |
+ return smsTotFWPriceSum; |
|
| 217 |
+ } |
|
| 218 |
+ public void setSmsTotFWPriceSum(int smsTotFWPriceSum) {
|
|
| 219 |
+ this.smsTotFWPriceSum = smsTotFWPriceSum; |
|
| 220 |
+ } |
|
| 221 |
+ public int getLmsGroupSCntSum() {
|
|
| 222 |
+ return lmsGroupSCntSum; |
|
| 223 |
+ } |
|
| 224 |
+ public void setLmsGroupSCntSum(int lmsGroupSCntSum) {
|
|
| 225 |
+ this.lmsGroupSCntSum = lmsGroupSCntSum; |
|
| 226 |
+ } |
|
| 227 |
+ public int getLmsTotSPriceSum() {
|
|
| 228 |
+ return lmsTotSPriceSum; |
|
| 229 |
+ } |
|
| 230 |
+ public void setLmsTotSPriceSum(int lmsTotSPriceSum) {
|
|
| 231 |
+ this.lmsTotSPriceSum = lmsTotSPriceSum; |
|
| 232 |
+ } |
|
| 233 |
+ public int getLmsGroupFWCntSum() {
|
|
| 234 |
+ return lmsGroupFWCntSum; |
|
| 235 |
+ } |
|
| 236 |
+ public void setLmsGroupFWCntSum(int lmsGroupFWCntSum) {
|
|
| 237 |
+ this.lmsGroupFWCntSum = lmsGroupFWCntSum; |
|
| 238 |
+ } |
|
| 239 |
+ public int getLmsTotFWPriceSum() {
|
|
| 240 |
+ return lmsTotFWPriceSum; |
|
| 241 |
+ } |
|
| 242 |
+ public void setLmsTotFWPriceSum(int lmsTotFWPriceSum) {
|
|
| 243 |
+ this.lmsTotFWPriceSum = lmsTotFWPriceSum; |
|
| 244 |
+ } |
|
| 245 |
+ public int getMmsGroupSCntSum() {
|
|
| 246 |
+ return mmsGroupSCntSum; |
|
| 247 |
+ } |
|
| 248 |
+ public void setMmsGroupSCntSum(int mmsGroupSCntSum) {
|
|
| 249 |
+ this.mmsGroupSCntSum = mmsGroupSCntSum; |
|
| 250 |
+ } |
|
| 251 |
+ public int getMmsTotSPriceSum() {
|
|
| 252 |
+ return mmsTotSPriceSum; |
|
| 253 |
+ } |
|
| 254 |
+ public void setMmsTotSPriceSum(int mmsTotSPriceSum) {
|
|
| 255 |
+ this.mmsTotSPriceSum = mmsTotSPriceSum; |
|
| 256 |
+ } |
|
| 257 |
+ public int getMmsGroupFWCntSum() {
|
|
| 258 |
+ return mmsGroupFWCntSum; |
|
| 259 |
+ } |
|
| 260 |
+ public void setMmsGroupFWCntSum(int mmsGroupFWCntSum) {
|
|
| 261 |
+ this.mmsGroupFWCntSum = mmsGroupFWCntSum; |
|
| 262 |
+ } |
|
| 263 |
+ public int getMmsTotFWPriceSum() {
|
|
| 264 |
+ return mmsTotFWPriceSum; |
|
| 265 |
+ } |
|
| 266 |
+ public void setMmsTotFWPriceSum(int mmsTotFWPriceSum) {
|
|
| 267 |
+ this.mmsTotFWPriceSum = mmsTotFWPriceSum; |
|
| 268 |
+ } |
|
| 181 | 269 |
public int getRateSuccessCount() {
|
| 182 | 270 |
return rateSuccessCount; |
| 183 | 271 |
} |
--- src/main/java/itn/let/mjo/msg/service/impl/MjonMsgDAO.java
+++ src/main/java/itn/let/mjo/msg/service/impl/MjonMsgDAO.java
... | ... | @@ -495,4 +495,8 @@ |
| 495 | 495 |
return (List<MjonMsgVO>) list("mjonMsgDAO.selectMsgSendTotCnt", mjonMsgVO);
|
| 496 | 496 |
} |
| 497 | 497 |
|
| 498 |
+ public MjonMsgVO selectApiSttstList(MjonMsgVO mjonMsgVO) throws Exception{
|
|
| 499 |
+ return (MjonMsgVO)select("mjonMsgDAO.selectApiSttstList", mjonMsgVO);
|
|
| 500 |
+ } |
|
| 501 |
+ |
|
| 498 | 502 |
} |
--- src/main/java/itn/let/mjo/msg/service/impl/MjonMsgServiceImpl.java
+++ src/main/java/itn/let/mjo/msg/service/impl/MjonMsgServiceImpl.java
... | ... | @@ -1147,4 +1147,9 @@ |
| 1147 | 1147 |
|
| 1148 | 1148 |
return resultSts; |
| 1149 | 1149 |
} |
| 1150 |
+ |
|
| 1151 |
+ @Override |
|
| 1152 |
+ public MjonMsgVO selectApiSttstList(MjonMsgVO mjonMsgVO) throws Exception {
|
|
| 1153 |
+ return mjonMsgDAO.selectApiSttstList(mjonMsgVO); |
|
| 1154 |
+ } |
|
| 1150 | 1155 |
} |
--- src/main/java/itn/let/uss/umt/web/EgovUserManageController.java
+++ src/main/java/itn/let/uss/umt/web/EgovUserManageController.java
... | ... | @@ -1743,50 +1743,39 @@ |
| 1743 | 1743 |
//searchVO 원본 문자 타입 및 파일 갯수 저장해 놓기 |
| 1744 | 1744 |
String msgType = searchVO.getMsgType(); |
| 1745 | 1745 |
String fileCnt = searchVO.getFileCnt(); |
| 1746 |
+ String sendKind = searchVO.getSendKind(); |
|
| 1746 | 1747 |
|
| 1747 | 1748 |
//전체 리스트 불러오기 |
| 1748 | 1749 |
List<MjonMsgVO> resultList = new ArrayList<MjonMsgVO>(); |
| 1749 | 1750 |
searchVO.setMsgType("");
|
| 1750 | 1751 |
//resultList = mjonMsgService.selectUserMsgDataListByMbrId(searchVO); |
| 1751 | 1752 |
resultList = mjonMsgService.selectUserMsgDataListByMbrId2(searchVO); |
| 1752 |
- model.addAttribute("resultList", resultList);
|
|
| 1753 |
- model.addAttribute("mberSttus", mberSttus); //이용자 상태값 전달
|
|
| 1753 |
+ model.addAttribute("resultList", resultList);
|
|
| 1754 |
+ model.addAttribute("mberSttus", mberSttus); //이용자 상태값 전달
|
|
| 1754 | 1755 |
|
| 1755 |
- //종합 리스트 정보 불러오기 |
|
| 1756 |
- |
|
| 1757 |
- //단문 리스트 정보 불러오기 |
|
| 1758 |
- List<MjonMsgVO> resultSmsList = new ArrayList<MjonMsgVO>(); |
|
| 1759 |
- searchVO.setMsgType("4");
|
|
| 1760 |
- searchVO.setFileCnt("");
|
|
| 1761 |
- resultSmsList = mjonMsgService.selectUserMsgDataTotInfoListByMbrId(searchVO); |
|
| 1762 |
- model.addAttribute("resultSmsList", resultSmsList);
|
|
| 1763 |
- |
|
| 1764 |
- //장문 리스트 정보 불러오기 |
|
| 1765 |
- List<MjonMsgVO> resultLmsList = new ArrayList<MjonMsgVO>(); |
|
| 1766 |
- searchVO.setMsgType("6");
|
|
| 1767 |
- searchVO.setFileCnt("");
|
|
| 1768 |
- resultLmsList = mjonMsgService.selectUserMsgDataTotInfoListByMbrId(searchVO); |
|
| 1769 |
- model.addAttribute("resultLmsList", resultLmsList);
|
|
| 1770 |
- |
|
| 1771 |
- //그림 리스트 정보 불러오기 |
|
| 1772 |
- List<MjonMsgVO> resultMmsList = new ArrayList<MjonMsgVO>(); |
|
| 1773 |
- searchVO.setMsgType("6");
|
|
| 1774 |
- searchVO.setFileCnt("0");
|
|
| 1775 |
- resultMmsList = mjonMsgService.selectUserMsgDataTotInfoListByMbrId(searchVO); |
|
| 1776 |
- model.addAttribute("resultMmsList", resultMmsList);
|
|
| 1777 |
- |
|
| 1778 |
- //searchVO 데이터 원복 시키기 |
|
| 1779 |
- searchVO.setMsgType(msgType); |
|
| 1780 |
- searchVO.setFileCnt(fileCnt); |
|
| 1781 |
- |
|
| 1782 |
- //문자발송 실패 결과 코드정보 리스트 불러오기 |
|
| 1783 |
- MjonMsgResultCodeVO mjonMsgResultCodeVO = new MjonMsgResultCodeVO(); |
|
| 1784 |
- List<MjonMsgResultCodeVO> resultMsgCodeList = mjonMsgService.selectMsgResultCodeAllList(mjonMsgResultCodeVO); |
|
| 1785 |
- |
|
| 1786 |
- model.addAttribute("resultMsgCodeList", resultMsgCodeList);
|
|
| 1787 |
- |
|
| 1788 |
- paginationInfo.setTotalRecordCount(resultList.size() > 0 ? ((MjonMsgVO)resultList.get(0)).getTotCnt() : 0); |
|
| 1789 |
- model.addAttribute("paginationInfo", paginationInfo);
|
|
| 1756 |
+ //종합 리스트 정보 불러오기 |
|
| 1757 |
+ |
|
| 1758 |
+ //단문 리스트 정보 불러오기 |
|
| 1759 |
+ /*List<MjonMsgVO> resultSmsList = new ArrayList<MjonMsgVO>(); |
|
| 1760 |
+ searchVO.setMsgType("4");
|
|
| 1761 |
+ searchVO.setFileCnt("");
|
|
| 1762 |
+ resultSmsList = mjonMsgService.selectUserMsgDataTotInfoListByMbrId(searchVO); |
|
| 1763 |
+ model.addAttribute("resultSmsList", resultSmsList);
|
|
| 1764 |
+ |
|
| 1765 |
+ //장문 리스트 정보 불러오기 |
|
| 1766 |
+ List<MjonMsgVO> resultLmsList = new ArrayList<MjonMsgVO>(); |
|
| 1767 |
+ searchVO.setMsgType("6");
|
|
| 1768 |
+ searchVO.setFileCnt("");
|
|
| 1769 |
+ resultLmsList = mjonMsgService.selectUserMsgDataTotInfoListByMbrId(searchVO); |
|
| 1770 |
+ model.addAttribute("resultLmsList", resultLmsList);
|
|
| 1771 |
+ |
|
| 1772 |
+ //그림 리스트 정보 불러오기 |
|
| 1773 |
+ List<MjonMsgVO> resultMmsList = new ArrayList<MjonMsgVO>(); |
|
| 1774 |
+ searchVO.setMsgType("6");
|
|
| 1775 |
+ searchVO.setFileCnt("0");
|
|
| 1776 |
+ resultMmsList = mjonMsgService.selectUserMsgDataTotInfoListByMbrId(searchVO); |
|
| 1777 |
+ model.addAttribute("resultMmsList", resultMmsList);
|
|
| 1778 |
+ |
|
| 1790 | 1779 |
|
| 1791 | 1780 |
String msgGroupSCntSum = "0"; //정상수신 총 건수 합계 |
| 1792 | 1781 |
String totSPriceSum = "0"; //정상수신 총 금액 합계 |
... | ... | @@ -1869,11 +1858,45 @@ |
| 1869 | 1858 |
model.addAttribute("totMmsSPriceSum", totMmsSPriceSum);
|
| 1870 | 1859 |
model.addAttribute("msgMmsGroupFWCntSum", msgMmsGroupFWCntSum);
|
| 1871 | 1860 |
model.addAttribute("totMmsFWPriceSum", totMmsFWPriceSum);
|
| 1861 |
+ */ |
|
| 1872 | 1862 |
|
| 1863 |
+ List<MjonMsgVO> sendSttstList = new ArrayList<MjonMsgVO>(); |
|
| 1864 |
+ |
|
| 1865 |
+ searchVO.setSendKind("");
|
|
| 1866 |
+ MjonMsgVO allSttstInfo = mjonMsgService.selectApiSttstList(searchVO); |
|
| 1867 |
+ allSttstInfo.setSendKind("");
|
|
| 1868 |
+ |
|
| 1869 |
+ searchVO.setSendKind("H");
|
|
| 1870 |
+ MjonMsgVO hompageSttstInfo = mjonMsgService.selectApiSttstList(searchVO); |
|
| 1871 |
+ hompageSttstInfo.setSendKind("H");
|
|
| 1872 |
+ |
|
| 1873 |
+ searchVO.setSendKind("A");
|
|
| 1874 |
+ MjonMsgVO apiSttstInfo = mjonMsgService.selectApiSttstList(searchVO); |
|
| 1875 |
+ apiSttstInfo.setSendKind("A");
|
|
| 1876 |
+ |
|
| 1877 |
+ sendSttstList.add(allSttstInfo); |
|
| 1878 |
+ sendSttstList.add(hompageSttstInfo); |
|
| 1879 |
+ sendSttstList.add(apiSttstInfo); |
|
| 1880 |
+ model.addAttribute("sendSttstList", sendSttstList);
|
|
| 1881 |
+ |
|
| 1882 |
+ //searchVO 데이터 원복 시키기 |
|
| 1883 |
+ searchVO.setMsgType(msgType); |
|
| 1884 |
+ searchVO.setFileCnt(fileCnt); |
|
| 1885 |
+ searchVO.setSendKind(sendKind); |
|
| 1886 |
+ |
|
| 1887 |
+ |
|
| 1888 |
+ //문자발송 실패 결과 코드정보 리스트 불러오기 |
|
| 1889 |
+ MjonMsgResultCodeVO mjonMsgResultCodeVO = new MjonMsgResultCodeVO(); |
|
| 1890 |
+ List<MjonMsgResultCodeVO> resultMsgCodeList = mjonMsgService.selectMsgResultCodeAllList(mjonMsgResultCodeVO); |
|
| 1891 |
+ |
|
| 1892 |
+ model.addAttribute("resultMsgCodeList", resultMsgCodeList);
|
|
| 1893 |
+ |
|
| 1894 |
+ paginationInfo.setTotalRecordCount(resultList.size() > 0 ? ((MjonMsgVO)resultList.get(0)).getTotCnt() : 0); |
|
| 1895 |
+ model.addAttribute("paginationInfo", paginationInfo);
|
|
| 1873 | 1896 |
|
| 1874 | 1897 |
return "cmm/uss/umt/EgovGnrlUserSelectMsgDataListPop"; |
| 1875 | 1898 |
} |
| 1876 |
- |
|
| 1899 |
+ |
|
| 1877 | 1900 |
/** |
| 1878 | 1901 |
* @Method Name : EgovGnrlselectedUserKakaoDataListAjax |
| 1879 | 1902 |
* @작성일 : 2023. 3. 6. |
--- src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml
... | ... | @@ -271,6 +271,7 @@ |
| 271 | 271 |
, M.userNm |
| 272 | 272 |
, M.adminSmsNoticeYn |
| 273 | 273 |
, M.callFrom |
| 274 |
+ , M.sendKind |
|
| 274 | 275 |
, M.smsTxt |
| 275 | 276 |
, M.subject |
| 276 | 277 |
, M.msgType |
... | ... | @@ -387,6 +388,7 @@ |
| 387 | 388 |
, LMB.MBER_NM AS userNm |
| 388 | 389 |
, LMB.ADMIN_SMS_NOTICE_YN AS adminSmsNoticeYn |
| 389 | 390 |
, A.CALL_FROM AS callFrom |
| 391 |
+ , A.SEND_KIND AS sendKind |
|
| 390 | 392 |
, A.SMS_TXT AS smsTxt |
| 391 | 393 |
, A.SUBJECT AS subject |
| 392 | 394 |
, A.MSG_TYPE AS msgType |
... | ... | @@ -432,16 +434,24 @@ |
| 432 | 434 |
) D ON A.MSG_TYPE = D.CODE /** 메세지타입 */ |
| 433 | 435 |
WHERE 1 = 1 |
| 434 | 436 |
AND A.MSG_TYPE IN (4, 6) |
| 437 |
+ <isNotEmpty property="sendKind"> |
|
| 438 |
+ <isEqual property="sendKind" compareValue="H"> |
|
| 439 |
+ AND A.SEND_KIND = 'H' |
|
| 440 |
+ </isEqual> |
|
| 441 |
+ <isEqual property="sendKind" compareValue="A"> |
|
| 442 |
+ AND A.SEND_KIND = 'A' |
|
| 443 |
+ </isEqual> |
|
| 444 |
+ </isNotEmpty> |
|
| 435 | 445 |
<isNotEmpty property="searchKeyword"> |
| 436 | 446 |
<isEqual property="searchCondition" compareValue="" > |
| 437 |
- AND ( |
|
| 438 |
- USER_ID LIKE CONCAT ('%', #searchKeyword#,'%') OR
|
|
| 439 |
- A.CALL_FROM LIKE CONCAT('%', #searchKeyword#, '%') OR
|
|
| 440 |
- SMS_TXT LIKE CONCAT ('%', #searchKeyword#,'%')
|
|
| 441 |
- ) |
|
| 442 |
- </isEqual> |
|
| 443 |
- |
|
| 444 |
- <isEqual property="searchCondition" compareValue="1"> |
|
| 447 |
+ AND ( |
|
| 448 |
+ USER_ID LIKE CONCAT ('%', #searchKeyword#,'%')
|
|
| 449 |
+ OR A.CALL_FROM LIKE CONCAT('%', #searchKeyword#, '%')
|
|
| 450 |
+ OR SMS_TXT LIKE CONCAT ('%', #searchKeyword#,'%')
|
|
| 451 |
+ ) |
|
| 452 |
+ </isEqual> |
|
| 453 |
+ |
|
| 454 |
+ <isEqual property="searchCondition" compareValue="1"> |
|
| 445 | 455 |
AND A.USER_ID LIKE CONCAT('%', #searchKeyword#, '%')
|
| 446 | 456 |
</isEqual> |
| 447 | 457 |
|
... | ... | @@ -484,9 +494,9 @@ |
| 484 | 494 |
AND RESERVE_C_YN = #reserveCYn# |
| 485 | 495 |
</isNotEmpty> |
| 486 | 496 |
|
| 487 |
- <isNotEmpty property="searchAdminSmsNoticeYn"> |
|
| 488 |
- AND ADMIN_SMS_NOTICE_YN = #searchAdminSmsNoticeYn# |
|
| 489 |
- </isNotEmpty> |
|
| 497 |
+ <isNotEmpty property="searchAdminSmsNoticeYn"> |
|
| 498 |
+ AND ADMIN_SMS_NOTICE_YN = #searchAdminSmsNoticeYn# |
|
| 499 |
+ </isNotEmpty> |
|
| 490 | 500 |
|
| 491 | 501 |
<isNotEmpty property="searchCampaignYn"> |
| 492 | 502 |
AND MSG_KIND = 'C' |
... | ... | @@ -6825,5 +6835,420 @@ |
| 6825 | 6835 |
AND MSG_GROUP_ID = #msgGroupId# |
| 6826 | 6836 |
</update> |
| 6827 | 6837 |
|
| 6838 |
+ <select id="mjonMsgDAO.selectApiSttstList" parameterClass="mjonMsgVO" resultClass="mjonMsgVO"> |
|
| 6839 |
+ SELECT |
|
| 6840 |
+ IFNULL(COUNT(msgGroupId), 0) AS totCnt /** 전체 건수 */ |
|
| 6841 |
+ , IFNULL(SUM(smsGroupSCnt), 0) AS smsGroupSCntSum /** 발송 성공 전체 건수 */ |
|
| 6842 |
+ , IFNULL(FLOOR(SUM(smsTotSPrice)), 0) AS smsTotSPriceSum /** 성공 발송금액 합계 소수점 이하 버림*/ |
|
| 6843 |
+ , IFNULL(SUM(smsGroupFWCnt), 0) AS smsGroupFWCntSum /** 발송 실패대기 전체 건수 */ |
|
| 6844 |
+ , IFNULL(FLOOR(SUM(smsTotFWPrice)), 0) AS smsTotFWPriceSum /** 실패대기 발송금액 합계 소수점 이하 버림*/ |
|
| 6845 |
+ , IFNULL(SUM(lmsGroupSCnt), 0) AS lmsGroupSCntSum /** 발송 성공 전체 건수 */ |
|
| 6846 |
+ , IFNULL(FLOOR(SUM(lmsTotSPrice)), 0) AS lmsTotSPriceSum /** 성공 발송금액 합계 소수점 이하 버림*/ |
|
| 6847 |
+ , IFNULL(SUM(lmsGroupFWCnt), 0) AS lmsGroupFWCntSum /** 발송 실패대기 전체 건수 */ |
|
| 6848 |
+ , IFNULL(FLOOR(SUM(lmsTotFWPrice)), 0) AS lmsTotFWPriceSum /** 실패대기 발송금액 합계 소수점 이하 버림*/ |
|
| 6849 |
+ , IFNULL(SUM(mmsGroupSCnt), 0) AS mmsGroupSCntSum /** 발송 성공 전체 건수 */ |
|
| 6850 |
+ , IFNULL(FLOOR(SUM(mmsTotSPrice)), 0) AS mmsTotSPriceSum /** 성공 발송금액 합계 소수점 이하 버림*/ |
|
| 6851 |
+ , IFNULL(SUM(mmsGroupFWCnt), 0) AS mmsGroupFWCntSum /** 발송 실패대기 전체 건수 */ |
|
| 6852 |
+ , IFNULL(FLOOR(SUM(mmsTotFWPrice)), 0) AS mmsTotFWPriceSum /** 실패대기 발송금액 합계 소수점 이하 버림*/ |
|
| 6853 |
+ FROM |
|
| 6854 |
+ (SELECT |
|
| 6855 |
+ COUNT(MSG_GROUP_ID) AS smsGroupSCnt |
|
| 6856 |
+ , COUNT(MSG_GROUP_ID) * EACH_PRICE AS smsTotSPrice |
|
| 6857 |
+ , '0' AS smsGroupFWCnt |
|
| 6858 |
+ , '0' AS smsTotFWPrice |
|
| 6859 |
+ , '0' AS lmsGroupSCnt |
|
| 6860 |
+ , '0' AS lmsTotSPrice |
|
| 6861 |
+ , '0' AS lmsGroupFWCnt |
|
| 6862 |
+ , '0' AS lmsTotFWPrice |
|
| 6863 |
+ , '0' AS mmsGroupSCnt |
|
| 6864 |
+ , '0' AS mmsTotSPrice |
|
| 6865 |
+ , '0' AS mmsGroupFWCnt |
|
| 6866 |
+ , '0' AS mmsTotFWPrice |
|
| 6867 |
+ , MSG_GROUP_ID AS msgGroupId |
|
| 6868 |
+ , MSG_TYPE AS msgType |
|
| 6869 |
+ , resultCodeTxt |
|
| 6870 |
+ FROM |
|
| 6871 |
+ (SELECT |
|
| 6872 |
+ MGD.MSG_GROUP_ID |
|
| 6873 |
+ , MD.MSG_TYPE |
|
| 6874 |
+ , MGD.EACH_PRICE |
|
| 6875 |
+ , (<include refid="MjonMsgSentDAO.selectAgentResultQuery_MD"/>) AS resultCodeTxt |
|
| 6876 |
+ FROM |
|
| 6877 |
+ MJ_MSG_GROUP_DATA MGD |
|
| 6878 |
+ LEFT JOIN MJ_MSG_DATA MD |
|
| 6879 |
+ ON MD.MSG_GROUP_ID = MGD.MSG_GROUP_ID |
|
| 6880 |
+ LEFT JOIN (SELECT CODE_NM ,CODE ,CODE_DC FROM LETTCCMMNDETAILCODE WHERE USE_AT = 'Y' AND CODE_ID = 'ITN019')B |
|
| 6881 |
+ ON MD.AGENT_CODE = B.CODE |
|
| 6882 |
+ WHERE 1=1 |
|
| 6883 |
+ AND MGD.USER_ID = #userId# |
|
| 6884 |
+ AND MGD.MSG_TYPE IN (4,6) |
|
| 6885 |
+ AND MGD.MSG_TYPE = '4' |
|
| 6886 |
+ AND MGD.FILE_CNT = 0 |
|
| 6887 |
+ <isNotEmpty property="sendKind"> |
|
| 6888 |
+ <isEqual property="sendKind" compareValue="H"> |
|
| 6889 |
+ AND MGD.SEND_KIND = 'H' |
|
| 6890 |
+ </isEqual> |
|
| 6891 |
+ <isEqual property="sendKind" compareValue="A"> |
|
| 6892 |
+ AND MGD.SEND_KIND = 'A' |
|
| 6893 |
+ </isEqual> |
|
| 6894 |
+ </isNotEmpty> |
|
| 6895 |
+ AND DATE_FORMAT(MGD.REQ_DATE, '%Y-%m-%d') BETWEEN #ntceBgnde# AND #ntceEndde# |
|
| 6896 |
+ <isNotEmpty property="reserveType"> |
|
| 6897 |
+ <isEqual property="reserveType" compareValue="D"> |
|
| 6898 |
+ <![CDATA[ |
|
| 6899 |
+ AND MGD.REQ_DATE <= now() |
|
| 6900 |
+ AND MGD.RESERVE_C_YN = 'N' |
|
| 6901 |
+ ]]> |
|
| 6902 |
+ </isEqual> |
|
| 6903 |
+ <isEqual property="reserveType" compareValue="R"> |
|
| 6904 |
+ <![CDATA[ |
|
| 6905 |
+ AND MGD.REQ_DATE > now() |
|
| 6906 |
+ AND MGD.RESERVE_YN = 'Y' |
|
| 6907 |
+ ]]> |
|
| 6908 |
+ </isEqual> |
|
| 6909 |
+ </isNotEmpty> |
|
| 6910 |
+ )IN1 |
|
| 6911 |
+ WHERE 1=1 |
|
| 6912 |
+ <![CDATA[ AND IN1.resultCodeTxt = 'S' ]]> |
|
| 6913 |
+ GROUP BY MSG_GROUP_ID |
|
| 6914 |
+ |
|
| 6915 |
+ UNION |
|
| 6916 |
+ |
|
| 6917 |
+ /*실패 건 조회*/ |
|
| 6918 |
+ SELECT |
|
| 6919 |
+ '0' AS smsGroupSCnt |
|
| 6920 |
+ , '0' AS smsTotSPrice |
|
| 6921 |
+ , COUNT(MSG_GROUP_ID) AS smsGroupFWCnt |
|
| 6922 |
+ , COUNT(MSG_GROUP_ID) * EACH_PRICE AS smsTotFWPrice |
|
| 6923 |
+ , '0' AS lmsGroupSCnt |
|
| 6924 |
+ , '0' AS lmsTotSPrice |
|
| 6925 |
+ , '0' AS lmsGroupFWCnt |
|
| 6926 |
+ , '0' AS lmsTotFWPrice |
|
| 6927 |
+ , '0' AS mmsGroupSCnt |
|
| 6928 |
+ , '0' AS mmsTotSPrice |
|
| 6929 |
+ , '0' AS mmsGroupFWCnt |
|
| 6930 |
+ , '0' AS mmsTotFWPrice |
|
| 6931 |
+ , MSG_GROUP_ID AS msgGroupId |
|
| 6932 |
+ , MSG_TYPE AS msgType |
|
| 6933 |
+ , resultCodeTxt |
|
| 6934 |
+ FROM |
|
| 6935 |
+ (SELECT |
|
| 6936 |
+ MGD.MSG_GROUP_ID |
|
| 6937 |
+ ,MD.MSG_TYPE |
|
| 6938 |
+ , MGD.EACH_PRICE |
|
| 6939 |
+ , (<include refid="MjonMsgSentDAO.selectAgentResultQuery_MD"/>) AS resultCodeTxt |
|
| 6940 |
+ FROM |
|
| 6941 |
+ MJ_MSG_GROUP_DATA MGD |
|
| 6942 |
+ LEFT JOIN MJ_MSG_DATA MD |
|
| 6943 |
+ ON MD.MSG_GROUP_ID = MGD.MSG_GROUP_ID |
|
| 6944 |
+ LEFT JOIN ( SELECT CODE_NM, CODE, CODE_DC FROM LETTCCMMNDETAILCODE WHERE USE_AT = 'Y' AND CODE_ID = 'ITN019')B |
|
| 6945 |
+ ON MD.AGENT_CODE = B.CODE |
|
| 6946 |
+ LEFT OUTER JOIN MJ_SPAM_MEMBER_INFO MSI |
|
| 6947 |
+ ON MGD.MSG_GROUP_ID = MSI.MSG_GROUP_ID |
|
| 6948 |
+ WHERE 1=1 |
|
| 6949 |
+ AND MGD.USER_ID = #userId# |
|
| 6950 |
+ AND MGD.MSG_TYPE IN (4,6) |
|
| 6951 |
+ AND MGD.MSG_TYPE = '4' |
|
| 6952 |
+ AND MGD.FILE_CNT = 0 |
|
| 6953 |
+ <isNotEmpty property="sendKind"> |
|
| 6954 |
+ <isEqual property="sendKind" compareValue="H"> |
|
| 6955 |
+ AND MGD.SEND_KIND = 'H' |
|
| 6956 |
+ </isEqual> |
|
| 6957 |
+ <isEqual property="sendKind" compareValue="A"> |
|
| 6958 |
+ AND MGD.SEND_KIND = 'A' |
|
| 6959 |
+ </isEqual> |
|
| 6960 |
+ </isNotEmpty> |
|
| 6961 |
+ AND DATE_FORMAT(MGD.REQ_DATE, '%Y-%m-%d') BETWEEN #ntceBgnde# AND #ntceEndde# |
|
| 6962 |
+ <isNotEmpty property="reserveType"> |
|
| 6963 |
+ <isEqual property="reserveType" compareValue="D"> |
|
| 6964 |
+ <![CDATA[ |
|
| 6965 |
+ AND MGD.REQ_DATE <= now() |
|
| 6966 |
+ AND MGD.RESERVE_C_YN = 'N' |
|
| 6967 |
+ ]]> |
|
| 6968 |
+ </isEqual> |
|
| 6969 |
+ <isEqual property="reserveType" compareValue="R"> |
|
| 6970 |
+ <![CDATA[ |
|
| 6971 |
+ AND MGD.REQ_DATE > now() |
|
| 6972 |
+ AND MGD.RESERVE_YN = 'Y' |
|
| 6973 |
+ ]]> |
|
| 6974 |
+ </isEqual> |
|
| 6975 |
+ </isNotEmpty> |
|
| 6976 |
+ )IN1 |
|
| 6977 |
+ WHERE 1=1 |
|
| 6978 |
+ <![CDATA[ AND IN1.resultCodeTxt <> 'S' ]]> |
|
| 6979 |
+ GROUP BY MSG_GROUP_ID |
|
| 6980 |
+ |
|
| 6981 |
+ UNION |
|
| 6982 |
+ |
|
| 6983 |
+ SELECT |
|
| 6984 |
+ '0' AS smsGroupSCnt |
|
| 6985 |
+ , '0' AS smsTotSPrice |
|
| 6986 |
+ , '0' AS smsGroupFWCnt |
|
| 6987 |
+ , '0' AS smsTotFWPrice |
|
| 6988 |
+ |
|
| 6989 |
+ , COUNT(MSG_GROUP_ID) AS lmsGroupSCnt |
|
| 6990 |
+ , COUNT(MSG_GROUP_ID) * EACH_PRICE AS lmsTotSPrice |
|
| 6991 |
+ , '0' AS lmsGroupFWCnt |
|
| 6992 |
+ , '0' AS lmsTotFWPrice |
|
| 6993 |
+ |
|
| 6994 |
+ , '0' AS mmsGroupSCnt |
|
| 6995 |
+ , '0' AS mmsTotSPrice |
|
| 6996 |
+ , '0' AS mmsGroupFWCnt |
|
| 6997 |
+ , '0' AS mmsTotFWPrice |
|
| 6998 |
+ |
|
| 6999 |
+ , MSG_GROUP_ID AS msgGroupId |
|
| 7000 |
+ , MSG_TYPE AS msgType |
|
| 7001 |
+ , resultCodeTxt |
|
| 7002 |
+ FROM |
|
| 7003 |
+ (SELECT |
|
| 7004 |
+ MGD.MSG_GROUP_ID |
|
| 7005 |
+ , MD.MSG_TYPE |
|
| 7006 |
+ , MGD.EACH_PRICE |
|
| 7007 |
+ , (<include refid="MjonMsgSentDAO.selectAgentResultQuery_MD"/>) AS resultCodeTxt |
|
| 7008 |
+ FROM |
|
| 7009 |
+ MJ_MSG_GROUP_DATA MGD |
|
| 7010 |
+ LEFT JOIN MJ_MSG_DATA MD |
|
| 7011 |
+ ON MD.MSG_GROUP_ID = MGD.MSG_GROUP_ID |
|
| 7012 |
+ LEFT JOIN (SELECT CODE_NM ,CODE ,CODE_DC FROM LETTCCMMNDETAILCODE WHERE USE_AT = 'Y' AND CODE_ID = 'ITN019')B |
|
| 7013 |
+ ON MD.AGENT_CODE = B.CODE |
|
| 7014 |
+ WHERE 1=1 |
|
| 7015 |
+ AND MGD.USER_ID = #userId# |
|
| 7016 |
+ AND MGD.MSG_TYPE IN (4,6) |
|
| 7017 |
+ AND MGD.MSG_TYPE = '6' |
|
| 7018 |
+ AND MGD.FILE_CNT = 0 |
|
| 7019 |
+ <isNotEmpty property="sendKind"> |
|
| 7020 |
+ <isEqual property="sendKind" compareValue="H"> |
|
| 7021 |
+ AND MGD.SEND_KIND = 'H' |
|
| 7022 |
+ </isEqual> |
|
| 7023 |
+ <isEqual property="sendKind" compareValue="A"> |
|
| 7024 |
+ AND MGD.SEND_KIND = 'A' |
|
| 7025 |
+ </isEqual> |
|
| 7026 |
+ </isNotEmpty> |
|
| 7027 |
+ AND DATE_FORMAT(MGD.REQ_DATE, '%Y-%m-%d') BETWEEN #ntceBgnde# AND #ntceEndde# |
|
| 7028 |
+ <isNotEmpty property="reserveType"> |
|
| 7029 |
+ <isEqual property="reserveType" compareValue="D"> |
|
| 7030 |
+ <![CDATA[ |
|
| 7031 |
+ AND MGD.REQ_DATE <= now() |
|
| 7032 |
+ AND MGD.RESERVE_C_YN = 'N' |
|
| 7033 |
+ ]]> |
|
| 7034 |
+ </isEqual> |
|
| 7035 |
+ <isEqual property="reserveType" compareValue="R"> |
|
| 7036 |
+ <![CDATA[ |
|
| 7037 |
+ AND MGD.REQ_DATE > now() |
|
| 7038 |
+ AND MGD.RESERVE_YN = 'Y' |
|
| 7039 |
+ ]]> |
|
| 7040 |
+ </isEqual> |
|
| 7041 |
+ </isNotEmpty> |
|
| 7042 |
+ )IN1 |
|
| 7043 |
+ WHERE 1=1 |
|
| 7044 |
+ <![CDATA[ AND IN1.resultCodeTxt = 'S' ]]> |
|
| 7045 |
+ GROUP BY MSG_GROUP_ID |
|
| 7046 |
+ |
|
| 7047 |
+ UNION |
|
| 7048 |
+ |
|
| 7049 |
+ /*실패 건 조회*/ |
|
| 7050 |
+ SELECT |
|
| 7051 |
+ '0' AS smsGroupSCnt |
|
| 7052 |
+ , '0' AS smsTotSPrice |
|
| 7053 |
+ , '0' AS smsGroupFWCnt |
|
| 7054 |
+ , '0' AS smsTotFWPrice |
|
| 7055 |
+ |
|
| 7056 |
+ , '0' AS lmsGroupSCnt |
|
| 7057 |
+ , '0' AS lmsTotSPrice |
|
| 7058 |
+ , COUNT(MSG_GROUP_ID) AS lmsGroupFWCnt |
|
| 7059 |
+ , COUNT(MSG_GROUP_ID) * EACH_PRICE AS lmsTotFWPrice |
|
| 7060 |
+ |
|
| 7061 |
+ , '0' AS mmsGroupSCnt |
|
| 7062 |
+ , '0' AS mmsTotSPrice |
|
| 7063 |
+ , '0' AS mmsGroupFWCnt |
|
| 7064 |
+ , '0' AS mmsTotFWPrice |
|
| 7065 |
+ |
|
| 7066 |
+ , MSG_GROUP_ID AS msgGroupId |
|
| 7067 |
+ , MSG_TYPE AS msgType |
|
| 7068 |
+ , resultCodeTxt |
|
| 7069 |
+ FROM |
|
| 7070 |
+ (SELECT |
|
| 7071 |
+ MGD.MSG_GROUP_ID |
|
| 7072 |
+ , MD.MSG_TYPE |
|
| 7073 |
+ , MGD.EACH_PRICE |
|
| 7074 |
+ , (<include refid="MjonMsgSentDAO.selectAgentResultQuery_MD"/>) AS resultCodeTxt |
|
| 7075 |
+ FROM |
|
| 7076 |
+ MJ_MSG_GROUP_DATA MGD |
|
| 7077 |
+ LEFT JOIN MJ_MSG_DATA MD |
|
| 7078 |
+ ON MD.MSG_GROUP_ID = MGD.MSG_GROUP_ID |
|
| 7079 |
+ LEFT JOIN ( SELECT CODE_NM, CODE, CODE_DC FROM LETTCCMMNDETAILCODE WHERE USE_AT = 'Y' AND CODE_ID = 'ITN019')B |
|
| 7080 |
+ ON MD.AGENT_CODE = B.CODE |
|
| 7081 |
+ LEFT OUTER JOIN MJ_SPAM_MEMBER_INFO MSI |
|
| 7082 |
+ ON MGD.MSG_GROUP_ID = MSI.MSG_GROUP_ID |
|
| 7083 |
+ WHERE 1=1 |
|
| 7084 |
+ AND MGD.USER_ID = #userId# |
|
| 7085 |
+ AND MGD.MSG_TYPE IN (4,6) |
|
| 7086 |
+ AND MGD.MSG_TYPE = '6' |
|
| 7087 |
+ AND MGD.FILE_CNT = 0 |
|
| 7088 |
+ <isNotEmpty property="sendKind"> |
|
| 7089 |
+ <isEqual property="sendKind" compareValue="H"> |
|
| 7090 |
+ AND MGD.SEND_KIND = 'H' |
|
| 7091 |
+ </isEqual> |
|
| 7092 |
+ <isEqual property="sendKind" compareValue="A"> |
|
| 7093 |
+ AND MGD.SEND_KIND = 'A' |
|
| 7094 |
+ </isEqual> |
|
| 7095 |
+ </isNotEmpty> |
|
| 7096 |
+ AND DATE_FORMAT(MGD.REQ_DATE, '%Y-%m-%d') BETWEEN #ntceBgnde# AND #ntceEndde# |
|
| 7097 |
+ <isNotEmpty property="reserveType"> |
|
| 7098 |
+ <isEqual property="reserveType" compareValue="D"> |
|
| 7099 |
+ <![CDATA[ |
|
| 7100 |
+ AND MGD.REQ_DATE <= now() |
|
| 7101 |
+ AND MGD.RESERVE_C_YN = 'N' |
|
| 7102 |
+ ]]> |
|
| 7103 |
+ </isEqual> |
|
| 7104 |
+ <isEqual property="reserveType" compareValue="R"> |
|
| 7105 |
+ <![CDATA[ |
|
| 7106 |
+ AND MGD.REQ_DATE > now() |
|
| 7107 |
+ AND MGD.RESERVE_YN = 'Y' |
|
| 7108 |
+ ]]> |
|
| 7109 |
+ </isEqual> |
|
| 7110 |
+ </isNotEmpty> |
|
| 7111 |
+ )IN1 |
|
| 7112 |
+ WHERE 1=1 |
|
| 7113 |
+ <![CDATA[ AND IN1.resultCodeTxt <> 'S' ]]> |
|
| 7114 |
+ GROUP BY MSG_GROUP_ID |
|
| 7115 |
+ |
|
| 7116 |
+ UNION |
|
| 7117 |
+ |
|
| 7118 |
+ SELECT |
|
| 7119 |
+ '0' AS smsGroupSCnt |
|
| 7120 |
+ , '0' AS smsTotSPrice |
|
| 7121 |
+ , '0' AS smsGroupFWCnt |
|
| 7122 |
+ , '0' AS smsTotFWPrice |
|
| 7123 |
+ |
|
| 7124 |
+ , '0' AS lmsGroupSCnt |
|
| 7125 |
+ , '0' AS lmsTotSPrice |
|
| 7126 |
+ , '0' AS lmsGroupFWCnt |
|
| 7127 |
+ , '0' AS lmsTotFWPrice |
|
| 7128 |
+ |
|
| 7129 |
+ , COUNT(MSG_GROUP_ID) AS mmsGroupSCnt |
|
| 7130 |
+ , COUNT(MSG_GROUP_ID) * EACH_PRICE AS mmsTotSPrice |
|
| 7131 |
+ , '0' AS mmsGroupFWCnt |
|
| 7132 |
+ , '0' AS mmsTotFWPrice |
|
| 7133 |
+ |
|
| 7134 |
+ , MSG_GROUP_ID AS msgGroupId |
|
| 7135 |
+ , MSG_TYPE AS msgType |
|
| 7136 |
+ , resultCodeTxt |
|
| 7137 |
+ FROM |
|
| 7138 |
+ (SELECT |
|
| 7139 |
+ MGD.MSG_GROUP_ID |
|
| 7140 |
+ , MD.MSG_TYPE |
|
| 7141 |
+ , MGD.EACH_PRICE |
|
| 7142 |
+ , (<include refid="MjonMsgSentDAO.selectAgentResultQuery_MD"/>) AS resultCodeTxt |
|
| 7143 |
+ FROM |
|
| 7144 |
+ MJ_MSG_GROUP_DATA MGD |
|
| 7145 |
+ LEFT JOIN MJ_MSG_DATA MD |
|
| 7146 |
+ ON MD.MSG_GROUP_ID = MGD.MSG_GROUP_ID |
|
| 7147 |
+ LEFT JOIN (SELECT CODE_NM ,CODE ,CODE_DC FROM LETTCCMMNDETAILCODE WHERE USE_AT = 'Y' AND CODE_ID = 'ITN019') B |
|
| 7148 |
+ ON MD.AGENT_CODE = B.CODE |
|
| 7149 |
+ WHERE 1=1 |
|
| 7150 |
+ AND MGD.USER_ID = #userId# |
|
| 7151 |
+ AND MGD.MSG_TYPE IN (4,6) |
|
| 7152 |
+ AND MGD.MSG_TYPE = '6' |
|
| 7153 |
+ AND MGD.FILE_CNT > 0 |
|
| 7154 |
+ <isNotEmpty property="sendKind"> |
|
| 7155 |
+ <isEqual property="sendKind" compareValue="H"> |
|
| 7156 |
+ AND MGD.SEND_KIND = 'H' |
|
| 7157 |
+ </isEqual> |
|
| 7158 |
+ <isEqual property="sendKind" compareValue="A"> |
|
| 7159 |
+ AND MGD.SEND_KIND = 'A' |
|
| 7160 |
+ </isEqual> |
|
| 7161 |
+ </isNotEmpty> |
|
| 7162 |
+ AND DATE_FORMAT(MGD.REQ_DATE, '%Y-%m-%d') BETWEEN #ntceBgnde# AND #ntceEndde# |
|
| 7163 |
+ <isNotEmpty property="reserveType"> |
|
| 7164 |
+ <isEqual property="reserveType" compareValue="D"> |
|
| 7165 |
+ <![CDATA[ |
|
| 7166 |
+ AND MGD.REQ_DATE <= now() |
|
| 7167 |
+ AND MGD.RESERVE_C_YN = 'N' |
|
| 7168 |
+ ]]> |
|
| 7169 |
+ </isEqual> |
|
| 7170 |
+ <isEqual property="reserveType" compareValue="R"> |
|
| 7171 |
+ <![CDATA[ |
|
| 7172 |
+ AND MGD.REQ_DATE > now() |
|
| 7173 |
+ AND MGD.RESERVE_YN = 'Y' |
|
| 7174 |
+ ]]> |
|
| 7175 |
+ </isEqual> |
|
| 7176 |
+ </isNotEmpty> |
|
| 7177 |
+ )IN1 |
|
| 7178 |
+ WHERE 1=1 |
|
| 7179 |
+ <![CDATA[ AND IN1.resultCodeTxt = 'S' ]]> |
|
| 7180 |
+ GROUP BY MSG_GROUP_ID |
|
| 7181 |
+ |
|
| 7182 |
+ UNION |
|
| 7183 |
+ |
|
| 7184 |
+ /*실패 건 조회*/ |
|
| 7185 |
+ SELECT |
|
| 7186 |
+ '0' AS smsGroupSCnt |
|
| 7187 |
+ , '0' AS smsTotSPrice |
|
| 7188 |
+ , '0' AS smsGroupFWCnt |
|
| 7189 |
+ , '0' AS smsTotFWPrice |
|
| 7190 |
+ |
|
| 7191 |
+ , '0' AS lmsGroupSCnt |
|
| 7192 |
+ , '0' AS lmsTotSPrice |
|
| 7193 |
+ , '0' AS lmsGroupFWCnt |
|
| 7194 |
+ , '0' AS lmsTotFWPrice |
|
| 7195 |
+ |
|
| 7196 |
+ , '0' AS mmsGroupSCnt |
|
| 7197 |
+ , '0' AS mmsTotSPrice |
|
| 7198 |
+ , COUNT(MSG_GROUP_ID) AS mmsGroupFWCnt |
|
| 7199 |
+ , COUNT(MSG_GROUP_ID) * EACH_PRICE AS mmsTotFWPrice |
|
| 7200 |
+ |
|
| 7201 |
+ , MSG_GROUP_ID AS msgGroupId |
|
| 7202 |
+ , MSG_TYPE AS msgType |
|
| 7203 |
+ ,resultCodeTxt |
|
| 7204 |
+ FROM |
|
| 7205 |
+ (SELECT |
|
| 7206 |
+ MGD.MSG_GROUP_ID |
|
| 7207 |
+ , MD.MSG_TYPE |
|
| 7208 |
+ , MGD.EACH_PRICE |
|
| 7209 |
+ , (<include refid="MjonMsgSentDAO.selectAgentResultQuery_MD"/>) AS resultCodeTxt |
|
| 7210 |
+ FROM |
|
| 7211 |
+ MJ_MSG_GROUP_DATA MGD |
|
| 7212 |
+ LEFT JOIN MJ_MSG_DATA MD |
|
| 7213 |
+ ON MD.MSG_GROUP_ID = MGD.MSG_GROUP_ID |
|
| 7214 |
+ LEFT JOIN (SELECT CODE_NM ,CODE ,CODE_DC FROM LETTCCMMNDETAILCODE WHERE USE_AT = 'Y' AND CODE_ID = 'ITN019')B |
|
| 7215 |
+ ON MD.AGENT_CODE = B.CODE |
|
| 7216 |
+ LEFT OUTER JOIN MJ_SPAM_MEMBER_INFO MSI |
|
| 7217 |
+ ON MGD.MSG_GROUP_ID = MSI.MSG_GROUP_ID |
|
| 7218 |
+ WHERE 1=1 |
|
| 7219 |
+ AND MGD.USER_ID = #userId# |
|
| 7220 |
+ AND MGD.MSG_TYPE IN (4, 6) |
|
| 7221 |
+ AND MGD.MSG_TYPE = '6' |
|
| 7222 |
+ AND MGD.FILE_CNT > 0 |
|
| 7223 |
+ <isNotEmpty property="sendKind"> |
|
| 7224 |
+ <isEqual property="sendKind" compareValue="H"> |
|
| 7225 |
+ AND MGD.SEND_KIND = 'H' |
|
| 7226 |
+ </isEqual> |
|
| 7227 |
+ <isEqual property="sendKind" compareValue="A"> |
|
| 7228 |
+ AND MGD.SEND_KIND = 'A' |
|
| 7229 |
+ </isEqual> |
|
| 7230 |
+ </isNotEmpty> |
|
| 7231 |
+ AND DATE_FORMAT(MGD.REQ_DATE, '%Y-%m-%d') BETWEEN #ntceBgnde# AND #ntceEndde# |
|
| 7232 |
+ <isNotEmpty property="reserveType"> |
|
| 7233 |
+ <isEqual property="reserveType" compareValue="D"> |
|
| 7234 |
+ <![CDATA[ |
|
| 7235 |
+ AND MGD.REQ_DATE <= now() |
|
| 7236 |
+ AND MGD.RESERVE_C_YN = 'N' |
|
| 7237 |
+ ]]> |
|
| 7238 |
+ </isEqual> |
|
| 7239 |
+ <isEqual property="reserveType" compareValue="R"> |
|
| 7240 |
+ <![CDATA[ |
|
| 7241 |
+ AND MGD.REQ_DATE > now() |
|
| 7242 |
+ AND MGD.RESERVE_YN = 'Y' |
|
| 7243 |
+ ]]> |
|
| 7244 |
+ </isEqual> |
|
| 7245 |
+ </isNotEmpty> |
|
| 7246 |
+ )IN1 |
|
| 7247 |
+ WHERE 1=1 |
|
| 7248 |
+ <![CDATA[ AND IN1.resultCodeTxt <> 'S' ]]> |
|
| 7249 |
+ GROUP BY MSG_GROUP_ID |
|
| 7250 |
+ )FN1 |
|
| 7251 |
+ ORDER BY msgGroupId DESC |
|
| 7252 |
+ </select> |
|
| 6828 | 7253 |
</sqlMap> |
| 6829 | 7254 |
|
--- src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovGnrlUserSelectMsgDataListPop.jsp
+++ src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovGnrlUserSelectMsgDataListPop.jsp
... | ... | @@ -392,61 +392,71 @@ |
| 392 | 392 |
</tr> |
| 393 | 393 |
</thead> |
| 394 | 394 |
<tbody> |
| 395 |
+ <c:forEach var="sendSttstInfo" items="${sendSttstList}" varStatus="status">
|
|
| 395 | 396 |
<tr> |
| 396 | 397 |
<td> |
| 397 |
- 전체 |
|
| 398 |
+ <c:choose> |
|
| 399 |
+ <c:when test="${sendSttstInfo.sendKind eq 'A'}">
|
|
| 400 |
+ API |
|
| 401 |
+ </c:when> |
|
| 402 |
+ <c:when test="${sendSttstInfo.sendKind eq 'H'}">
|
|
| 403 |
+ WEB |
|
| 404 |
+ </c:when> |
|
| 405 |
+ <c:otherwise> |
|
| 406 |
+ 전체 |
|
| 407 |
+ </c:otherwise> |
|
| 408 |
+ </c:choose> |
|
| 398 | 409 |
</td> |
| 399 | 410 |
<td> |
| 400 |
- <span class="tType4 c_456ded fwBold"> |
|
| 401 |
- <fmt:formatNumber value="${msgSmsGroupSCntSum}" pattern="#,###" />
|
|
| 402 |
- </span> |
|
| 411 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.smsGroupSCntSum}" pattern="#,###" /></span>
|
|
| 403 | 412 |
</td> |
| 404 | 413 |
<td> |
| 405 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${totSmsSPriceSum}" pattern="#,###" /></span>
|
|
| 414 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.smsTotSPriceSum}" pattern="#,###" /></span>
|
|
| 406 | 415 |
</td> |
| 407 | 416 |
<td> |
| 408 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${msgSmsGroupFWCntSum}" pattern="#,###" /></span>
|
|
| 417 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.smsGroupFWCntSum}" pattern="#,###" /></span>
|
|
| 409 | 418 |
</td> |
| 410 | 419 |
<td> |
| 411 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${totSmsFWPriceSum}" pattern="#,###" /></span>
|
|
| 420 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.smsTotFWPriceSum}" pattern="#,###" /></span>
|
|
| 412 | 421 |
</td> |
| 413 | 422 |
<td> |
| 414 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${msgLmsGroupSCntSum}" pattern="#,###" /></span>
|
|
| 423 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.lmsGroupSCntSum}" pattern="#,###" /></span>
|
|
| 415 | 424 |
</td> |
| 416 | 425 |
<td> |
| 417 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${totLmsSPriceSum}" pattern="#,###" /></span>
|
|
| 426 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.lmsTotSPriceSum}" pattern="#,###" /></span>
|
|
| 418 | 427 |
</td> |
| 419 | 428 |
<td> |
| 420 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${msgLmsGroupFWCntSum}" pattern="#,###" /></span>
|
|
| 429 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.lmsGroupFWCntSum}" pattern="#,###" /></span>
|
|
| 421 | 430 |
</td> |
| 422 | 431 |
<td> |
| 423 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${totLmsFWPriceSum}" pattern="#,###" /></span>
|
|
| 432 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.lmsTotFWPriceSum}" pattern="#,###" /></span>
|
|
| 424 | 433 |
</td> |
| 425 | 434 |
<td> |
| 426 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${msgMmsGroupSCntSum}" pattern="#,###" /></span>
|
|
| 435 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.mmsGroupSCntSum}" pattern="#,###" /></span>
|
|
| 427 | 436 |
</td> |
| 428 | 437 |
<td> |
| 429 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${totMmsSPriceSum}" pattern="#,###" /></span>
|
|
| 438 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.mmsTotSPriceSum}" pattern="#,###" /></span>
|
|
| 430 | 439 |
</td> |
| 431 | 440 |
<td> |
| 432 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${msgMmsGroupFWCntSum}" pattern="#,###" /></span>
|
|
| 441 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.mmsGroupFWCntSum}" pattern="#,###" /></span>
|
|
| 433 | 442 |
</td> |
| 434 | 443 |
<td> |
| 435 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${totMmsFWPriceSum}" pattern="#,###" /></span>
|
|
| 444 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.mmsTotFWPriceSum}" pattern="#,###" /></span>
|
|
| 436 | 445 |
</td> |
| 437 | 446 |
<td> |
| 438 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${msgGroupSCntSum}" pattern="#,###" /></span>
|
|
| 447 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.smsTotSPriceSum}" pattern="#,###" /></span>
|
|
| 439 | 448 |
</td> |
| 440 | 449 |
<td> |
| 441 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${totSPriceSum}" pattern="#,###" /></span>
|
|
| 450 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.smsTotSPriceSum}" pattern="#,###" /></span>
|
|
| 442 | 451 |
</td> |
| 443 | 452 |
<td> |
| 444 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${msgGroupFWCntSum}" pattern="#,###" /></span>
|
|
| 453 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.smsTotSPriceSum}" pattern="#,###" /></span>
|
|
| 445 | 454 |
</td> |
| 446 | 455 |
<td> |
| 447 |
- <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${totFWPriceSum}" pattern="#,###" /></span>
|
|
| 456 |
+ <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${sendSttstInfo.smsTotSPriceSum}" pattern="#,###" /></span>
|
|
| 448 | 457 |
</td> |
| 449 | 458 |
</tr> |
| 459 |
+ </c:forEach> |
|
| 450 | 460 |
</tbody> |
| 451 | 461 |
</table> |
| 452 | 462 |
</div> |
... | ... | @@ -650,7 +660,7 @@ |
| 650 | 660 |
API |
| 651 | 661 |
</c:when> |
| 652 | 662 |
<c:when test="${result.sendKind eq 'H'}">
|
| 653 |
- 홈페이지 |
|
| 663 |
+ WEB |
|
| 654 | 664 |
</c:when> |
| 655 | 665 |
</c:choose> |
| 656 | 666 |
</td> |
--- src/main/webapp/WEB-INF/jsp/uss/ion/msg/ReserveNumberList.jsp
+++ src/main/webapp/WEB-INF/jsp/uss/ion/msg/ReserveNumberList.jsp
... | ... | @@ -360,7 +360,11 @@ |
| 360 | 360 |
<option value="Y" <c:if test="${searchVO.searchAdminSmsNoticeYn == 'Y'}">selected="selected"</c:if>>온(On)</option>
|
| 361 | 361 |
<option value="N" <c:if test="${searchVO.searchAdminSmsNoticeYn == 'N'}">selected="selected"</c:if>>오프(Off)</option>
|
| 362 | 362 |
</select> |
| 363 |
- |
|
| 363 |
+ <select id="sendKind" name="sendKind" onchange="fn_search();"> |
|
| 364 |
+ <option value=""<c:if test="${searchVO.sendKind eq ''}">selected="selected"</c:if>>발송방식 전체</option>
|
|
| 365 |
+ <option value="H"<c:if test="${searchVO.sendKind eq 'H'}">selected="selected"</c:if>>WEB</option>
|
|
| 366 |
+ <option value="A"<c:if test="${searchVO.sendKind eq 'A'}">selected="selected"</c:if>>API</option>
|
|
| 367 |
+ </select> |
|
| 364 | 368 |
<input id="searchKeyword" name="searchKeyword" class="recentSearch" type="text" value="<c:out value='${searchVO.searchKeyword}'/>" size="15" title="검색" maxlength="100" />
|
| 365 | 369 |
<input type="button" class="btnType1" value="검색" onclick="fn_search(); return false;"> |
| 366 | 370 |
</div> |
... | ... | @@ -389,7 +393,7 @@ |
| 389 | 393 |
<col style="width: 5%"> |
| 390 | 394 |
<col style="width: 13%"> |
| 391 | 395 |
<col style="width: 7%"> |
| 392 |
- <col style="width: 10%"> |
|
| 396 |
+ <col style="width: 10%"> |
|
| 393 | 397 |
<col style="width: 10%"> |
| 394 | 398 |
<col style="width: 14%"> |
| 395 | 399 |
<col style="width: *%"> |
... | ... | @@ -410,6 +414,7 @@ |
| 410 | 414 |
<th>요청시간<input type="button" class="sort sortBtn" id="sort_reqDate"></th> |
| 411 | 415 |
<th>내용<input type="button" class="sort sortBtn" id="sort_smsTxt"></th> |
| 412 | 416 |
<th>타입<input type="button" class="sort sortBtn" id="sort_msgTypeTxt"></th> |
| 417 |
+ <th>방식<input type="button" class="sort sortBtn" id="sort_sendKind"></th> |
|
| 413 | 418 |
<!-- <th>예약상태<input type="button" class="sort sortBtn" id="sort_conectMthdTxt"></th> --> |
| 414 | 419 |
<!-- |
| 415 | 420 |
<th>취소일자<input type="button" class="sort sortBtn" id="sort_agentCodeTxt"></th> |
... | ... | @@ -529,6 +534,16 @@ |
| 529 | 534 |
</c:otherwise> |
| 530 | 535 |
</c:choose> |
| 531 | 536 |
</td> |
| 537 |
+ <td <c:if test="${result.smishingYn eq 'Y'}">style="color: #0000FF; cursor:pointer;"</c:if>>
|
|
| 538 |
+ <c:choose> |
|
| 539 |
+ <c:when test="${result.sendKind eq 'A'}">
|
|
| 540 |
+ API |
|
| 541 |
+ </c:when> |
|
| 542 |
+ <c:when test="${result.sendKind eq 'H'}">
|
|
| 543 |
+ WEB |
|
| 544 |
+ </c:when> |
|
| 545 |
+ </c:choose> |
|
| 546 |
+ </td> |
|
| 532 | 547 |
<%-- <td> |
| 533 | 548 |
<c:choose> |
| 534 | 549 |
<c:when test="${result.reserveCYn == 'Y'}">
|
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?