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

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

Loading…
Cancel
Save