| | |
| | | select ifnull(max(0+RIGHT(securitynumber,5)),0) from blade_user |
| | | where securitynumber like concat('%',#{pre},'%') |
| | | </select> |
| | | |
| | | <!--查询保安员信息--> |
| | | <select id="getSecurityInfoByIdCardNo" resultType="org.springblade.modules.system.vo.UserDTO"> |
| | | select |
| | | bu.real_name realName, |
| | | bd.dept_name as deptName, |
| | | if(bu.sex=1,'男','女') sex, |
| | | bu.cardid |
| | | from |
| | | blade_user bu left join blade_dept bd on bu.dept_id = bd.id |
| | | where |
| | | bu.is_deleted = 0 |
| | | and role_id = '1412226235153731586' |
| | | and bu.status = 1 |
| | | and bu.cardid = #{user.cardid} |
| | | </select> |
| | | </mapper> |