From 68dd52ff81aa5b5e0483b90b4a9296c1d9bc152e Mon Sep 17 00:00:00 2001 From: xueqingkun Date: Tue, 3 Dec 2024 09:33:01 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E6=94=B9=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E9=94=99=E5=88=AB=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ModelCaseServiceImpl.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/supervision/police/service/impl/ModelCaseServiceImpl.java b/src/main/java/com/supervision/police/service/impl/ModelCaseServiceImpl.java index d02c92f..f53d791 100644 --- a/src/main/java/com/supervision/police/service/impl/ModelCaseServiceImpl.java +++ b/src/main/java/com/supervision/police/service/impl/ModelCaseServiceImpl.java @@ -388,12 +388,12 @@ public class ModelCaseServiceImpl extends ServiceImpl allModelCase = this.list(); - log.info("===========>>>>>案件总数:{},开始迁移笔录到支持库...<<<<<===========",allModelCase.size()); + log.info("===========>>>>>案件总数:{},开始迁移笔录到知识库...<<<<<===========",allModelCase.size()); TimeInterval timer = DateUtil.timer(); timer.start(); for (ModelCase modelCase : allModelCase) { try { - log.info("开始迁移案件:{} 笔录到支持库,当前总体进度:{}...",modelCase.getCaseName(),NumberUtil.formatPercent((success + fail)/(allModelCase.size()*1.0), 2)); + log.info("开始迁移案件:{} 笔录到知识库,当前总体进度:{}...",modelCase.getCaseName(),NumberUtil.formatPercent((success + fail)/(allModelCase.size()*1.0), 2)); timer.start(modelCase.getId()); initCaseKnowledgeBase(modelCase.getId()); - log.info("案件:{} 迁移笔录到支持库成功,耗时:{}秒...",modelCase.getCaseName(),timer.intervalSecond(modelCase.getId())); + log.info("案件:{} 迁移笔录到知识库成功,耗时:{}秒...",modelCase.getCaseName(),timer.intervalSecond(modelCase.getId())); success++; } catch (Exception e) { - log.error("案件:{} 迁移笔录到支持库失败..",modelCase.getCaseName(),e); + log.error("案件:{} 迁移笔录到知识库失败..",modelCase.getCaseName(),e); fail++; } } - log.info("===========>>>>>迁移笔录到支持库完成,成功个数:{},失败个数:{},总耗时:{}秒...<<<<<===========",success,allModelCase.size()-success,timer.intervalSecond()); + log.info("===========>>>>>迁移笔录到知识库完成,成功个数:{},失败个数:{},总耗时:{}秒...<<<<<===========",success,allModelCase.size()-success,timer.intervalSecond()); } @Override