견문통계 엑셀 수정중..

master
Hyung Geun 2022-04-28 09:21:55 +09:00
parent 54db411eed
commit 4f17dbdb80
1 changed files with 17 additions and 10 deletions

View File

@ -205,19 +205,26 @@ public class ReportStatsController {
if ("C".equals(searchVO.getStatsType())) { if ("C".equals(searchVO.getStatsType())) {
header.put("placename", messageSource.getMessage("report.view.division", null, locale)); header.put("placename", messageSource.getMessage("report.view.division", null, locale));
header.put("total", messageSource.getMessage("report.stats.total", null, locale)); header.put("total", messageSource.getMessage("report.stats.total", null, locale));
if(reportSearchVO.getCategory1()!=null){
for (String category : reportSearchVO.getCategory1()) { for (String category : reportSearchVO.getCategory1()) {
header.put(category + "_1", messageSource.getMessage("report.category." + category + "_1", null, locale)); header.put(category + "_1", messageSource.getMessage("report.category." + category + "_1", null, locale));
} }
}
if(reportSearchVO.getCategory2()!=null) {
for (String category : reportSearchVO.getCategory2()) { for (String category : reportSearchVO.getCategory2()) {
header.put(category + "_2", messageSource.getMessage("report.category." + category + "_2", null, locale)); header.put(category + "_2", messageSource.getMessage("report.category." + category + "_2", null, locale));
} }
}
if(reportSearchVO.getCategory3()!=null) {
for (String category : reportSearchVO.getCategory3()) { for (String category : reportSearchVO.getCategory3()) {
header.put(category + "_3", messageSource.getMessage("report.category." + category + "_3", null, locale)); header.put(category + "_3", messageSource.getMessage("report.category." + category + "_3", null, locale));
} }
}
if(reportSearchVO.getCategory4()!=null) {
for (String category : reportSearchVO.getCategory4()) { for (String category : reportSearchVO.getCategory4()) {
header.put(category + "_4", messageSource.getMessage("report.category." + category + "_4", null, locale)); header.put(category + "_4", messageSource.getMessage("report.category." + category + "_4", null, locale));
} }
}
try { try {
Date d = new Date(); Date d = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");