智慧保安后台管理-外网项目备份
zhongrj
2023-09-17 8853292babb2ad94de4a3207966f1e83b767cd2d
src/main/java/org/springblade/modules/recruitment/mapper/RecruitmentMapper.xml
@@ -12,10 +12,27 @@
            blade_dept bt
        ON
            sr.dept_id = bt.id
        left join
            sys_information si
        on
            si.departmentid = bt.id
        left join
            sys_jurisdiction sj
        on
            sj.id = si.jurisdiction
        WHERE
            1=1
        <if test="recruitment.jurisdiction!=null and recruitment.jurisdiction!='' and recruitment.jurisdiction!='1372091709474910209'">
            and (sj.id = #{recruitment.jurisdiction} or sj.parent_id = #{recruitment.jurisdiction})
        </if>
        <if test="recruitment.tenantName!=null and  recruitment.tenantName!=''">
            and bt.dept_name like concat('%', #{recruitment.tenantName},'%')
        </if>
        <if test="recruitment.welfare!=null and  recruitment.welfare!=''">
            and sr.welfare like concat('%', #{recruitment.welfare},'%')
        </if>
        <if test="recruitment.unitsScale!=null and  recruitment.unitsScale!=''">
            and sr.units_scale like concat('%', #{recruitment.unitsScale},'%')
        </if>
        <if test="recruitment.province!=null">
            and sr.province = #{recruitment.province}
@@ -29,6 +46,9 @@
        <if test="recruitment.permit!=null">
            and sr.permit = #{recruitment.permit}
        </if>
        <if test="recruitment.deptId!=null">
            and sr.dept_id = #{recruitment.deptId}
        </if>
        <if test="recruitment.education!=null and recruitment.education!=''">
            and sr.education = #{recruitment.education}
        </if>