| | |
| | | ifnull(TIMESTAMPDIFF(YEAR, SUBSTRING(bu.cardid, 7, 8), CURDATE()),0) AS age, |
| | | sll.longitude,sll.latitude, |
| | | bud.unit_name, |
| | | bud.permanent_residence_address as registered, |
| | | bd.dept_name |
| | | from |
| | | blade_user bu |
| | |
| | | </if> |
| | | <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 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},'%') |
| | | </if> |
| | |
| | | |
| | | <!--通过 身份证号查询用户信息--> |
| | | <select id="getUserInfoByIdCardNo" resultType="org.springblade.modules.system.entity.User"> |
| | | SELECT id, name, real_name RealName,securitynumber |
| | | SELECT id, name, real_name RealName,securitynumber,dept_id |
| | | FROM blade_user |
| | | where 1=1 |
| | | and is_deleted = 0 |
| | |
| | | </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 |
| | |
| | | WHERE bu.is_deleted = 0 and bu.id = #{id} |
| | | |
| | | </select> |
| | | <select id="getUserInfoByIdCardNoAndSecurityNumber" |
| | | resultType="org.springblade.modules.system.entity.User"> |
| | | |
| | | SELECT id, name, real_name RealName,securitynumber,dept_id |
| | | FROM blade_user |
| | | where 1=1 |
| | | and is_deleted = 0 |
| | | and status = 1 |
| | | and cardid = #{cardid} |
| | | and securitynumber = #{securityNumber} |
| | | </select> |
| | | |
| | | |
| | | </mapper> |