beetlsql3-dev
xuliangtong 2 years ago
parent 90d8c09207
commit 3b394ac195

@ -651,12 +651,12 @@ public class TeacherOpenCourseScoreDashboardService extends CoreBaseService<Teac
chatScore = BigDecimal.valueOf(count2);
}
scoreDashboard.setChatScore(chatScore);
BigDecimal totalScore = NumberUtil.mul(scoreDashboard.getSigninScore(),weight ==null ? 1 : NumberUtil.toBigDecimal(weight.getSignInResult()))
.add(NumberUtil.mul(scoreDashboard.getCourseScore(), weight ==null ? 1 : NumberUtil.toBigDecimal(weight.getChapterContactResult())))
.add(NumberUtil.mul(scoreDashboard.getRealOperationScore(), weight ==null ? 1 : NumberUtil.toBigDecimal(weight.getCoursePracticeResult())))
.add(NumberUtil.mul(scoreDashboard.getQuestionHomeworkScore(), weight ==null ? 1 : NumberUtil.toBigDecimal(weight.getHomeworkResult())))
.add(NumberUtil.mul(scoreDashboard.getExamScore(), weight ==null ? 1 : NumberUtil.toBigDecimal(weight.getExaminationResult())))
.add(NumberUtil.mul(scoreDashboard.getChatScore(), weight ==null ? 1 : NumberUtil.toBigDecimal(weight.getInteractionResult())))
BigDecimal totalScore = scoreDashboard.getSigninScore()
.add(scoreDashboard.getCourseScore())
.add(scoreDashboard.getRealOperationScore())
.add(scoreDashboard.getQuestionHomeworkScore())
.add(scoreDashboard.getExamScore())
.add(scoreDashboard.getChatScore())
;
scoreDashboard.setTotalScore(totalScore);
if (weight != null) {

Loading…
Cancel
Save