tangzy
2021-07-10 653cc78fc3c3400b924cfe8e97b0f8bc9e2eb5c5
src/main/java/org/springblade/modules/recruitment/mapper/RecruitmentMapper.xml
@@ -5,17 +5,17 @@
    <!--招聘分页信息-->
    <select id="selectRecruitmentPage" resultType="org.springblade.modules.recruitment.vo.RecruitmentVo">
        SELECT
            sr.*,bt.tenant_name AS tenantName
            sr.*,bt.dept_name AS tenantName
        FROM
            sys_recruitment sr
        LEFT JOIN
            blade_tenant bt
            blade_dept bt
        ON
            sr.tenant_id = bt.tenant_id
            sr.dept_id = bt.id
        WHERE
            1=1
        <if test="recruitment.tenantName!=null and  recruitment.tenantName!=''">
            and bt.tenant_name like concat('%', #{recruitment.tenantName},'%')
            and bt.dept_name like concat('%', #{recruitment.tenantName},'%')
        </if>
        <if test="recruitment.province!=null">
            and sr.province = #{recruitment.province}
@@ -54,17 +54,17 @@
    <!--招聘详情信息-->
    <select id="selectRecruitmentInfo" resultType="org.springblade.modules.recruitment.vo.RecruitmentVo">
        SELECT
            sr.*,bt.tenant_name AS tenantName
            sr.*,bt.dept_name AS tenantName
        FROM
            sys_recruitment sr
        LEFT JOIN
            blade_tenant bt
            blade_dept bt
        ON
            sr.tenant_id = bt.tenant_id
            sr.dept_id = bt.id
        WHERE
            1=1
        <if test="recruitment.id!=null">
            and sr.id &lt;= #{recruitment.id}
            and sr.id = #{recruitment.id}
        </if>
    </select>
</mapper>