|
|
|
@ -416,15 +416,37 @@ public class ChatMessageServiceImpl implements ChatMessageService {
|
|
|
|
|
//昵称
|
|
|
|
|
builder.append(String.format(finalChatModel.getChat().get(0), chatCommentsDto.getName()));
|
|
|
|
|
}
|
|
|
|
|
for (WisdomExamCommentsDto examComment : examComments) {
|
|
|
|
|
builder.append(String.format(finalChatModel.getCycleChats().get(0), count, examComment.getName(),
|
|
|
|
|
examComment.getTime(), examComment.getScore(), examComment.getScoreRate(),
|
|
|
|
|
examComment.getRanking()));
|
|
|
|
|
if (count < examComments.size()) {
|
|
|
|
|
count++;
|
|
|
|
|
switch(phase){
|
|
|
|
|
case 1:{
|
|
|
|
|
for (WisdomExamCommentsDto examComment : examComments) {
|
|
|
|
|
builder.append(String.format(finalChatModel.getCycleChats().get(1), count, examComment.getName(),examComment.getTime(), examComment.getClassRate(),examComment.getGradeRate()));
|
|
|
|
|
if (count < examComments.size()) {
|
|
|
|
|
count++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case 2:{
|
|
|
|
|
for (WisdomExamCommentsDto examComment : examComments) {
|
|
|
|
|
builder.append(String.format(finalChatModel.getCycleChats().get(2), count, examComment.getName(),examComment.getTime(), examComment.getGradeRate()));
|
|
|
|
|
if (count < examComments.size()) {
|
|
|
|
|
count++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
default:{
|
|
|
|
|
for (WisdomExamCommentsDto examComment : examComments) {
|
|
|
|
|
builder.append(String.format(finalChatModel.getCycleChats().get(0), count, examComment.getName(),
|
|
|
|
|
examComment.getTime(), examComment.getScore(), examComment.getScoreRate(),
|
|
|
|
|
examComment.getRanking()));
|
|
|
|
|
if (count < examComments.size()) {
|
|
|
|
|
count++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//builder.append(String.format(finalChatModel.getEnd().get(0),chatName));
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
// 智育 学科评语模版
|
|
|
|
|