| | |
| | | bu.real_name securityName, |
| | | bd.dept_name companyName, |
| | | es.theory_grade theoryGrade,es.learn_grade learnGrade,es.all_grade allGrade, |
| | | case when str.is_exam=2 then "发布成绩" |
| | | when str.is_exam=3 then "考试中" |
| | | when str.is_exam=4 then "缺考" |
| | | when str.is_exam=5 then "纸质考试" |
| | | case when es.qualified=0 then "合格" |
| | | when es.qualified=1 then "不合格" |
| | | when es.qualified=2 then "暂未录入实操成绩" |
| | | when es.qualified=3 then "缺考" |
| | | else "" end as sortName |
| | | from |
| | | exam_score es |
| | |
| | | ) aa,(select @i:=0) bb |
| | | </select> |
| | | |
| | | <select id="queryRandomSubjectList" resultType="org.springblade.modules.exam.vo.ExamSubjectChoicesVO"> |
| | | select |
| | | id, |
| | | category_id categoryId, |
| | | subject_name subjectName, |
| | | choices_type choicesType, |
| | | score, |
| | | analysis, |
| | | tktype |
| | | from ( |
| | | select * from exam_subject_choices |
| | | where id in |
| | | <foreach collection="list" index="index" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | ) a ORDER BY RAND() LIMIT #{number} |
| | | </select> |
| | | |
| | | |
| | | </mapper> |