Merge branch 'szzh' into develop
This commit is contained in:
commit
625f993ed2
|
@ -923,7 +923,7 @@ class StudentWorkController < ApplicationController
|
|||
#成绩计算
|
||||
def set_final_score homework,student_work
|
||||
if homework && homework.homework_detail_manual
|
||||
if homework.homework_type == 1 #匿评作业
|
||||
if homework.homework_type != 2 #匿评作业
|
||||
if homework.teacher_priority == 1 #教师优先
|
||||
if student_work.teacher_score
|
||||
student_work.final_score = student_work.teacher_score
|
||||
|
|
|
@ -46,7 +46,7 @@ class StudentWork < ActiveRecord::Base
|
|||
#成绩计算
|
||||
def set_final_score homework,student_work
|
||||
if homework && homework.homework_detail_manual
|
||||
if homework.homework_type == 1 #匿评作业
|
||||
if homework.homework_type != 2 #匿评作业
|
||||
if homework.teacher_priority == 1 #教师优先
|
||||
if student_work.teacher_score
|
||||
student_work.final_score = student_work.teacher_score
|
||||
|
|
Loading…
Reference in New Issue