| | |
| | | ke.exam_name examName,date_format(ke.start_time,'%Y-%m-%d') startTime,date_format(ke.end_time,'%Y-%m-%d %H:%i:%s') endTime, |
| | | str.is_exam isExam, |
| | | bu.real_name securityName,company,bu.account,bu.sex,bu.paper_time paperTime,bu.securitynumber securityNumber,bu.avatar, |
| | | bd.dept_name companyName,bu.user_type isPaper,bu.unit_name unitName |
| | | bd.dept_name companyName,bu.user_type isPaper,bud.unit_name unitName |
| | | from |
| | | exam_score es |
| | | left join |
| | | ksxt_exam ke |
| | | on |
| | | ke.id = es.exam_id |
| | | left join |
| | | blade_user bu |
| | | on |
| | | es.user_id = bu.id |
| | | left join |
| | | blade_dept bd |
| | | on |
| | | bd.id = bu.dept_id |
| | | left join ksxt_exam ke on ke.id = es.exam_id |
| | | left join blade_user bu on es.user_id = bu.id |
| | | left join blade_user_detail bud on bud.user_id = bu.id |
| | | left join blade_dept bd on bd.id = bu.dept_id |
| | | left join sys_information si on si.departmentid = bd.id |
| | | left join sys_jurisdiction sj on sj.id = si.jurisdiction |
| | | left join |
| | | sys_training_registration str |
| | | on |
| | | str.id = es.apply_id |
| | | where |
| | | 1=1 and es.is_deleted = 0 |
| | | left join sys_training_registration str on str.id = es.apply_id |
| | | where 1=1 and es.is_deleted = 0 |
| | | and (str.is_exam = 2 or str.is_exam = 3 or str.is_exam = 4 or str.is_exam = 5) |
| | | <if test="examScore.examName!=null and examScore.examName!=''"> |
| | | and ke.exam_name like concat('%', #{examScore.examName},'%') |
| | |
| | | and bd.dept_name like concat('%', #{examScore.companyName},'%') |
| | | </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 bu.real_name like concat('%', #{examScore.securityName},'%') |
| | |
| | | <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},'%') |
| | |
| | | <select id="getExamScoreList" resultType="org.springblade.modules.exam.excel.ExportExamScoreExcel"> |
| | | SELECT |
| | | ke.exam_name examName, |
| | | bu.real_name securityName,bu.cardid idCardNo,bu.unit_name unitName,bu.securitynumber as securityNumber, |
| | | bu.real_name securityName,bu.cardid idCardNo,bu.securitynumber as securityNumber, |
| | | bd.dept_name companyName, |
| | | es.exam_time examTime,exam_end_time examEndTime,es.candidate_no candidateNo,bu.registered, |
| | | es.exam_time examTime,exam_end_time examEndTime,es.candidate_no candidateNo, |
| | | es.theory_grade theoryGrade, |
| | | case when es.learn_grade=0 then '合格' |
| | | when es.learn_grade=1 then '不合格' |
| | |
| | | case when es.qualified=0 then '合格' |
| | | when es.qualified=1 then '不合格' |
| | | when es.qualified=2 then '暂未录入实操成绩' |
| | | end as qualified |
| | | end as qualified, |
| | | bud.marriage_status marriageStatus,bud.sign_level signLevel,bud.unit_name unitName, |
| | | bud.permanent_residence_address permanentResidenceAddress,bud.dwell_address dwellAddress, |
| | | bud.member_of_family memberOfFamily,bud.work_experience workExperience,bud.education_experience educationExperience, |
| | | bud.acceptance_police_unit acceptancePoliceUnit,bud.acceptance_person acceptancePerson,bud.acceptance_time acceptanceTime |
| | | from exam_score es |
| | | left join ksxt_exam ke on ke.id = es.exam_id |
| | | left join blade_user bu on es.user_id = bu.id |
| | | left join blade_user bu on es.user_id = bu.id and bu.is_deleted = 0 |
| | | left join blade_user_detail bud on bud.user_id = bu.id and bud.is_deleted = 0 |
| | | left join blade_dept bd on bd.id = bu.dept_id |
| | | left join sys_training_registration str on str.id = es.apply_id |
| | | left join sys_information si on si.departmentid = bd.id |
| | |
| | | and bd.dept_name like concat('%', #{examScore.companyName},'%') |
| | | </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 bu.real_name like concat('%', #{examScore.securityName},'%') |