From f122d0833830dcfdea4eac8f664ab2d96ee8ec13 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Fri, 03 Dec 2021 15:12:26 +0800
Subject: [PATCH] 1.首页押运人员

---
 src/main/java/org/springblade/modules/system/mapper/UserMapper.xml |    7 +++++--
 1 files changed, 5 insertions(+), 2 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 a0561e9..85a88ef 100644
--- a/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -257,8 +257,11 @@
         <if test="user.securitynumber!=null and user.securitynumber != ''">
             and bu.securitynumber like concat('%', #{user.securitynumber},'%')
         </if>
-        <if test="user.deptId!=null and user.deptId!=''">
+        <if test="user.deptId!=null and user.deptId!='' and user.deptId!='1460129345988239362'">
             and bu.dept_id =#{user.deptId}
+        </if>
+        <if test="user.type!=null">
+            and bu.equipment_code is not null
         </if>
         <if test="user.useName==null or user.useName==''">
             order by bu.id
@@ -375,7 +378,7 @@
         and bd.parent_id!=1425365577303621633
         and bd.id != 1425365577303621633
         and bd.id != 1432625856013971457
-        <if test="user.deptId!=null and user.deptId!=''">
+        <if test="user.deptId!=null and user.deptId!='' and user.deptId!='1460129345988239362'">
             and bd.id in
             (
             select id from blade_dept where id = #{user.deptId}

--
Gitblit v1.9.3