From 188ed7f38446d6f87a4a444e0f07afbcceb41f73 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 30 Aug 2021 18:09:15 +0800
Subject: [PATCH] 派遣人员查询接口修改

---
 src/main/java/org/springblade/modules/system/mapper/UserMapper.xml |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml b/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
index 78233e0..a41b587 100644
--- a/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -447,4 +447,40 @@
             and dept_category=2
         </if>
     </select>
+
+
+    <!--获取工作汇报 向民警-->
+    <select id="getWorkReportInfos" resultType="java.util.HashMap">
+        select bu.* from blade_user bu
+        left join
+        blade_dept bd
+        on
+        bd.id = bu.dept_id
+        where
+        1=1
+        and bu.status = 1
+        and bu.is_deleted = 0
+        <if test="deptid!=null and deptid!=''">
+            and bu.dept_id = #{deptid}
+        </if>
+        <if test="jurisdiction!=null and jurisdiction!=''">
+            and bu.jurisdiction = #{jurisdiction}
+            and dept_category=2
+        </if>
+    </select>
+
+    <!--查询用的派遣信息-->
+    <select id="getDispatcherInfoByUserId" resultType="org.springblade.modules.dispatcher.vo.DispatcherVO">
+        select
+            sd.id,sdu.jurisdiction
+        from
+            sys_dispatcher sd
+        left join
+            sys_dispatcher_unit sdu
+        on
+            sdu.id = sd.dispatcher_unit_id
+        where sd.user_ids = #{userId}
+        and sd.status = 0
+    </select>
+
 </mapper>

--
Gitblit v1.9.3