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