From b9337b4f394e89b41693f914a3b271be73a1c259 Mon Sep 17 00:00:00 2001 From: PL <774412461@qq.com> Date: Thu, 29 Aug 2024 16:27:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E8=81=8A=E5=A4=A9=E8=AF=84?= =?UTF-8?q?=E8=AF=AD=E6=A8=A1=E7=89=88=E6=9A=82=E6=97=A0=E5=B9=B3=E5=9D=87?= =?UTF-8?q?=E5=88=86=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model/dto/ai/comment/WisdomCommentsDto.java | 4 ++-- .../service/impl/ChatMessageServiceImpl.java | 17 ++++++++++++++++- src/main/resources/Json/ChatModel.json | 2 +- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/main/java/cn/teammodel/model/dto/ai/comment/WisdomCommentsDto.java b/src/main/java/cn/teammodel/model/dto/ai/comment/WisdomCommentsDto.java index ee9220c..afd0505 100644 --- a/src/main/java/cn/teammodel/model/dto/ai/comment/WisdomCommentsDto.java +++ b/src/main/java/cn/teammodel/model/dto/ai/comment/WisdomCommentsDto.java @@ -22,8 +22,8 @@ public class WisdomCommentsDto { public int onLine; //阅卷评测 public int marking; - //评价 - public int average; + //平均分 + //public int average; //评分等级 public String level; //占比 diff --git a/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java b/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java index 420ba33..53d8823 100644 --- a/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java +++ b/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java @@ -352,11 +352,26 @@ public class ChatMessageServiceImpl implements ChatMessageService { wisdomComments.getLessonMiddle(), wisdomComments.getOnLine(), wisdomComments.getMarking(), - wisdomComments.getAverage(), wisdomComments.getLevel(), wisdomComments.getProportion(), wisdomComments.getName() )); + /* + //有平均分 + builder.append(String.format( + finalChatModel.getChat(), + wisdomComments.getName(), + wisdomComments.getYear(), + wisdomComments.getSemester(), + wisdomComments.getJoinAll(), + wisdomComments.getLessonMiddle(), + wisdomComments.getOnLine(), + wisdomComments.getMarking(), + wisdomComments.getAverage(), + wisdomComments.getLevel(), + wisdomComments.getProportion(), + wisdomComments.getName() + ));*/ wisdomComments.getDims().forEach(item -> { builder.append(String.format(finalChatModel.getCycleChats().get(0), item.name, diff --git a/src/main/resources/Json/ChatModel.json b/src/main/resources/Json/ChatModel.json index c17d32f..6a88d92 100644 --- a/src/main/resources/Json/ChatModel.json +++ b/src/main/resources/Json/ChatModel.json @@ -4,7 +4,7 @@ "type": "wisdom", "name": "智育 总体评语模版", "role": "请扮演[%s%s]老师角色\n", - "chat": "%s同学,在%s学年度,第%s学期中,共计参加了%s次评测,其中课中评测%s次、线上评测%s次、阅卷评测%s次,智育评价分为%s分,素养等级为%s,已超过班级%s%% 同学。\n %s同学总体表现:", + "chat": "%s同学,在%s学年度,第%s学期中,共计参加了%s次评测,其中课中评测%s次、线上评测%s次、阅卷评测%s次,素养等级为%s,已超过班级%s%% 同学。\n %s同学总体表现:", "cycleChats": ["在%s中:学习态度为:%s、学习成效:%s、合作能力:%s、评价能力:%s、评价能力:%s ;\n"], "end": "根据我提供的数据,对这 %s 次考试成绩表现做一个评价\n" },