Commit 4c9b6f4f authored by liuChang's avatar liuChang

导出

parent 19e5c068
...@@ -57,7 +57,8 @@ public class ExportService { ...@@ -57,7 +57,8 @@ public class ExportService {
SimpleDateFormat sdf =new SimpleDateFormat("yyyyMMdd"); SimpleDateFormat sdf =new SimpleDateFormat("yyyyMMdd");
String dayformat = sdf.format(new Date()); String dayformat = sdf.format(new Date());
SysUserFileRecord fileRecord = new SysUserFileRecord(); SysUserFileRecord fileRecord = new SysUserFileRecord();
fileRecord.setFileName("供应商资质批量查询".concat(dayformat).concat(Constants.SUFFIX_XLSX)); String fileName = "供应商资质批量查询".concat(dayformat).concat(Constants.SUFFIX_XLSX);
fileRecord.setFileName(fileName);
fileRecord.setType(1); fileRecord.setType(1);
//生成中 //生成中
fileRecord.setStatus(2); fileRecord.setStatus(2);
...@@ -66,7 +67,7 @@ public class ExportService { ...@@ -66,7 +67,7 @@ public class ExportService {
composeQueryDto.setExportUniqueCode(fileId.toString()); composeQueryDto.setExportUniqueCode(fileId.toString());
//回调函数 //回调函数
composeQueryDto.setExportBackUrl(EXPORT_BACK_URL); composeQueryDto.setExportBackUrl(EXPORT_BACK_URL);
composeQueryDto.setExportExeclName("供应商资质批量查询"+dayformat+".xlsx"); composeQueryDto.setExportExeclName(fileName);
dskOpenApiUtil.requestBody("/operate/export/zjyj/aptitude", BeanUtil.beanToMap(composeQueryDto,false,false)); dskOpenApiUtil.requestBody("/operate/export/zjyj/aptitude", BeanUtil.beanToMap(composeQueryDto,false,false));
return AjaxResult.success(); return AjaxResult.success();
} }
......
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