| | |
| | | <if test="user.score!=null and user.score != ''"> |
| | | and p.score = 3 |
| | | </if> |
| | | ORDER BY bu.id |
| | | ORDER BY bu.id desc |
| | | </select> |
| | | |
| | | |
| | |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and bu.real_name like concat(concat('%', #{user.realName}),'%') |
| | | </if> |
| | | <if test="user.deptName!=null and user.deptName != ''"> |
| | | and bd.dept_name like concat('%', #{user.deptName},'%') |
| | | </if> |
| | | <if test="user.userType!=null and user.userType != ''"> |
| | | and bu.user_type = #{user.userType} |
| | | </if> |
| | |
| | | and bu.securitynumber like concat('%', #{user.securitynumber},'%') |
| | | </if> |
| | | <if test="user.startTime!=null and user.startTime!=''"> |
| | | and bu.paper_time >= #{user.startTime} |
| | | and bu.audit_time >= #{user.startTime} |
| | | </if> |
| | | <if test="user.endTime!=null and user.endTime!=''"> |
| | | and bu.paper_time <= #{user.endTime} |
| | | and bu.audit_time <= #{user.endTime} |
| | | </if> |
| | | <if test="user.useName==null or user.useName==''"> |
| | | order by bu.examination_type desc,bu.id |
| | | order by bu.id desc |
| | | </if> |
| | | <if test="user.useName!=null and user.useName!='' and user.useName=='examinationType'"> |
| | | order by bu.examination_type ${user.sort} |
| | | order by bu.examination_type ${user.sort},bu.id |
| | | </if> |
| | | <if test="user.useName!=null and user.useName!='' and user.useName=='examinationMx'"> |
| | | order by bu.examination_mx ${user.sort} |
| | | order by bu.examination_mx ${user.sort},bu.id |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | bu.phone, |
| | | if(bu.examination_type=1,'异常','正常') examinationType, |
| | | bu.examination_mx examinationMx, |
| | | bu.paper_time paperTime |
| | | bu.audit_time auditTime |
| | | from |
| | | blade_user bu |
| | | left join |
| | |
| | | br.role_alias = "安保人员" |
| | | and |
| | | bu.status = 1 |
| | | and bd.parent_id!=1425365577303621633 |
| | | and bd.id != 1425365577303621633 |
| | | and bd.id != 1432625856013971457 |
| | | <if test="user.jurisdiction!=null and user.jurisdiction != '' and user.jurisdiction != '1372091709474910209'"> |
| | | and (sj.id = #{user.jurisdiction} or sj.parent_id = #{user.jurisdiction}) |
| | | </if> |
| | |
| | | <if test="user.securitynumber!=null and user.securitynumber != ''"> |
| | | and bu.securitynumber like concat('%', #{user.securitynumber},'%') |
| | | </if> |
| | | <if test="user.deptName!=null and user.deptName != ''"> |
| | | and bd.dept_name like concat('%', #{user.deptName},'%') |
| | | </if> |
| | | <if test="user.deptId!=null and user.deptId!=''"> |
| | | and bd.id in |
| | | ( |
| | |
| | | ) |
| | | </if> |
| | | <if test="user.startTime!=null and user.startTime!=''"> |
| | | and bu.paper_time >= #{user.startTime} |
| | | and bu.audit_time >= #{user.startTime} |
| | | </if> |
| | | <if test="user.endTime!=null and user.endTime!=''"> |
| | | and bu.paper_time <= #{user.endTime} |
| | | and bu.audit_time <= #{user.endTime} |
| | | </if> |
| | | <if test="user.examinationType==0"> |
| | | and (bu.examination_type = #{user.examinationType} or bu.examination_type is null or bu.examination_type="") |