From 15c11c7584c3c7736179fae84a4cb1cb546bd9cd Mon Sep 17 00:00:00 2001 From: luoweijian <1329394916@qq.com> Date: Fri, 20 Mar 2026 18:08:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=87=E6=A1=A3=E8=81=9A?= =?UTF-8?q?=E7=B1=BB=E5=AE=9E=E4=BD=93=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/KnowledgePointApplicationServiceImpl.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/project/information/application/impl/KnowledgePointApplicationServiceImpl.java b/src/main/java/com/project/information/application/impl/KnowledgePointApplicationServiceImpl.java index cfb6ffe..c588eb0 100644 --- a/src/main/java/com/project/information/application/impl/KnowledgePointApplicationServiceImpl.java +++ b/src/main/java/com/project/information/application/impl/KnowledgePointApplicationServiceImpl.java @@ -78,7 +78,9 @@ public class KnowledgePointApplicationServiceImpl implements KnowledgePointAppli uploadToPython(inputStream, path , id); } // 成功后更新状态 - updateStatusInformation(null, InformationParseStatusEnum.Success.getValue(), id); + updateStatusInformation(null, InformationParseStatusEnum.InProgress.getValue(), id); + // 聚类 + } catch (Exception e) { log.error("解析异常, ID:{}", id, e); // 失败更新状态 @@ -127,11 +129,11 @@ public class KnowledgePointApplicationServiceImpl implements KnowledgePointAppli if (!CollectionUtils.isEmpty(knowledgePointEntities)) { knowledgePointBaseService.saveBatch(knowledgePointEntities); // 更新资料状态为:成功 - updateStatusInformation(knowledgePointEntities.get(0).getParseName(), InformationParseStatusEnum.Success.getValue(), id); + updateStatusInformation(knowledgePointEntities.get(0).getParseName(), InformationParseStatusEnum.InProgress.getValue(), id); } else { log.warn("文件 [{}] 解析成功但未提取到知识点", fileName); // 更新资料状态为:成功 (或根据业务定义为无知识点状态) - updateStatusInformation(null, InformationParseStatusEnum.Success.getValue(), id); + updateStatusInformation(null, InformationParseStatusEnum.InProgress.getValue(), id); } } /**