From 6b110c93a1fb5392401e0674db0dd807ea82a12f Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 14 Dec 2021 14:41:40 +0800
Subject: [PATCH] 1. 实操成绩导入修改 2. 定时任务配置多线程执行 3. 保安员查询修改

---
 src/main/java/org/springblade/modules/system/mapper/UserMapper.xml |    8 +++++++-
 1 files changed, 7 insertions(+), 1 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 0f849a8..561990c 100644
--- a/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -142,7 +142,12 @@
             and bu.real_name like concat('%', #{user.realName},'%')
         </if>
         <if test="user.dispatch!=null and user.dispatch != ''">
-            and bu.dispatch = #{user.dispatch}
+            <if test="user.dispatch == 0">
+                and bu.dispatch = #{user.dispatch}
+            </if>
+            <if test="user.dispatch == 1">
+                and bu.dispatch = #{user.dispatch}
+            </if>
         </if>
         <if test="user.userType!=null and user.userType != ''">
             and bu.user_type = #{user.userType}
@@ -682,6 +687,7 @@
     <!--导出保安员信息-->
     <select id="exportSecurityInfo" resultType="org.springblade.modules.system.excel.SecurityExcel">
         select
+        distinct bu.id,
         bd.dept_name deptId,
         bu.real_name realName,
         bu.phone,

--
Gitblit v1.9.3