이지우 - 요금 사용내역 엑셀 수정

This commit is contained in:
JIWOO 2025-07-22 14:52:19 +09:00
parent c94d80f736
commit 0dc4539eb2

View File

@ -2771,7 +2771,7 @@ public class MjonPayController {
font.setBoldweight(Font.BOLDWEIGHT_BOLD); //글씨 bold font.setBoldweight(Font.BOLDWEIGHT_BOLD); //글씨 bold
sheet.setColumnWidth(1, 5000); // 칼럼의 조절 sheet.setColumnWidth(1, 5000); // 칼럼의 조절
sheet.setColumnWidth(4, 10000); // 칼럼의 조절 sheet.setColumnWidth(3, 10000); // 칼럼의 조절
try{ try{
@ -2796,6 +2796,7 @@ public class MjonPayController {
sheet.addMergedRegion(new CellRangeAddress(0,1,1,1)); //셀병합 sheet.addMergedRegion(new CellRangeAddress(0,1,1,1)); //셀병합
sheet.addMergedRegion(new CellRangeAddress(0,1,2,2)); //셀병합 sheet.addMergedRegion(new CellRangeAddress(0,1,2,2)); //셀병합
sheet.addMergedRegion(new CellRangeAddress(0,1,3,3)); //셀병합 sheet.addMergedRegion(new CellRangeAddress(0,1,3,3)); //셀병합
sheet.addMergedRegion(new CellRangeAddress(0,1,6,6)); //셀병합
cell = row.createCell(0); cell = row.createCell(0);
@ -2803,46 +2804,29 @@ public class MjonPayController {
cell.setCellStyle(style); cell.setCellStyle(style);
cell = row.createCell(1); cell = row.createCell(1);
cell.setCellValue("날짜"); cell.setCellValue("발송일시");
cell.setCellStyle(style); cell.setCellStyle(style);
cell = row.createCell(2); cell = row.createCell(2);
cell.setCellValue("문자유"); cell.setCellValue("");
cell.setCellStyle(style); cell.setCellStyle(style);
cell = row.createCell(3); cell = row.createCell(3);
cell.setCellValue("발송건수");
cell.setCellStyle(style);
cell = row.createCell(4);
cell.setCellValue("내용"); cell.setCellValue("내용");
cell.setCellStyle(style); cell.setCellStyle(style);
/*cell = row.createCell(5); cell = row.createCell(4);
cell.setCellValue("충전"); cell.setCellValue("발송건수");
sheet.addMergedRegion(new CellRangeAddress(0,0,5,6)); //셀병합 sheet.addMergedRegion(new CellRangeAddress(0,0,4,5)); //셀병합
cell.setCellStyle(style); cell.setCellStyle(style);
cell = row.createCell(6);
cell.setCellStyle(style);*/
cell = row.createCell(5); cell = row.createCell(5);
cell.setCellValue("사용");
sheet.addMergedRegion(new CellRangeAddress(0,0,5,6)); //셀병합
cell.setCellStyle(style); cell.setCellStyle(style);
cell = row.createCell(6); cell = row.createCell(6);
cell.setCellValue("금액(원)");
cell.setCellStyle(style); cell.setCellStyle(style);
/*cell = row.createCell(9);
cell.setCellValue("잔액");
sheet.addMergedRegion(new CellRangeAddress(0,0,9,10)); //셀병합
cell.setCellStyle(style);
cell = row.createCell(10);
cell.setCellStyle(style);*/
row = sheet.createRow(1); row = sheet.createRow(1);
cell = row.createCell(0); cell = row.createCell(0);
@ -2858,32 +2842,16 @@ public class MjonPayController {
cell.setCellStyle(style); cell.setCellStyle(style);
cell = row.createCell(4); cell = row.createCell(4);
cell.setCellValue("성공");
cell.setCellStyle(style); cell.setCellStyle(style);
/*cell = row.createCell(5);
cell.setCellValue("충전금");
cell.setCellStyle(style);
cell = row.createCell(6);
cell.setCellValue("포인트");
cell.setCellStyle(style);*/
cell = row.createCell(5); cell = row.createCell(5);
cell.setCellValue("충전금"); cell.setCellValue("실패");
cell.setCellStyle(style); cell.setCellStyle(style);
cell = row.createCell(6); cell = row.createCell(6);
cell.setCellValue("포인트");
cell.setCellStyle(style); cell.setCellStyle(style);
/*cell = row.createCell(9);
cell.setCellValue("충전금");
cell.setCellStyle(style);
cell = row.createCell(10);
cell.setCellValue("포인트");
cell.setCellStyle(style);*/
DecimalFormat formatter = new DecimalFormat("###,###.##"); DecimalFormat formatter = new DecimalFormat("###,###.##");
String befCash = ""; String befCash = "";
String befPoint = ""; String befPoint = "";
@ -2926,15 +2894,11 @@ public class MjonPayController {
if(j==0) cell.setCellValue(i+1); //번호 if(j==0) cell.setCellValue(i+1); //번호
if(j==1) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getRegDate()); //결제일시 if(j==1) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getRegDate()); //결제일시
if(j==2) cell.setCellValue(msgType); //문자유형 if(j==2) cell.setCellValue(msgType); //문자유형
if(j==3) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getSuccSendCnt()); //발송건수 if(j==3) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getSmsTxt()); //내용
if(j==4) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getSmsTxt()); //내용 if(j==4) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getSuccSendCnt()); //성공건수
if(j==5) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getSuccSendPrice()); //충전 - 충전금 if(j==5) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getFailSendCnt()); //실패건수
if(j==6) cell.setCellValue(0); //충전 - 포인트 if(j==6) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getSuccSendPrice()); //금액
/*if(j==7) cell.setCellValue(totPrice); //사용 - 충전금 }
if(j==8) cell.setCellValue(0); //사용 - 포인트
if(j==9) cell.setCellValue(thisPoint); //잔액 - 충전금
if(j==10) cell.setCellValue(befPoint); //잔액 - 포인트
*/ }
} }
} }
response.setHeader("Set-Cookie", "fileDownload=true; path=/"); response.setHeader("Set-Cookie", "fileDownload=true; path=/");