| | |
| | | and es.qualified = #{examScore.qualified} |
| | | </if> |
| | | <if test="examScore.startTime!=null and examScore.startTime!=''"> |
| | | and bu.paper_time >= #{examScore.startTime} |
| | | and es.exam_time >= #{examScore.startTime} |
| | | </if> |
| | | <if test="examScore.endTime!=null and examScore.endTime!=''"> |
| | | and bu.paper_time <= #{examScore.endTime} |
| | | and es.exam_time <= #{examScore.endTime} |
| | | </if> |
| | | order by es.id desc |
| | | </select> |
| | |
| | | </if> |
| | | order by es.id desc |
| | | </select> |
| | | |
| | | <!--根据用户身份证号查询考试成绩--> |
| | | <select id="getExamScoreInfoByIdCardNo" resultType="org.springblade.modules.exam.entity.ExamScore"> |
| | | select |
| | | es.* |
| | | from |
| | | exam_score es |
| | | left join |
| | | blade_user bu |
| | | on |
| | | bu.id = es.user_id |
| | | left join |
| | | ksxt_exam ke |
| | | on |
| | | ke.id = es.exam_id |
| | | where |
| | | bu.cardid = #{idCardNo} |
| | | and DATE_FORMAT(ke.start_time,'%Y-%m-%d') = #{startTime} |
| | | </select> |
| | | </mapper> |