From fcfda1760ad96c2b368a989c57128172d3676042 Mon Sep 17 00:00:00 2001 From: PL <774412461@qq.com> Date: Wed, 25 Sep 2024 10:14:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=99=BA=E8=82=B2=EF=BC=8C?= =?UTF-8?q?=E5=AD=A6=E7=A7=91=E6=8E=92=E8=A1=8C=E8=AF=84=E8=AF=AD=E6=A8=A1?= =?UTF-8?q?=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../teammodel/model/dto/ai/comment/WisdomSubjectComments.java | 4 ++-- .../cn/teammodel/service/impl/ChatMessageServiceImpl.java | 2 +- src/main/resources/Json/ChatModel.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/cn/teammodel/model/dto/ai/comment/WisdomSubjectComments.java b/src/main/java/cn/teammodel/model/dto/ai/comment/WisdomSubjectComments.java index ece3006..af870b9 100644 --- a/src/main/java/cn/teammodel/model/dto/ai/comment/WisdomSubjectComments.java +++ b/src/main/java/cn/teammodel/model/dto/ai/comment/WisdomSubjectComments.java @@ -44,12 +44,12 @@ public class WisdomSubjectComments { /** * 占比 */ - public int scoreRate; + public double scoreRate; /** * 平均排名 */ - public int average; + public double average; } } diff --git a/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java b/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java index 139c652..52137ee 100644 --- a/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java +++ b/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java @@ -449,7 +449,7 @@ public class ChatMessageServiceImpl implements ChatMessageService { builder.append(String.format(finalChatModel.getCycleChats().get(1), stuInfo.ranking,stuInfo.name, stuInfo.scoreRate*100)); } name = comments.getClaasRanking().name; - builder.append(String.format(finalChatModel.getCycleChats().get(2),name,comments.getClaasRanking().ranking, comments.getClaasRanking().scoreRate * 100,comments.getClaasRanking().average)); + builder.append(String.format(finalChatModel.getCycleChats().get(2),name,comments.getClaasRanking().ranking, comments.getClaasRanking().scoreRate * 100,comments.getClaasRanking().average * 100)); } builder.append(String.format(finalChatModel.getEnd(), subjectComments.size(),name)); break; diff --git a/src/main/resources/Json/ChatModel.json b/src/main/resources/Json/ChatModel.json index 5547b35..3a6b353 100644 --- a/src/main/resources/Json/ChatModel.json +++ b/src/main/resources/Json/ChatModel.json @@ -21,7 +21,7 @@ "name": "智育 学科评语模版", "role": "请扮演[%s%s]老师角色\n ", "chat": "各科评测表现", - "cycleChats":["科目:%s 班级top10"," 排名:%s,姓名:%s,得分率:%s %% ,\n " ,"%s在班级排名:%s,得分率:%s %%,排在班级平均:(%s %%)"], + "cycleChats":["科目:%s 班级top10"," 排名:%s,姓名:%s,得分率:%s %% ,\n " ,"%s在班级排名:%s,得分率:%s %%,排在班级平均得分率:(%s %%)"], "end": "根据我提供的数据,对这%s门学科,【%s】在班级中的表现做一个评价。 \n" }, {