From cc057177b2fb17aee9a173a6adbabdc578fd74c7 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Mon, 06 Dec 2021 10:30:44 +0800
Subject: [PATCH] 1.许可

---
 src/main/java/org/springblade/modules/recruitment/mapper/RecruitmentMapper.xml |   28 ++++++++++++++++++++--------
 1 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/src/main/java/org/springblade/modules/recruitment/mapper/RecruitmentMapper.xml b/src/main/java/org/springblade/modules/recruitment/mapper/RecruitmentMapper.xml
index 45e5ef3..a3f6648 100644
--- a/src/main/java/org/springblade/modules/recruitment/mapper/RecruitmentMapper.xml
+++ b/src/main/java/org/springblade/modules/recruitment/mapper/RecruitmentMapper.xml
@@ -5,17 +5,23 @@
     <!--招聘分页信息-->
     <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.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}
@@ -25,6 +31,12 @@
         </if>
         <if test="recruitment.district!=null">
             and sr.district = #{recruitment.district}
+        </if>
+        <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}
@@ -54,17 +66,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>

--
Gitblit v1.9.3