Commit 57f487f4 by guojuxing

日志

parent 192b2acd
...@@ -7,6 +7,7 @@ import java.util.*; ...@@ -7,6 +7,7 @@ import java.util.*;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.gic.download.constants.ExcelExtensionEnum; import com.gic.download.constants.ExcelExtensionEnum;
import com.gic.download.dto.DownloadReportTempDTO; import com.gic.download.dto.DownloadReportTempDTO;
import com.gic.download.qo.DownloadExcelQO; import com.gic.download.qo.DownloadExcelQO;
...@@ -211,7 +212,7 @@ public class DownloadUtils { ...@@ -211,7 +212,7 @@ public class DownloadUtils {
} }
private <T> void downloadCommon(DownloadExcelQO param, DownloadDataLoader<T> loader) throws Exception { private <T> void downloadCommon(DownloadExcelQO param, DownloadDataLoader<T> loader) throws Exception {
LOGGER.info("下载导出数据参数:{}", JSON.toJSONString(param)); LOGGER.info("下载导出数据参数:{}", JSON.toJSONString(param, SerializerFeature.WriteMapNullValue));
Integer reportId = param.getReportId(); Integer reportId = param.getReportId();
String fileName = param.getFileName(); String fileName = param.getFileName();
......
...@@ -207,7 +207,7 @@ public class ExcelUtils { ...@@ -207,7 +207,7 @@ public class ExcelUtils {
Row row1 = sheet.createRow(0); Row row1 = sheet.createRow(0);
Row row2 = sheet.createRow(1); Row row2 = sheet.createRow(1);
logger.info("headerMap的参数" + JSON.toJSONString(headerMap) + ";大小:" + headerMap.size()); logger.info("headerMap的参数" + headerMap.toString());
int n = 0; int n = 0;
for (Map.Entry<String, List<String>> entry : headerMap.entrySet()) { for (Map.Entry<String, List<String>> entry : headerMap.entrySet()) {
Cell cell1 = row1.createCell(n); Cell cell1 = row1.createCell(n);
...@@ -216,7 +216,6 @@ public class ExcelUtils { ...@@ -216,7 +216,6 @@ public class ExcelUtils {
cell1.setCellValue(value); cell1.setCellValue(value);
cell1.setCellStyle(cellStyle); cell1.setCellStyle(cellStyle);
logger.info("headerMap的key" + entry.getKey() + ";值:" + entry.getValue());
//2层标题 //2层标题
if (CollectionUtils.isEmpty(sonHeader)) { if (CollectionUtils.isEmpty(sonHeader)) {
//单标题 //单标题
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment