--- src/main/java/itn/let/fax/user/service/FaxGroupDataVO.java
+++ src/main/java/itn/let/fax/user/service/FaxGroupDataVO.java
... | ... | @@ -211,6 +211,14 @@ |
| 211 | 211 |
private String successCntMonth; |
| 212 | 212 |
private String successCntYear; |
| 213 | 213 |
|
| 214 |
+ |
|
| 215 |
+ private String totalEaSum; |
|
| 216 |
+ private String holdEaSum; |
|
| 217 |
+ private String sentEaSum; |
|
| 218 |
+ private String unSendEaSum; |
|
| 219 |
+ private String errorEaSum; |
|
| 220 |
+ |
|
| 221 |
+ |
|
| 214 | 222 |
public String getSuccessDay() {
|
| 215 | 223 |
return successDay; |
| 216 | 224 |
} |
... | ... | @@ -688,5 +696,63 @@ |
| 688 | 696 |
); |
| 689 | 697 |
} |
| 690 | 698 |
} |
| 699 |
+ |
|
| 700 |
+ |
|
| 701 |
+ |
|
| 702 |
+ |
|
| 703 |
+ |
|
| 704 |
+ public String getSearchQuarter() {
|
|
| 705 |
+ return searchQuarter; |
|
| 706 |
+ } |
|
| 707 |
+ |
|
| 708 |
+ public void setSearchQuarter(String searchQuarter) {
|
|
| 709 |
+ this.searchQuarter = searchQuarter; |
|
| 710 |
+ } |
|
| 711 |
+ |
|
| 712 |
+ public String getTotalEaSum() {
|
|
| 713 |
+ return totalEaSum; |
|
| 714 |
+ } |
|
| 715 |
+ |
|
| 716 |
+ public void setTotalEaSum(String totalEaSum) {
|
|
| 717 |
+ this.totalEaSum = totalEaSum; |
|
| 718 |
+ } |
|
| 719 |
+ |
|
| 720 |
+ public String getHoldEaSum() {
|
|
| 721 |
+ return holdEaSum; |
|
| 722 |
+ } |
|
| 723 |
+ |
|
| 724 |
+ public void setHoldEaSum(String holdEaSum) {
|
|
| 725 |
+ this.holdEaSum = holdEaSum; |
|
| 726 |
+ } |
|
| 727 |
+ |
|
| 728 |
+ public String getSentEaSum() {
|
|
| 729 |
+ return sentEaSum; |
|
| 730 |
+ } |
|
| 731 |
+ |
|
| 732 |
+ public void setSentEaSum(String sentEaSum) {
|
|
| 733 |
+ this.sentEaSum = sentEaSum; |
|
| 734 |
+ } |
|
| 735 |
+ |
|
| 736 |
+ public String getUnSendEaSum() {
|
|
| 737 |
+ return unSendEaSum; |
|
| 738 |
+ } |
|
| 739 |
+ |
|
| 740 |
+ public void setUnSendEaSum(String unSendEaSum) {
|
|
| 741 |
+ this.unSendEaSum = unSendEaSum; |
|
| 742 |
+ } |
|
| 743 |
+ |
|
| 744 |
+ public String getErrorEaSum() {
|
|
| 745 |
+ return errorEaSum; |
|
| 746 |
+ } |
|
| 747 |
+ |
|
| 748 |
+ public void setErrorEaSum(String errorEaSum) {
|
|
| 749 |
+ this.errorEaSum = errorEaSum; |
|
| 750 |
+ } |
|
| 751 |
+ |
|
| 752 |
+ |
|
| 753 |
+ |
|
| 754 |
+ |
|
| 755 |
+ |
|
| 756 |
+ |
|
| 691 | 757 |
|
| 692 | 758 |
} |
--- src/main/java/itn/let/fax/user/service/impl/FaxServiceImpl.java
+++ src/main/java/itn/let/fax/user/service/impl/FaxServiceImpl.java
... | ... | @@ -254,8 +254,27 @@ |
| 254 | 254 |
faxGroupDataVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
| 255 | 255 |
faxGroupDataVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
| 256 | 256 |
|
| 257 |
+ |
|
| 258 |
+ |
|
| 257 | 259 |
List<FaxGroupDataVO> faxGroupListVO = faxDao.selectFaxSendList_advc(faxGroupDataVO); |
| 258 | 260 |
|
| 261 |
+ |
|
| 262 |
+ if(faxGroupListVO.size() >0) {
|
|
| 263 |
+ |
|
| 264 |
+ // 총 건수 |
|
| 265 |
+ resultMap.put("totalEaSum" ,faxGroupListVO.get(0).getTotalEaSum());
|
|
| 266 |
+ System.out.println("faxGroupListVO.get(0).getTotalEaSum() : "+ faxGroupListVO.get(0).getTotalEaSum());
|
|
| 267 |
+ // 총 대기 건수 |
|
| 268 |
+ resultMap.put("holdEaSum" ,faxGroupListVO.get(0).getHoldEaSum());
|
|
| 269 |
+ // 총 성공 건수 |
|
| 270 |
+ resultMap.put("sentEaSum" ,faxGroupListVO.get(0).getSentEaSum());
|
|
| 271 |
+ // 총 실패 건수 |
|
| 272 |
+ resultMap.put("errorEaSum" ,faxGroupListVO.get(0).getErrorEaSum());
|
|
| 273 |
+ // 총 기타 건수 |
|
| 274 |
+ resultMap.put("unSendEaSum" ,faxGroupListVO.get(0).getUnSendEaSum());
|
|
| 275 |
+ |
|
| 276 |
+ } |
|
| 277 |
+ |
|
| 259 | 278 |
paginationInfo.setTotalRecordCount(faxGroupListVO.size() > 0 ? faxGroupListVO.get(0).getTotCnt() : 0); |
| 260 | 279 |
resultMap.put("faxGroupListVO", faxGroupListVO);
|
| 261 | 280 |
resultMap.put("paginationInfo", paginationInfo);
|
--- src/main/java/itn/let/fax/user/web/FaxController.java
+++ src/main/java/itn/let/fax/user/web/FaxController.java
... | ... | @@ -190,7 +190,23 @@ |
| 190 | 190 |
// 전송내역 |
| 191 | 191 |
model.addAttribute("faxGroupListVO", faxSendListMap.get("faxGroupListVO"));
|
| 192 | 192 |
model.addAttribute("searchKeyword", faxSendListMap.get("searchKeyword"));
|
| 193 |
- model.addAttribute("paginationInfo", faxSendListMap.get("paginationInfo"));
|
|
| 193 |
+ model.addAttribute("paginationInfo", faxSendListMap.get("paginationInfo"));
|
|
| 194 |
+ |
|
| 195 |
+ |
|
| 196 |
+ |
|
| 197 |
+ // 총 건수 |
|
| 198 |
+ model.addAttribute("totalEaSum" ,faxSendListMap.get("totalEaSum"));
|
|
| 199 |
+ // 총 대기 건수 |
|
| 200 |
+ model.addAttribute("holdEaSum" ,faxSendListMap.get("holdEaSum"));
|
|
| 201 |
+ // 총 성공 건수 |
|
| 202 |
+ model.addAttribute("sentEaSum" ,faxSendListMap.get("sentEaSum"));
|
|
| 203 |
+ // 총 실패 건수 |
|
| 204 |
+ model.addAttribute("errorEaSum" ,faxSendListMap.get("errorEaSum"));
|
|
| 205 |
+ // 총 기타 건수 |
|
| 206 |
+ model.addAttribute("unSendEaSum" ,faxSendListMap.get("unSendEaSum"));
|
|
| 207 |
+ |
|
| 208 |
+ |
|
| 209 |
+ |
|
| 194 | 210 |
} catch (Exception e) {
|
| 195 | 211 |
e.printStackTrace(); |
| 196 | 212 |
// TODO: handle exception |
--- src/main/resources/egovframework/sqlmap/let/fax/Fax_SQL_Mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/fax/Fax_SQL_Mysql.xml
... | ... | @@ -331,11 +331,7 @@ |
| 331 | 331 |
FROM pgi_faxlist pgf |
| 332 | 332 |
WHERE pf.seq = pgf.FaxTranSEQ AND ResultCode IN ('6500', '6503', '6504', '6505')
|
| 333 | 333 |
) AS unSendEa, |
| 334 |
- COALESCE(pf.ErrorEA, 0) - ( |
|
| 335 |
- SELECT count(*) |
|
| 336 |
- FROM pgi_faxlist pgf |
|
| 337 |
- WHERE pf.seq = pgf.FaxTranSEQ AND ResultCode IN ('6500', '6503', '6504', '6505')
|
|
| 338 |
- ) AS errorEa, |
|
| 334 |
+ COALESCE(pf.ErrorEA, 0) AS errorEa, |
|
| 339 | 335 |
mjf.EACH_PRICE AS eachPrice, |
| 340 | 336 |
mjf.TOT_PRICE AS totPrice, |
| 341 | 337 |
IF(pf.ErrorEA != 0, (pf.ErrorEA * pf.Page * mjf.EACH_PRICE), 0) AS refundPrice, |
--- src/main/webapp/WEB-INF/jsp/web/fax/faxSendList.jsp
+++ src/main/webapp/WEB-INF/jsp/web/fax/faxSendList.jsp
... | ... | @@ -132,6 +132,18 @@ |
| 132 | 132 |
} |
| 133 | 133 |
} |
| 134 | 134 |
|
| 135 |
+ |
|
| 136 |
+ /* 윈도우팝업 열기 */ |
|
| 137 |
+ function infoPop(pageUrl){
|
|
| 138 |
+ document.popForm.pageType.value = pageUrl; |
|
| 139 |
+ document.popForm.action = "/web/pop/infoPop.do"; |
|
| 140 |
+ document.popForm.method = "post"; |
|
| 141 |
+ window.open("about:blank", 'infoPop', 'width=790, height=320, top=100, left=100, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbars=1');
|
|
| 142 |
+ document.popForm.target = "infoPop"; |
|
| 143 |
+ document.popForm.submit(); |
|
| 144 |
+ } |
|
| 145 |
+ |
|
| 146 |
+ |
|
| 135 | 147 |
</script> |
| 136 | 148 |
|
| 137 | 149 |
|
... | ... | @@ -146,6 +158,8 @@ |
| 146 | 158 |
<div class="heading"> |
| 147 | 159 |
<!-- <h2>팩스발송</h2> --> |
| 148 | 160 |
<h2>발송결과</h2> |
| 161 |
+ <button type="button" class="button info" onclick="infoPop('selectMsgSentView');">사용안내</button>
|
|
| 162 |
+ <button type="button" class="button junk" data-tooltip="popupJunk">통신사 스팸규격안내</button> |
|
| 149 | 163 |
</div> |
| 150 | 164 |
<div class="pay_tab_wrap"> |
| 151 | 165 |
<!-- <ul class="tabType1"> |
... | ... | @@ -165,22 +179,25 @@ |
| 165 | 179 |
<div class="rev_admin_in"> |
| 166 | 180 |
<div class="rev_admin_top clearfix"> |
| 167 | 181 |
<p>전체</p> |
| 168 |
- <c:set var="allTotal" value="${H_allSentCntVO.totCnt + A_allSentCntVO.totCnt }" />
|
|
| 169 |
- <p><span><fmt:formatNumber value="${allTotal }" pattern="#,###"/></span> 건</p>
|
|
| 182 |
+ <p><span><fmt:formatNumber value="${not empty totalEaSum ? totalEaSum : 0 }" pattern="#,###"/></span> 건</p>
|
|
| 170 | 183 |
</div> |
| 171 | 184 |
<div class="rev_admin_btm admin_btm"> |
| 172 | 185 |
<%-- <P class="title_top">WEB<span class="title_num"><fmt:formatNumber value="${H_allSentCntVO.totCnt}" pattern="#,###"/><span>건</span></span></P> --%>
|
| 173 | 186 |
<dl> |
| 174 |
- <dt>대기</dt> |
|
| 175 |
- <dd><span class="c_002c9a"><fmt:formatNumber value="${H_allSentCntVO.waitCnt}" pattern="#,###"/></span>건</dd>
|
|
| 187 |
+ <dt>성공</dt> |
|
| 188 |
+ <dd><span class="c_002c9a"><fmt:formatNumber value="${not empty sentEaSum ? sentEaSum : 0 }" pattern="#,###"/></span>건</dd>
|
|
| 176 | 189 |
</dl> |
| 177 | 190 |
<dl> |
| 178 |
- <dt>성공</dt> |
|
| 179 |
- <dd><span class="c_002c9a"><fmt:formatNumber value="${H_allSentCntVO.succCnt}" pattern="#,###"/></span>건</dd>
|
|
| 191 |
+ <dt>대기</dt> |
|
| 192 |
+ <dd><span class="c_002c9a"><fmt:formatNumber value="${not empty holdEaSum ? holdEaSum : 0 }" pattern="#,###"/></span>건</dd>
|
|
| 180 | 193 |
</dl> |
| 181 | 194 |
<dl> |
| 182 | 195 |
<dt>실패</dt> |
| 183 |
- <dd><span class="c_e40000"><fmt:formatNumber value="${H_allSentCntVO.failCnt}" pattern="#,###"/></span>건</dd>
|
|
| 196 |
+ <dd><span class="c_e40000"><fmt:formatNumber value="${not empty errorEaSum ? errorEaSum : 0 }" pattern="#,###"/></span>건</dd>
|
|
| 197 |
+ </dl> |
|
| 198 |
+ <dl> |
|
| 199 |
+ <dt>기타</dt> |
|
| 200 |
+ <dd><span class="c_e40000"><fmt:formatNumber value="${not empty unSendEaSum ? unSendEaSum : 0 }" pattern="#,###"/></span>건</dd>
|
|
| 184 | 201 |
</dl> |
| 185 | 202 |
</div> |
| 186 | 203 |
</div> |
... | ... | @@ -245,8 +262,8 @@ |
| 245 | 262 |
<col style="width: 6%;"> |
| 246 | 263 |
<col style="width: 6%;"> |
| 247 | 264 |
<col style="width: 6%;"> |
| 248 |
- <col style="width: 10%;"> |
|
| 249 |
- <col style="width: 10%;"> |
|
| 265 |
+<%-- <col style="width: 10%;"> --%> |
|
| 266 |
+<%-- <col style="width: 10%;"> --%> |
|
| 250 | 267 |
</colgroup> |
| 251 | 268 |
<thead> |
| 252 | 269 |
<tr> |
... | ... | @@ -273,7 +290,7 @@ |
| 273 | 290 |
</div> |
| 274 | 291 |
</th> |
| 275 | 292 |
<th colspan="4">발송결과 건수</th> |
| 276 |
- <th rowspan="2">발송금액 |
|
| 293 |
+ <!-- <th rowspan="2">발송금액 |
|
| 277 | 294 |
<div class="sort_wrap"> |
| 278 | 295 |
<input type="button" class="sort sortBtn" id="totPrice"> |
| 279 | 296 |
</div> |
... | ... | @@ -282,7 +299,7 @@ |
| 282 | 299 |
<div class="sort_wrap"> |
| 283 | 300 |
<input type="button" class="sort sortBtn" id="refundPrice"> |
| 284 | 301 |
</div> |
| 285 |
- </th> |
|
| 302 |
+ </th> --> |
|
| 286 | 303 |
</tr> |
| 287 | 304 |
<tr> |
| 288 | 305 |
<th>성공</th> |
... | ... | @@ -313,18 +330,17 @@ |
| 313 | 330 |
<td> |
| 314 | 331 |
<p class="c_e40000">${result.unSendEa }</p>
|
| 315 | 332 |
</td> |
| 316 |
- |
|
| 317 |
- <td> |
|
| 333 |
+ <%-- <td> |
|
| 318 | 334 |
<fmt:formatNumber value="${result.totPrice }" pattern="#,###.#"/>
|
| 319 | 335 |
</td> |
| 320 | 336 |
<td> |
| 321 | 337 |
<p class="c_e40000"><fmt:formatNumber value="${result.refundPrice }" pattern="#,###.#"/></p>
|
| 322 |
- </td> |
|
| 338 |
+ </td> --%> |
|
| 323 | 339 |
</tr> |
| 324 | 340 |
</c:forEach> |
| 325 | 341 |
<c:if test="${empty faxGroupListVO}">
|
| 326 | 342 |
<tr> |
| 327 |
- <td colspan="11">전송내역이 없습니다.</td> |
|
| 343 |
+ <td colspan="9">전송내역이 없습니다.</td> |
|
| 328 | 344 |
</ul> |
| 329 | 345 |
</c:if> |
| 330 | 346 |
</tbody> |
... | ... | @@ -351,6 +367,9 @@ |
| 351 | 367 |
</div><!--// send top --> |
| 352 | 368 |
<!-- send bottom --> |
| 353 | 369 |
</div> |
| 370 |
+ <form name="popForm" id="popForm" method="post"> |
|
| 371 |
+ <input type="hidden" name="pageType" id="pageType" value=""/> |
|
| 372 |
+ </form> |
|
| 354 | 373 |
<!-- <form id="msgResendForm" name="msgResendForm" method="post"> --> |
| 355 | 374 |
<!-- <input name="msgResendFlag" type="hidden" value="N"/> --> |
| 356 | 375 |
<!-- <input name="msgSeqList" type="hidden" value=""/> --> |
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?