处理智育,学科排行评语模版

develop
PL 3 months ago
parent bdd19d81b7
commit 47bd34e760

@ -35,10 +35,12 @@ public class WisdomSubjectComments {
*
*/
public String name;
/**
*
*/
public int ranking;
/**
*
*/

@ -441,19 +441,17 @@ public class ChatMessageServiceImpl implements ChatMessageService {
}
}
builder.append(finalChatModel.getChat());
String name = "";
//拼接学科数组
for (WisdomSubjectComments comments : subjectComments) {
builder.append(String.format(finalChatModel.getCycleChats().get(0), comments.subjectName));
for (WisdomSubjectComments.StuInfo stuInfo : comments.getRankings()) {
builder.append(String.format(finalChatModel.getCycleChats().get(1), stuInfo.ranking,
stuInfo.name, stuInfo.scoreRate));
builder.append(String.format(finalChatModel.getCycleChats().get(1), stuInfo.ranking,stuInfo.name, stuInfo.scoreRate*100));
}
builder.append(String.format(finalChatModel.getCycleChats().get(2),
comments.getClaasRanking().ranking, comments.getClaasRanking().scoreRate,
comments.getClaasRanking().average));
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.getEnd(), subjectComments.size()));
builder.append(String.format(finalChatModel.getEnd(), subjectComments.size(),name));
break;
}
//艺术 考核指标纬度评语

@ -21,8 +21,8 @@
"name": "智育 学科评语模版",
"role": "请扮演[%s%s]老师角色\n ",
"chat": "各科评测表现",
"cycleChats":["科目:%s 班级top10"," 排名:%s姓名%s得分率%s %% ,\n " ,"自己在班级排名:%s,得分率:%s %%,排在班级平均:(%s %%)"],
"end": "根据我提供的数据,对这%s次学科表现做一个整体的评价。 \n"
"cycleChats":["科目:%s 班级top10"," 排名:%s姓名%s得分率%s %% ,\n " ,"%s在班级排名:%s,得分率:%s %%,排在班级平均:(%s %%)"],
"end": "根据我提供的数据,对这%s门学科,【%s】在班级中的表现做一个评价。 \n"
},
{
"type": "artLatitude",

Loading…
Cancel
Save