diff --git a/epmet-commons/epmet-commons-mybatis/pom.xml b/epmet-commons/epmet-commons-mybatis/pom.xml index 502ef21e81..c03f46da90 100644 --- a/epmet-commons/epmet-commons-mybatis/pom.xml +++ b/epmet-commons/epmet-commons-mybatis/pom.xml @@ -72,10 +72,10 @@ - + diff --git a/epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupDao.xml b/epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupDao.xml index e316a46efd..119db46b30 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupDao.xml +++ b/epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupDao.xml @@ -285,17 +285,18 @@ FROM resi_group_member rgm WHERE - rgm.del_flag = 0 - AND rgm.resi_group_id = ALL ( + EXISTS ( SELECT rg.id FROM resi_group rg WHERE rg.del_flag = 0 + AND rgm.resi_group_id = rg.id AND rg.grid_id = #{gridId} - AND rgm.resi_group_id = rg.id ) - AND rgm.customer_user_id = #{userId} + ) + AND rgm.CUSTOMER_USER_ID = #{userId} + AND rgm.del_flag = 0