| | |
| | | id |
| | | </select> |
| | | <select id="getList" resultType="org.springblade.modules.exam.vo.ExamScoreVO"> |
| | | SELECT * FROM ( |
| | | SELECT |
| | | es.id,es.theory_grade theoryGrade,ifnull(learn_grade,-1) learnGrade,es.user_id userId,es.exam_id examId, |
| | | es.exam_time examTime,all_grade allGrade,exam_end_time examEndTime,qualified,es.candidate_no candidateNo, |
| | | 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,bd.id as deptId,bu.user_type isPaper,bud.unit_name unitName |
| | | bd.dept_name companyName,bd.id as deptId,bu.user_type isPaper,bud.unit_name unitName, |
| | | CASE WHEN ssir.id IS NULL THEN |
| | | '未签到' ELSE '已签到' |
| | | END AS state |
| | | from |
| | | exam_score es |
| | | left join ksxt_exam ke on ke.id = es.exam_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 |
| | | LEFT JOIN sys_sign_in_records ssir ON ssir.candidate_no = str.candidate_no |
| | | 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!=''"> |
| | |
| | | <if test="examScore.sortName==null or examScore.sortName==''"> |
| | | order by es.id desc |
| | | </if> |
| | | ) result WHERE 1=1 |
| | | <if test="examScore.state != null and examScore.state !='' "> |
| | | AND result.state = #{examScore.state} |
| | | </if> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </select> |
| | |
| | | */ |
| | | private String unitName; |
| | | |
| | | //签到情况 |
| | | private String state; |
| | | } |
| | |
| | | return R.data(userInfoDetail); |
| | | } |
| | | |
| | | @PostMapping("/batchAudit") |
| | | public R batchAudit(String ids,String auditStatus){ |
| | | boolean result = userService.batchAudit(ids,auditStatus); |
| | | return R.status(result); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | * 是否冻结 0:否 1:是 |
| | | */ |
| | | private Integer isFreeze; |
| | | // |
| | | // /** |
| | | // * 审核状态:1、审核通过;2、审核不通过 10、待审核 |
| | | // */ |
| | | // private Integer auditStatus; |
| | | |
| | | /** |
| | | * 审核状态:1、审核通过;2、审核不通过 10、待审核 |
| | | */ |
| | | private Integer auditStatus; |
| | | } |
| | |
| | | List<User> getNotGlList(); |
| | | |
| | | UserInfoDetail getUserInfoDetail(@Param("id") String id); |
| | | |
| | | boolean batchAudit(@Param("ids") String ids, @Param("auditStatus") String auditStatus); |
| | | } |
| | |
| | | <if test="user.roleId!=null and user.roleId != ''"> |
| | | and bu.role_id = #{user.roleId} |
| | | </if> |
| | | <if test="user.auditStatus != null and user.auditStatus != ''"> |
| | | and bu.audit_status = #{user.auditStatus} |
| | | </if> |
| | | <if test="user.roleAlias!=null and user.roleAlias != ''"> |
| | | and br.role_alias = '保安' |
| | | </if> |
| | |
| | | </if> |
| | | <if test="user.userType!=null and user.userType != ''"> |
| | | and bu.user_type = #{user.userType} |
| | | </if> |
| | | <if test="user.auditStatus != null and user.auditStatus != ''"> |
| | | and bu.audit_status = #{user.auditStatus} |
| | | </if> |
| | | <if test="user.securitynumber!=null and user.securitynumber != ''"> |
| | | and bu.securitynumber like concat('%', #{user.securitynumber},'%') |
| | |
| | | </choose> |
| | | </update> |
| | | |
| | | |
| | | <update id="batchAudit"> |
| | | UPDATE BLADE_USER SET audit_status = #{auditStatus} |
| | | WHERE is_deleted = 0 and id in |
| | | <foreach collection="ids.split(',')" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <!--判断是否报名--> |
| | | <select id="getUserIsApply" resultType="org.springblade.modules.system.entity.User"> |
| | | select bu.* from blade_user bu |
| | |
| | | Boolean wxRegister(User user); |
| | | |
| | | UserInfoDetail getUserInfoDetail(String id); |
| | | |
| | | boolean batchAudit(String ids, String auditStatus); |
| | | } |
| | |
| | | public UserInfoDetail getUserInfoDetail(String id) { |
| | | return baseMapper.getUserInfoDetail(id); |
| | | } |
| | | |
| | | @Override |
| | | public boolean batchAudit(String ids, String auditStatus) { |
| | | return baseMapper.batchAudit(ids,auditStatus); |
| | | } |
| | | } |