이지우 - 요금 사용내역 엑셀 수정
@0dc4539eb2d605f0d96401283f33c12832a109e6
--- src/main/java/itn/let/mjo/pay/web/MjonPayController.java
+++ src/main/java/itn/let/mjo/pay/web/MjonPayController.java
... | ... | @@ -2771,7 +2771,7 @@ |
| 2771 | 2771 |
font.setBoldweight(Font.BOLDWEIGHT_BOLD); //글씨 bold |
| 2772 | 2772 |
|
| 2773 | 2773 |
sheet.setColumnWidth(1, 5000); // 칼럼의 폭 조절 |
| 2774 |
- sheet.setColumnWidth(4, 10000); // 칼럼의 폭 조절 |
|
| 2774 |
+ sheet.setColumnWidth(3, 10000); // 칼럼의 폭 조절 |
|
| 2775 | 2775 |
|
| 2776 | 2776 |
try{
|
| 2777 | 2777 |
|
... | ... | @@ -2796,6 +2796,7 @@ |
| 2796 | 2796 |
sheet.addMergedRegion(new CellRangeAddress(0,1,1,1)); //셀병합 |
| 2797 | 2797 |
sheet.addMergedRegion(new CellRangeAddress(0,1,2,2)); //셀병합 |
| 2798 | 2798 |
sheet.addMergedRegion(new CellRangeAddress(0,1,3,3)); //셀병합 |
| 2799 |
+ sheet.addMergedRegion(new CellRangeAddress(0,1,6,6)); //셀병합 |
|
| 2799 | 2800 |
|
| 2800 | 2801 |
|
| 2801 | 2802 |
cell = row.createCell(0); |
... | ... | @@ -2803,45 +2804,28 @@ |
| 2803 | 2804 |
cell.setCellStyle(style); |
| 2804 | 2805 |
|
| 2805 | 2806 |
cell = row.createCell(1); |
| 2806 |
- cell.setCellValue("날짜");
|
|
| 2807 |
+ cell.setCellValue("발송일시");
|
|
| 2807 | 2808 |
cell.setCellStyle(style); |
| 2808 | 2809 |
|
| 2809 | 2810 |
cell = row.createCell(2); |
| 2810 |
- cell.setCellValue("문자유형");
|
|
| 2811 |
+ cell.setCellValue("형태");
|
|
| 2811 | 2812 |
cell.setCellStyle(style); |
| 2812 | 2813 |
|
| 2813 | 2814 |
cell = row.createCell(3); |
| 2814 |
- cell.setCellValue("발송건수");
|
|
| 2815 |
- cell.setCellStyle(style); |
|
| 2816 |
- |
|
| 2817 |
- cell = row.createCell(4); |
|
| 2818 | 2815 |
cell.setCellValue("내용");
|
| 2819 | 2816 |
cell.setCellStyle(style); |
| 2820 | 2817 |
|
| 2821 |
- /*cell = row.createCell(5); |
|
| 2822 |
- cell.setCellValue("충전");
|
|
| 2823 |
- sheet.addMergedRegion(new CellRangeAddress(0,0,5,6)); //셀병합 |
|
| 2818 |
+ cell = row.createCell(4); |
|
| 2819 |
+ cell.setCellValue("발송건수");
|
|
| 2820 |
+ sheet.addMergedRegion(new CellRangeAddress(0,0,4,5)); //셀병합 |
|
| 2824 | 2821 |
cell.setCellStyle(style); |
| 2825 |
- |
|
| 2826 |
- cell = row.createCell(6); |
|
| 2827 |
- cell.setCellStyle(style);*/ |
|
| 2828 |
- |
|
| 2822 |
+ |
|
| 2829 | 2823 |
cell = row.createCell(5); |
| 2830 |
- cell.setCellValue("사용");
|
|
| 2831 |
- sheet.addMergedRegion(new CellRangeAddress(0,0,5,6)); //셀병합 |
|
| 2832 | 2824 |
cell.setCellStyle(style); |
| 2833 | 2825 |
|
| 2834 | 2826 |
cell = row.createCell(6); |
| 2827 |
+ cell.setCellValue("금액(원)");
|
|
| 2835 | 2828 |
cell.setCellStyle(style); |
| 2836 |
- |
|
| 2837 |
- |
|
| 2838 |
- /*cell = row.createCell(9); |
|
| 2839 |
- cell.setCellValue("잔액");
|
|
| 2840 |
- sheet.addMergedRegion(new CellRangeAddress(0,0,9,10)); //셀병합 |
|
| 2841 |
- cell.setCellStyle(style); |
|
| 2842 |
- |
|
| 2843 |
- cell = row.createCell(10); |
|
| 2844 |
- cell.setCellStyle(style);*/ |
|
| 2845 | 2829 |
|
| 2846 | 2830 |
row = sheet.createRow(1); |
| 2847 | 2831 |
|
... | ... | @@ -2858,31 +2842,15 @@ |
| 2858 | 2842 |
cell.setCellStyle(style); |
| 2859 | 2843 |
|
| 2860 | 2844 |
cell = row.createCell(4); |
| 2845 |
+ cell.setCellValue("성공");
|
|
| 2861 | 2846 |
cell.setCellStyle(style); |
| 2862 |
- |
|
| 2863 |
- /*cell = row.createCell(5); |
|
| 2864 |
- cell.setCellValue("충전금");
|
|
| 2865 |
- cell.setCellStyle(style); |
|
| 2866 |
- |
|
| 2867 |
- cell = row.createCell(6); |
|
| 2868 |
- cell.setCellValue("포인트");
|
|
| 2869 |
- cell.setCellStyle(style);*/ |
|
| 2870 | 2847 |
|
| 2871 | 2848 |
cell = row.createCell(5); |
| 2872 |
- cell.setCellValue("충전금");
|
|
| 2849 |
+ cell.setCellValue("실패");
|
|
| 2873 | 2850 |
cell.setCellStyle(style); |
| 2874 | 2851 |
|
| 2875 | 2852 |
cell = row.createCell(6); |
| 2876 |
- cell.setCellValue("포인트");
|
|
| 2877 | 2853 |
cell.setCellStyle(style); |
| 2878 |
- |
|
| 2879 |
- /*cell = row.createCell(9); |
|
| 2880 |
- cell.setCellValue("충전금");
|
|
| 2881 |
- cell.setCellStyle(style); |
|
| 2882 |
- |
|
| 2883 |
- cell = row.createCell(10); |
|
| 2884 |
- cell.setCellValue("포인트");
|
|
| 2885 |
- cell.setCellStyle(style);*/ |
|
| 2886 | 2854 |
|
| 2887 | 2855 |
DecimalFormat formatter = new DecimalFormat("###,###.##");
|
| 2888 | 2856 |
String befCash = ""; |
... | ... | @@ -2926,15 +2894,11 @@ |
| 2926 | 2894 |
if(j==0) cell.setCellValue(i+1); //번호 |
| 2927 | 2895 |
if(j==1) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getRegDate()); //결제일시 |
| 2928 | 2896 |
if(j==2) cell.setCellValue(msgType); //문자유형 |
| 2929 |
- if(j==3) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getSuccSendCnt()); //발송건수 |
|
| 2930 |
- if(j==4) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getSmsTxt()); //내용 |
|
| 2931 |
- if(j==5) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getSuccSendPrice()); //충전 - 충전금 |
|
| 2932 |
- if(j==6) cell.setCellValue(0); //충전 - 포인트 |
|
| 2933 |
- /*if(j==7) cell.setCellValue(totPrice); //사용 - 충전금 |
|
| 2934 |
- if(j==8) cell.setCellValue(0); //사용 - 포인트 |
|
| 2935 |
- if(j==9) cell.setCellValue(thisPoint); //잔액 - 충전금 |
|
| 2936 |
- if(j==10) cell.setCellValue(befPoint); //잔액 - 포인트 |
|
| 2937 |
-*/ } |
|
| 2897 |
+ if(j==3) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getSmsTxt()); //내용 |
|
| 2898 |
+ if(j==4) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getSuccSendCnt()); //성공건수 |
|
| 2899 |
+ if(j==5) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getFailSendCnt()); //실패건수 |
|
| 2900 |
+ if(j==6) cell.setCellValue(((MjonMsgVO)payUserList.get(i)).getSuccSendPrice()); //금액 |
|
| 2901 |
+ } |
|
| 2938 | 2902 |
} |
| 2939 | 2903 |
} |
| 2940 | 2904 |
response.setHeader("Set-Cookie", "fileDownload=true; path=/");
|
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?