발송결과 엑셀다운로드 정렬 및 성공, 실패 카운트 오류 수정
@be8286da2b562162dcd2801f75de205993a3ea70
--- src/main/java/itn/let/mjo/msgsent/service/MjonMsgSentVO.java
+++ src/main/java/itn/let/mjo/msgsent/service/MjonMsgSentVO.java
... | ... | @@ -84,6 +84,9 @@ |
| 84 | 84 |
private String msgSentType; |
| 85 | 85 |
private String successCount; |
| 86 | 86 |
|
| 87 |
+ private String resultSValue; |
|
| 88 |
+ private String resultWFValue; |
|
| 89 |
+ |
|
| 87 | 90 |
public String getSuccessCount() {
|
| 88 | 91 |
return successCount; |
| 89 | 92 |
} |
... | ... | @@ -458,5 +461,17 @@ |
| 458 | 461 |
public void setSendKind(String sendKind) {
|
| 459 | 462 |
this.sendKind = sendKind; |
| 460 | 463 |
} |
| 464 |
+ public String getResultSValue() {
|
|
| 465 |
+ return resultSValue; |
|
| 466 |
+ } |
|
| 467 |
+ public void setResultSValue(String resultSValue) {
|
|
| 468 |
+ this.resultSValue = resultSValue; |
|
| 469 |
+ } |
|
| 470 |
+ public String getResultWFValue() {
|
|
| 471 |
+ return resultWFValue; |
|
| 472 |
+ } |
|
| 473 |
+ public void setResultWFValue(String resultWFValue) {
|
|
| 474 |
+ this.resultWFValue = resultWFValue; |
|
| 475 |
+ } |
|
| 461 | 476 |
|
| 462 | 477 |
} |
--- src/main/java/itn/let/mjo/msgsent/web/MjonMsgSentController.java
+++ src/main/java/itn/let/mjo/msgsent/web/MjonMsgSentController.java
... | ... | @@ -1280,7 +1280,7 @@ |
| 1280 | 1280 |
cell.setCellStyle(style); |
| 1281 | 1281 |
|
| 1282 | 1282 |
cell = row.createCell(10); |
| 1283 |
- cell.setCellValue("실패");
|
|
| 1283 |
+ cell.setCellValue("실패/대기");
|
|
| 1284 | 1284 |
cell.setCellStyle(style); |
| 1285 | 1285 |
|
| 1286 | 1286 |
cell = row.createCell(11); |
... | ... | @@ -1380,11 +1380,26 @@ |
| 1380 | 1380 |
|
| 1381 | 1381 |
|
| 1382 | 1382 |
double eachPrice = Float.parseFloat(resultAllSentList.get(i).getEachPrice()); |
| 1383 |
+ int resultSValue = 0; |
|
| 1384 |
+ int resultWFValue = 0; |
|
| 1385 |
+ |
|
| 1386 |
+ if(resultAllSentList.get(i).getResultSValue() != null) {
|
|
| 1387 |
+ resultSValue = Integer.parseInt(resultAllSentList.get(i).getResultSValue()); |
|
| 1388 |
+ }else {
|
|
| 1389 |
+ resultSValue = 1; |
|
| 1390 |
+ } |
|
| 1391 |
+ |
|
| 1392 |
+ if(resultAllSentList.get(i).getResultWFValue() != null) {
|
|
| 1393 |
+ resultWFValue = Integer.parseInt(resultAllSentList.get(i).getResultWFValue()); |
|
| 1394 |
+ }else {
|
|
| 1395 |
+ resultWFValue = 1; |
|
| 1396 |
+ } |
|
| 1397 |
+ |
|
| 1383 | 1398 |
|
| 1384 | 1399 |
if("S".equals(resultAllSentList.get(i).getMsgResult())) {
|
| 1385 |
- resSucCnt = 1; |
|
| 1400 |
+ resSucCnt = resultSValue; |
|
| 1386 | 1401 |
} else {
|
| 1387 |
- resFailCnt = 1; |
|
| 1402 |
+ resFailCnt = resultWFValue; |
|
| 1388 | 1403 |
} |
| 1389 | 1404 |
|
| 1390 | 1405 |
resSucPrice = eachPrice * resSucCnt; |
--- src/main/resources/egovframework/sqlmap/let/msg/MjonMsgSent_SQL_mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/msg/MjonMsgSent_SQL_mysql.xml
... | ... | @@ -256,6 +256,8 @@ |
| 256 | 256 |
, M2.msgResult |
| 257 | 257 |
, M2.sendKind |
| 258 | 258 |
, M2.msgKind |
| 259 |
+ , M2.resultSValue |
|
| 260 |
+ , M2.resultWFValue |
|
| 259 | 261 |
FROM |
| 260 | 262 |
( |
| 261 | 263 |
SELECT |
... | ... | @@ -297,6 +299,8 @@ |
| 297 | 299 |
, msgTypeName AS msgTypeName |
| 298 | 300 |
, orderByCode AS orderByCode |
| 299 | 301 |
, RESULT AS msgResult |
| 302 |
+ , SUM(IF(RESULT = 'S', 1, 0 )) AS resultSValue |
|
| 303 |
+ , SUM(IF(RESULT = 'W' OR RESULT = 'F', 1, 0 )) AS resultWFValue |
|
| 300 | 304 |
, sendKind AS sendKind |
| 301 | 305 |
, MSG_KIND AS msgKind |
| 302 | 306 |
FROM |
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?