main
HuangHai 1 month ago
parent 7b8ba218d5
commit 0e6575d181

@ -57,7 +57,7 @@ public class AiController extends Controller {
try {
// AI分析完成开始生成Word文档
sseEmitter.sendMessage("data: AI深度分析完成正在生成报告文档...\n\n");
String fileName = "/upload/" + shiZhouA + "与" + shiZhouB + "_教育分析报告_" +
String fileName = "/upload/education_report_" +
new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()) + ".docx";
String filePath = PathKit.getWebRootPath() + fileName;
WordGenerator.generateWordDocument(fullResponse, filePath, new String[]{shiZhouA, shiZhouB});
@ -125,7 +125,7 @@ public class AiController extends Controller {
try {
// HTML生成完成保存文件
sseEmitter.sendMessage("data: HTML报告生成完成正在保存文件...\n\n");
String fileName = "/upload/" + shiZhouA + "与" + shiZhouB + "_教育分析报告_" +
String fileName = "/upload/education_report_" +
new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()) + ".html";
String filePath = PathKit.getWebRootPath() + fileName;

Loading…
Cancel
Save