处理聊天评语模版暂无平均分的问题

develop
PL 4 months ago
parent 0e38d74d08
commit b9337b4f39

@ -22,8 +22,8 @@ public class WisdomCommentsDto {
public int onLine;
//阅卷评测
public int marking;
//评价
public int average;
//平均分
//public int average;
//评分等级
public String level;
//占比

@ -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,

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

Loading…
Cancel
Save