Browse Source

update

Signed-off-by: anderx <312518615@qq.com>
anderx 5 years ago
parent
commit
0d17316909

+ 1 - 1
src/main/java/com/goafanti/common/utils/ExportExcelUtil.java

@@ -20,7 +20,7 @@ public class ExportExcelUtil {
 		XSSFFont font = workbook.createFont();  
 		// font.setColor(HSSFFont.COLOR_RED);  
 		font.setFontName("微软雅黑");
-		font.setFontHeightInPoints((short) 36);//字体大小  
+		font.setFontHeightInPoints((short) 24);//字体大小  
 		  
 		// 设置样式  
 		XSSFCellStyle cellStyle = workbook.createCellStyle();  

+ 4 - 0
src/main/java/com/goafanti/demandCollection/service/impl/DemandCollectionServiceImpl.java

@@ -11,6 +11,8 @@ import java.util.Map;
 import javax.servlet.http.HttpServletResponse;
 
 import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.poi.ss.usermodel.HorizontalAlignment;
 import org.apache.poi.xssf.usermodel.XSSFCell;
 import org.apache.poi.xssf.usermodel.XSSFCellStyle;
@@ -34,6 +36,7 @@ import com.goafanti.demandCollection.service.DemandCollectionService;
 @Service
 public class DemandCollectionServiceImpl extends BaseMybatisDao<DemandCollectionMapper> implements DemandCollectionService {
 
+	protected final Log logger = LogFactory.getLog(DemandCollectionServiceImpl.class);
 	@Autowired
 	private DemandCollectionMapper	demandCollectionMapper;
 	@Override
@@ -196,6 +199,7 @@ public class DemandCollectionServiceImpl extends BaseMybatisDao<DemandCollection
     				c.setCellValue(o);
     			}
     		}
+    		logger.debug("导出传参ok");    		
     		//返回名称及参数
 			 response.addHeader("Content-Disposition", "attachment;filename="  + new String(fileName.getBytes(),"iso-8859-1"));  
 			 response.setContentType("application/octet-stream;charset=utf-8");