From ad2e1ca53b3957017f9c6428ce2bf49bfa7ac169 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 07 Jun 2022 14:30:31 +0800
Subject: [PATCH] 保安员新增逻辑修改,保安员内网已新增,外网么有的时候,如果是更新的状态,则查询外网是否存在该用户,如果不存在则新增,存在则更新

---
 src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml b/src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml
index 40f24f0..163405d 100644
--- a/src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml
@@ -486,7 +486,7 @@
         (select
         bu.id,
         bu.dept_id parentId,
-        bu.real_name AS title,
+        bu.account AS title,
         bu.id AS "value",
         bu.id AS "key",
         0 as "has_children"
@@ -552,7 +552,7 @@
         (select
         bu.id,
         bu.dept_id parentId,
-        bu.real_name AS title,
+        bu.account AS title,
         bu.id AS "value",
         bu.id AS "key",
         0 as "has_children"
@@ -608,7 +608,7 @@
         (select
         bu.id,
         bu.dept_id parentId,
-        bu.real_name AS title,
+        bu.account AS title,
         bu.id AS "value",
         bu.id AS "key",
         0 as "has_children"

--
Gitblit v1.9.3