| | |
| | | <result column="dispatch" property="dispatch"/> |
| | | <result column="my_picture" property="myPicture"/> |
| | | <result column="is_apply" property="isApply"/> |
| | | <result column="deptname" property="deptname"/> |
| | | <result column="is_apply" property="isApply"/> |
| | | <result column="is_train" property="isTrain"/> |
| | | <result column="birthtime" property="birthtime"/> |
| | | </resultMap> |
| | | |
| | |
| | | and dept_id=#{deptid} |
| | | </if> |
| | | </select> |
| | | |
| | | <!--查询当前年份已有的保安证编号--> |
| | | <select id="getSecurityPaperCount" resultType="java.lang.Integer"> |
| | | 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> |