| | |
| | | sa.id,sa.apply_status applyStatus,sa.user_id userId,sa.candidate_no candidateNo,apply_time,exam_id examId, |
| | | sa.examination_type examinationType,sa.examination_mx examinationMx, |
| | | ke.total_score paperScore,ke.exam_type examType,ke.start_time examTime,ke.exam_name examName, |
| | | bu.real_name realName,bu.is_apply isApply, TIMESTAMPDIFF(YEAR, bu.birthday, CURDATE()) age, |
| | | bu.real_name realName,bu.is_apply isApply, ifnull(DATE_FORMAT(NOW(), '%Y') - SUBSTRING(bu.cardid,7,4),0) age, |
| | | bd.dept_name deptName,bu.cardid idCardNo,"保安证" applyCard |
| | | FROM |
| | | sys_apply sa |
| | |
| | | and sa.examination_type = #{apply.examinationType} |
| | | </if> |
| | | <if test="apply.applyStatus!=null"> |
| | | and apply_status = #{apply.applyStatus} |
| | | and sa.exam_id is null |
| | | </if> |
| | | <if test="apply.applyExamType!=null"> |
| | | and apply_exam_type = #{apply.applyExamType} |
| | |
| | | } |
| | | |
| | | /** |
| | | * 导入用户 |
| | | * 导入用户page-security-apply |
| | | */ |
| | | @PostMapping("import-user") |
| | | @ApiOperationSupport(order = 12) |
| | |
| | | |
| | | <select id="securityLazyTree" resultMap="treeNodeResultMap" > |
| | | SELECT |
| | | DISTINCT |
| | | dept.id, |
| | | dept.parent_id, |
| | | dept.dept_name AS title, |
| | |
| | | si.departmentid = dept.id |
| | | WHERE |
| | | 1=1 |
| | | and (stats = 1 or stats =2 or stats =4) |
| | | and dept_category = 1 |
| | | AND dept.is_deleted = 0 |
| | | and dept.id !=1420222961377357825 |
| | | and dept.parent_id!=1420222961377357825 |
| | | <if test="param1!=null and param1!='' and param1!='1123598813738675201'"> |
| | | and si.jurisdiction = #{param1} |
| | | </if> |
| | | ORDER BY dept.sort |
| | | </select> |
| | | |
| | | <!--懒加载获取部门树形结构(按分类查询)--> |
| | |
| | | blade_dept bd |
| | | on |
| | | bu.dept_id = bd.id |
| | | left join |
| | | blade_role br |
| | | on |
| | | br.id = bu.role_id |
| | | where |
| | | bu.is_deleted = 0 |
| | | and |
| | | bd.dept_category = 1 |
| | | and bd.dept_category = 1 |
| | | and role_alias = '保安' |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and bu.real_name like concat(concat('%', #{user.realName}),'%') |
| | | </if> |
| | |
| | | </if> |
| | | <if test="user.status!=null and user.status != ''"> |
| | | and bu.status = #{user.status} |
| | | </if> |
| | | <if test="user.hold!=null and user.hold != ''"> |
| | | and bu.hold = #{user.hold} |
| | | </if> |
| | | <if test="user.jurisdiction!=null and user.jurisdiction != ''"> |
| | | and bu.jurisdiction = #{user.jurisdiction} |
| | |
| | | bu.id, |
| | | bu.avatar, |
| | | bu.securitynumber securityNumber, |
| | | ifnull(TIMESTAMPDIFF(YEAR, bu.birthday, CURDATE()),0) age, |
| | | ifnull(DATE_FORMAT(NOW(), '%Y') - SUBSTRING( cardid,7,4),0) age, |
| | | bu.real_name realName, |
| | | bu.sex, |
| | | bd.dept_name deptName |