diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/registry.conf b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/registry.conf
index d1b22b160..b5f089840 100644
--- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/registry.conf
+++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/registry.conf
@@ -3,7 +3,7 @@ registry {
type = "nacos"
nacos {
- serverAddr = "47.104.224.45"
+ serverAddr = "@nacos.server-addr@"
namespace = "@nacos.namespace@"
cluster = "default"
}
@@ -14,7 +14,7 @@ config {
type = "nacos"
nacos {
- serverAddr = "47.104.224.45"
+ serverAddr = "@nacos.server-addr@"
namespace = "@nacos.namespace@"
cluster = "default"
}
diff --git a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/UserDao.xml b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/UserDao.xml
index 5210a79d0..af642d3bc 100644
--- a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/UserDao.xml
+++ b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/UserDao.xml
@@ -637,16 +637,17 @@
AND DATE_FORMAT( u.CREATED_TIME, '%Y-%m-%d' ) BETWEEN #{startTime} and #{endTime}
- ) USER
- WHERE
- USER.DEPT_ID IN
+ and u.DEPT_ID IN
#{deptId}
- and USER.real_name like '%${realName}%'
- and USER.NICKNAME like '%${nickname}%'
- and USER.mobile like '%${mobile}%'
- and USER.identity_no like '%${identityNo}%'
+ and u.real_name like '%${realName}%'
+ and u.NICKNAME like '%${nickname}%'
+ and u.mobile like '%${mobile}%'
+ and u.identity_no like '%${identityNo}%'
+ ) USER
+ WHERE
+ 1 = 1
AND (find_in_set(#{streetId},USER.PARENT_DEPT_IDS)
OR find_in_set(#{streetId},USER.ALL_DEPT_IDS))
@@ -749,15 +750,17 @@
and DATE_FORMAT(u.CREATED_TIME,'%Y-%m-%d') between #{startTime} and #{endTime}
- ) user
- where user.DEPT_ID IN
+ and u.DEPT_ID IN
#{deptId}
- and user.real_name like '%${realName}%'
- and user.NICKNAME like '%${nickname}%'
- and user.mobile like '%${mobile}%'
- and user.identity_no like '%${identityNo}%'
+ and u.real_name like '%${realName}%'
+ and u.NICKNAME like '%${nickname}%'
+ and u.mobile like '%${mobile}%'
+ and u.identity_no like '%${identityNo}%'
+ ) user
+ where
+ 1 = 1
AND (find_in_set(#{streetId},user.PARENT_DEPT_IDS)
@@ -850,14 +853,14 @@
CREATED_TIME,
id
LIMIT 1
- )) AS DEPT_ID,
- ifnull(
- IF( u.ALL_DEPT_IDS = '', NULL, u.ALL_DEPT_IDS ),
- ( SELECT ALL_DEPT_IDS FROM epdc_user_grid_relation WHERE DEL_FLAG = '0' AND USER_ID = u.ID ORDER BY CREATED_TIME, id LIMIT 1 )
- ) AS ALL_DEPT_IDS
+ )) AS DEPT_ID
FROM
epdc_user u
where u.DEL_FLAG = '0'
+ and u.real_name like '%${realName}%'
+ and u.NICKNAME like '%${nickname}%'
+ and u.mobile like '%${mobile}%'
+ and u.identity_no like '%${identityNo}%'
and DATE_FORMAT(u.CREATED_TIME,'%Y-%m-%d') between #{startTime} and
#{endTime}
) user
@@ -1272,12 +1275,12 @@
and uu.NICKNAME like '%${nickname}%'
and uu.mobile like '%${mobile}%'
and uu.identity_no like '%${identityNo}%'
- ) user
- where user.DEL_FLAG = '0'
- AND user.dept_id IN
+ AND uu.dept_id IN
#{deptId}
+ ) user
+ where user.DEL_FLAG = '0'
AND (find_in_set(#{streetId},user.PARENT_DEPT_IDS)