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" }, {