| | |
| | | <select id="scorePage" resultType="org.springblade.modules.exam.vo.ExamScoreVO"> |
| | | SELECT |
| | | exam.*, |
| | | user.jurisdiction,user.real_name securityName,user.unit_name unitName, |
| | | user.jurisdiction,user.real_name securityName,bud.unit_name unitName, |
| | | ke.exam_name examName,sis.enterpriseName trainingUnitName,ke.start_time examStartTime |
| | | FROM |
| | | exam_score exam |
| | | left join blade_user user on exam.user_id = user.id |
| | | left join blade_user_detail bud on bud.user_id = user.id |
| | | left join sys_information si on si.departmentid = user.dept_id |
| | | left join sys_jurisdiction sj on sj.id = si.jurisdiction |
| | | left join ksxt_exam ke on exam.exam_id = ke.id |
| | | left join sys_training_registration str on str.id = exam.apply_id |
| | | left join sys_information sis on sis.departmentid = str.training_unit_id |
| | | WHERE |
| | | 1 = 1 |
| | | WHERE 1 = 1 |
| | | and ke.exam_type = 2 and exam.is_deleted = 0 |
| | | <if test="examScore.jurisdiction!=null and examScore.jurisdiction!='' and examScore.jurisdiction!='1372091709474910209'"> |
| | | and (sj.id = #{examScore.jurisdiction} or sj.parent_id = #{examScore.jurisdiction}) |
| | | </if> |
| | | <if test="examScore.unitName!=null and examScore.unitName!=''"> |
| | | and bu.unit_name like concat('%', #{examScore.unitName},'%') |
| | | and bud.unit_name like concat('%', #{examScore.unitName},'%') |
| | | </if> |
| | | <if test="examScore.securityName!=null and examScore.securityName!=''"> |
| | | AND user.real_name like concat('%',#{examScore.securityName},'%') |