流水修改

jieling
PC-202302260912\Administrator 2023-09-13 10:58:07 +08:00
parent 917020b609
commit e4d7a1f751
1 changed files with 3 additions and 3 deletions

View File

@ -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) {