mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-06 17:36:47 +08:00
@@ -67,13 +67,11 @@ public class StudyExamServiceImpl implements IStudyExamService{
|
||||
|
||||
//用于计算考试成绩
|
||||
CourseExam cexam=cexamDao.get(exam.getTestId());
|
||||
Integer passLine = 0;
|
||||
if( exam.getPassLine() !=null){
|
||||
passLine = exam.getPassLine();
|
||||
if( exam.getPassLine() ==null){
|
||||
exam.setPassLine(0);
|
||||
}
|
||||
|
||||
int prog=exam.getScore().intValue()>= passLine?100:exam.getScore().intValue();
|
||||
// int prog=exam.getScore().intValue()>=exam.getPassLine()?100:exam.getScore().intValue();
|
||||
int prog=exam.getScore().intValue()>=exam.getPassLine()?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