|
|
|
@ -56,6 +56,7 @@ import static com.ibeetl.admin.core.util.ExcelUtil.getCellFormatValue;
|
|
|
|
|
public class GeneralResourcesQuestionSnapshotService extends CoreBaseService<GeneralResourcesQuestionSnapshot>{
|
|
|
|
|
|
|
|
|
|
@Autowired private GeneralResourcesQuestionSnapshotDao generalResourcesQuestionSnapshotDao;
|
|
|
|
|
@Autowired private GeneralQuestionSettingService generalQuestionSettingService;
|
|
|
|
|
|
|
|
|
|
public PageQuery<GeneralResourcesQuestionSnapshot>queryByCondition(PageQuery query){
|
|
|
|
|
PageQuery ret = generalResourcesQuestionSnapshotDao.queryByCondition(query);
|
|
|
|
@ -452,17 +453,18 @@ public class GeneralResourcesQuestionSnapshotService extends CoreBaseService<Gen
|
|
|
|
|
// 查询学生身份
|
|
|
|
|
Student student = getStudent();
|
|
|
|
|
Assert.notNull(student, "该接口只能学生访问");
|
|
|
|
|
final Long studentId = student.getStudentId();
|
|
|
|
|
|
|
|
|
|
generalQuestionSettingService
|
|
|
|
|
.validateFinallySubmitThrow(questionSettingId, studentId, "未交卷状态,无法查看成绩!");
|
|
|
|
|
|
|
|
|
|
// 给实体类传参数,剩下来的交给Fetch 来处理
|
|
|
|
|
// 查询符合条件的实体
|
|
|
|
|
|
|
|
|
|
GeneralQuestionLogScoreInfo scoreInfo = sqlManager.executeQueryOne(
|
|
|
|
|
new SQLReady("SELECT " +
|
|
|
|
|
"? as general_question_setting_id, " +
|
|
|
|
|
"? as student_id ",
|
|
|
|
|
questionSettingId, student.getStudentId()
|
|
|
|
|
),
|
|
|
|
|
GeneralQuestionLogScoreInfo.class
|
|
|
|
|
);
|
|
|
|
|
"? as student_id ", questionSettingId, studentId), GeneralQuestionLogScoreInfo.class);
|
|
|
|
|
dictParser(scoreInfo);
|
|
|
|
|
return scoreInfo;
|
|
|
|
|
}
|
|
|
|
|