智慧保安后台管理-外网项目备份
Administrator
2021-08-14 eeb3c3a505d3ea2e03e5755b51538ed8c3003681
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -310,4 +310,22 @@
        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>