|
|
@ -323,6 +323,20 @@ public class ChatMessageServiceImpl implements ChatMessageService {
|
|
|
|
//角色条件
|
|
|
|
//角色条件
|
|
|
|
builder.append(String.format(chatModel.getRole().get(0), chatCommentsDto.getPeriod(), chatCommentsDto.getSubject()));
|
|
|
|
builder.append(String.format(chatModel.getRole().get(0), chatCommentsDto.getPeriod(), chatCommentsDto.getSubject()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
String chatName = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch(phase){
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
|
|
|
|
chatName = chatCommentsDto.getName()+"班级";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
chatName = chatCommentsDto.getName()+"年级";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
chatName = chatCommentsDto.getName()+"同学";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ChatModelDto finalChatModel = chatModel;
|
|
|
|
ChatModelDto finalChatModel = chatModel;
|
|
|
|
//模版
|
|
|
|
//模版
|
|
|
@ -371,7 +385,7 @@ public class ChatMessageServiceImpl implements ChatMessageService {
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
builder.append(String.format(finalChatModel.getEnd().get(0), wisdomComments.getDims().size()));
|
|
|
|
builder.append(String.format(finalChatModel.getEnd().get(0),chatName, wisdomComments.getDims().size()));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//智育 表现模版
|
|
|
|
//智育 表现模版
|
|
|
@ -404,7 +418,7 @@ public class ChatMessageServiceImpl implements ChatMessageService {
|
|
|
|
count++;
|
|
|
|
count++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
builder.append(String.format(finalChatModel.getEnd().get(0), count));
|
|
|
|
builder.append(String.format(finalChatModel.getEnd().get(0),chatName));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 智育 学科评语模版
|
|
|
|
// 智育 学科评语模版
|
|
|
@ -438,7 +452,7 @@ public class ChatMessageServiceImpl implements ChatMessageService {
|
|
|
|
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.getCycleChats().get(2), name, comments.getClaasRanking().ranking, comments.getClaasRanking().scoreRate * 100, comments.getClaasRanking().average * 100));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
builder.append(String.format(finalChatModel.getEnd().get(0), subjectComments.size(),name));
|
|
|
|
builder.append(String.format(finalChatModel.getEnd().get(0), subjectComments.size(),chatName));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//艺术 考核指标纬度评语
|
|
|
|
//艺术 考核指标纬度评语
|
|
|
@ -467,7 +481,7 @@ public class ChatMessageServiceImpl implements ChatMessageService {
|
|
|
|
builder.append(String.format(finalChatModel.getCycleChats().get(0), artLatitude.getQuotaN1(),artLatitude.getQuotaP1(), artLatitude.getQuotaN2(),artLatitude.getQuotaP2(), artLatitude.getQuotaN3(),artLatitude.getQuotaP3(), artLatitude.getPercent(),artLatitude.getLevel()));
|
|
|
|
builder.append(String.format(finalChatModel.getCycleChats().get(0), artLatitude.getQuotaN1(),artLatitude.getQuotaP1(), artLatitude.getQuotaN2(),artLatitude.getQuotaP2(), artLatitude.getQuotaN3(),artLatitude.getQuotaP3(), artLatitude.getPercent(),artLatitude.getLevel()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
builder.append(finalChatModel.getEnd());
|
|
|
|
builder.append(String.format(finalChatModel.getEnd().get(0),chatName));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//艺术 学科评语模版
|
|
|
|
//艺术 学科评语模版
|
|
|
@ -488,7 +502,7 @@ public class ChatMessageServiceImpl implements ChatMessageService {
|
|
|
|
builder.append(String.format(finalChatModel.getCycleChats().get(0), artSubject.getDimension(),artSubject.getBlock(), artSubject.getPoint(),artSubject.getScore(), artSubject.getTotalScore(),artSubject.getPercent()));
|
|
|
|
builder.append(String.format(finalChatModel.getCycleChats().get(0), artSubject.getDimension(),artSubject.getBlock(), artSubject.getPoint(),artSubject.getScore(), artSubject.getTotalScore(),artSubject.getPercent()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
builder.append(String.format(finalChatModel.getEnd().get(0),chatCommentsDto.getSubject()));
|
|
|
|
builder.append(String.format(finalChatModel.getEnd().get(0),chatName));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//体育
|
|
|
|
//体育
|
|
|
|