발송결과 엑셀다운로드 정렬 및 성공, 실패 카운트 오류 수정
This commit is contained in:
parent
ea870b66d0
commit
be8286da2b
@ -84,6 +84,9 @@ public class MjonMsgSentVO extends UserDefaultVO{
|
|||||||
private String msgSentType;
|
private String msgSentType;
|
||||||
private String successCount;
|
private String successCount;
|
||||||
|
|
||||||
|
private String resultSValue;
|
||||||
|
private String resultWFValue;
|
||||||
|
|
||||||
public String getSuccessCount() {
|
public String getSuccessCount() {
|
||||||
return successCount;
|
return successCount;
|
||||||
}
|
}
|
||||||
@ -458,5 +461,17 @@ public class MjonMsgSentVO extends UserDefaultVO{
|
|||||||
public void setSendKind(String sendKind) {
|
public void setSendKind(String sendKind) {
|
||||||
this.sendKind = sendKind;
|
this.sendKind = sendKind;
|
||||||
}
|
}
|
||||||
|
public String getResultSValue() {
|
||||||
|
return resultSValue;
|
||||||
|
}
|
||||||
|
public void setResultSValue(String resultSValue) {
|
||||||
|
this.resultSValue = resultSValue;
|
||||||
|
}
|
||||||
|
public String getResultWFValue() {
|
||||||
|
return resultWFValue;
|
||||||
|
}
|
||||||
|
public void setResultWFValue(String resultWFValue) {
|
||||||
|
this.resultWFValue = resultWFValue;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1280,7 +1280,7 @@ private static final Logger logger = LoggerFactory.getLogger(MjonMsgSentControll
|
|||||||
cell.setCellStyle(style);
|
cell.setCellStyle(style);
|
||||||
|
|
||||||
cell = row.createCell(10);
|
cell = row.createCell(10);
|
||||||
cell.setCellValue("실패");
|
cell.setCellValue("실패/대기");
|
||||||
cell.setCellStyle(style);
|
cell.setCellStyle(style);
|
||||||
|
|
||||||
cell = row.createCell(11);
|
cell = row.createCell(11);
|
||||||
@ -1380,11 +1380,26 @@ private static final Logger logger = LoggerFactory.getLogger(MjonMsgSentControll
|
|||||||
|
|
||||||
|
|
||||||
double eachPrice = Float.parseFloat(resultAllSentList.get(i).getEachPrice());
|
double eachPrice = Float.parseFloat(resultAllSentList.get(i).getEachPrice());
|
||||||
|
int resultSValue = 0;
|
||||||
|
int resultWFValue = 0;
|
||||||
|
|
||||||
|
if(resultAllSentList.get(i).getResultSValue() != null) {
|
||||||
|
resultSValue = Integer.parseInt(resultAllSentList.get(i).getResultSValue());
|
||||||
|
}else {
|
||||||
|
resultSValue = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(resultAllSentList.get(i).getResultWFValue() != null) {
|
||||||
|
resultWFValue = Integer.parseInt(resultAllSentList.get(i).getResultWFValue());
|
||||||
|
}else {
|
||||||
|
resultWFValue = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if("S".equals(resultAllSentList.get(i).getMsgResult())) {
|
if("S".equals(resultAllSentList.get(i).getMsgResult())) {
|
||||||
resSucCnt = 1;
|
resSucCnt = resultSValue;
|
||||||
} else {
|
} else {
|
||||||
resFailCnt = 1;
|
resFailCnt = resultWFValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
resSucPrice = eachPrice * resSucCnt;
|
resSucPrice = eachPrice * resSucCnt;
|
||||||
|
|||||||
@ -256,6 +256,8 @@
|
|||||||
, M2.msgResult
|
, M2.msgResult
|
||||||
, M2.sendKind
|
, M2.sendKind
|
||||||
, M2.msgKind
|
, M2.msgKind
|
||||||
|
, M2.resultSValue
|
||||||
|
, M2.resultWFValue
|
||||||
FROM
|
FROM
|
||||||
(
|
(
|
||||||
SELECT
|
SELECT
|
||||||
@ -297,6 +299,8 @@
|
|||||||
, msgTypeName AS msgTypeName
|
, msgTypeName AS msgTypeName
|
||||||
, orderByCode AS orderByCode
|
, orderByCode AS orderByCode
|
||||||
, RESULT AS msgResult
|
, RESULT AS msgResult
|
||||||
|
, SUM(IF(RESULT = 'S', 1, 0 )) AS resultSValue
|
||||||
|
, SUM(IF(RESULT = 'W' OR RESULT = 'F', 1, 0 )) AS resultWFValue
|
||||||
, sendKind AS sendKind
|
, sendKind AS sendKind
|
||||||
, MSG_KIND AS msgKind
|
, MSG_KIND AS msgKind
|
||||||
FROM
|
FROM
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user