mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +08:00
Merge branch 'zcwy0528-l' into 'master'
680在线课未设置及格线时考试无法提交的问题 See merge request !100
This commit is contained in:
@@ -67,7 +67,12 @@ public class StudyExamServiceImpl implements IStudyExamService{
|
||||
|
||||
//用于计算考试成绩
|
||||
CourseExam cexam=cexamDao.get(exam.getTestId());
|
||||
int prog=exam.getScore().intValue()>=exam.getPassLine()?100:exam.getScore().intValue();
|
||||
Integer passLine = 0;
|
||||
if( exam.getPassLine() !=null){
|
||||
passLine = exam.getPassLine();
|
||||
}
|
||||
|
||||
int prog=exam.getScore().intValue()>= passLine?100:exam.getScore().intValue();
|
||||
//完成处理,判断是否已存在
|
||||
Object obj=scItemDao.findField("id", FieldFilters.eq("studyId", exam.getStudyId()), FieldFilters.eq("contentId", exam.getContentId()));
|
||||
int status=exam.getScore()>=exam.getPassLine()?StudyCourseItem.STATUS_FINISH:StudyCourseItem.STATUS_STUDYING;
|
||||
|
||||
Reference in New Issue
Block a user