|
@@ -16,6 +16,7 @@ import org.fouram.core.plugin.weixin.cp.core.WXCpMailList;
|
|
|
import org.fouram.core.util.AppUtil;
|
|
|
import org.fouram.core.util.AppUtil.ResultConstant;
|
|
|
import org.fouram.core.util.ConfConfig;
|
|
|
+import org.fouram.core.util.DateUtil;
|
|
|
import org.fouram.core.util.ExcelExportUtil;
|
|
|
import org.fouram.core.util.LoggerUtil;
|
|
|
import org.fouram.core.util.ResultUtil;
|
|
@@ -259,7 +260,8 @@ public class ApiController extends BaseController {
|
|
|
dto.getName(), dto.getState(), null, null);
|
|
|
List<Map<String, Object>> dataList = (List<Map<String, Object>>) object;
|
|
|
String haveFilePath = "/public/excel/userReport.xlsx";
|
|
|
- ExcelExportUtil.exportExcelStream(getRootPath() + haveFilePath, dataList, 1, response);
|
|
|
+ String filePath = "/public/excel/userReport" + DateUtil.getTimeStamp() + ".xlsx";
|
|
|
+ ExcelExportUtil.exportExcelFile(getRootPath() + haveFilePath, dataList, getRootPath() + filePath, 1);
|
|
|
} catch (Exception e) {
|
|
|
LoggerUtil.error(e);
|
|
|
}
|