mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 02:46:50 +08:00
测试
This commit is contained in:
@@ -67,7 +67,13 @@ public class StudyExamServiceImpl implements IStudyExamService{
|
|||||||
|
|
||||||
//用于计算考试成绩
|
//用于计算考试成绩
|
||||||
CourseExam cexam=cexamDao.get(exam.getTestId());
|
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();
|
||||||
|
// 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()));
|
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;
|
int status=exam.getScore()>=exam.getPassLine()?StudyCourseItem.STATUS_FINISH:StudyCourseItem.STATUS_STUDYING;
|
||||||
|
|||||||
Reference in New Issue
Block a user