| | |
| | | <select id="selectExamScorePage" resultType="org.springblade.modules.exam.vo.ExamScoreVO"> |
| | | SELECT |
| | | es.id,es.theory_grade theoryGrade,ifnull(learn_grade,-1) learnGrade,es.user_id userId, |
| | | exam_name examName,bu.real_name securityName,company,exam_time examTime, |
| | | ke.exam_name examName,bu.real_name securityName,company,es.exam_time examTime, |
| | | all_grade allGrade,exam_end_time examEndTime,qualified, |
| | | bd.dept_name companyName |
| | | FROM |
| | |
| | | blade_dept bd |
| | | on |
| | | bd.id = es.company |
| | | left join |
| | | ksxt_exam ke |
| | | on |
| | | ke.id = es.exam_id |
| | | WHERE |
| | | 1=1 |
| | | <if test="examScore.examName!=null and examScore.examName!=''"> |
| | | and es.exam_name like concat('%', #{examScore.examName},'%') |
| | | and ke.exam_name like concat('%', #{examScore.examName},'%') |
| | | </if> |
| | | <if test="examScore.companyName!=null and examScore.companyName!=''"> |
| | | and bd.dept_name like concat('%', #{examScore.companyName},'%') |
| | |
| | | </if> |
| | | <if test="examScore.userId!=null and examScore.userId!=''"> |
| | | and es.user_id = #{examScore.userId} |
| | | </if> |
| | | <if test="examScore.examType!=null and examScore.examType!=''"> |
| | | and ke.exam_type = #{examScore.examType} |
| | | </if> |
| | | <if test="examScore.candidateNo!=null and examScore.candidateNo!=''"> |
| | | and es.candidate_no = #{examScore.candidateNo} |
| | |
| | | exam_score) b |
| | | </select> |
| | | |
| | | <!----> |
| | | <!--根据用户身份证号查询考试成绩--> |
| | | <select id="getExamScoreInfoByIdCardNo" resultType="org.springblade.modules.exam.entity.ExamScore"> |
| | | select |
| | | es.* |
| | |
| | | bu.id = es.user_id |
| | | where |
| | | bu.cardid = #{idCardNo} |
| | | and es.exam_id = #{examId} |
| | | </select> |
| | | </mapper> |