| | |
| | | select count(*) from blade_user |
| | | where securitynumber like concat('%', #{pre},'%') |
| | | </select> |
| | | |
| | | <!--查询当前公司未持证保安没有报名的人员--> |
| | | <select id="getNotApplyIdList" resultType="org.springblade.modules.system.entity.User"> |
| | | select DISTINCT |
| | | bu.id,is_apply isApply |
| | | from |
| | | blade_user bu |
| | | left join |
| | | sys_apply sa |
| | | on |
| | | sa.user_id = bu.id |
| | | where 1=1 |
| | | and (hold=2 or hold = 3) |
| | | and (sa.is_exam != 1 or sa.is_exam is null) |
| | | and (bu.is_apply != 1 or bu.is_apply is null) |
| | | and (sa.apply_status !=2 or sa.apply_status is null) |
| | | and bu.dept_id = #{deptId} |
| | | </select> |
| | | </mapper> |