generated from root/miduo_server
流水修改
parent
917020b609
commit
e4d7a1f751
|
@ -310,7 +310,7 @@ public class OrderInfoController {
|
|||
private void exportOrderExcel(String name,List<Corder> cgPayOrders){
|
||||
long start = DateUtil.now();
|
||||
LOGGER.info("开始导出订单,写入文件,name:{},订单数:{}",name, cgPayOrders.size());
|
||||
try (FileOutputStream fOut = new FileOutputStream(getExcelFilePath(name, start))) {
|
||||
try (FileOutputStream fOut = new FileOutputStream(getExcelFilePath(name))) {
|
||||
SXSSFWorkbook workbook = new SXSSFWorkbook(); // 使用SXSSFWorkbook代替XSSFWorkbook
|
||||
|
||||
CellStyle contextStyle = workbook.createCellStyle();
|
||||
|
@ -355,9 +355,9 @@ public class OrderInfoController {
|
|||
}
|
||||
}
|
||||
|
||||
private static String getExcelFilePath(String name, long start) throws Exception {
|
||||
private static String getExcelFilePath(String name) throws Exception {
|
||||
int excelId = seqUtils.getSequence("c_order_excel_id");
|
||||
return getPath() + name + "_" + excelId + "_" + start + ".xlsx";
|
||||
return getPath() + name + "_" + excelId + "_" + ".xlsx";
|
||||
}
|
||||
|
||||
private void setCellValue(Cell cell, Object value, CellStyle contextStyle) {
|
||||
|
|
Loading…
Reference in New Issue