From a48bfb982f8237aad00e8a0a6a69ced0782761a5 Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Mon, 13 Apr 2020 14:20:40 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=90=8C=E6=84=8F=E9=82=80=E8=AF=B7?= =?UTF-8?q?=E8=BF=9B=E7=BB=84=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9=E3=80=81?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E5=B0=8F=E7=BB=84=E7=95=8C=E9=9D=A2=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/group/form/InitApplyCreatedGroupFormDTO.java | 3 +++ .../modules/group/service/ResiGroupService.java | 3 ++- .../group/service/impl/ResiGroupServiceImpl.java | 10 +++++++--- .../service/impl/GroupInvitationServiceImpl.java | 12 ++++++------ .../member/service/GroupMemeberOperationService.java | 6 ++++++ .../impl/GroupMemeberOperationServiceImpl.java | 11 +++++++++++ .../service/impl/ResiGroupMemberServiceImpl.java | 7 +++++-- .../java/com/epmet/dto/form/UserRoleFormDTO.java | 5 ++++- 8 files changed, 44 insertions(+), 13 deletions(-) diff --git a/epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/group/form/InitApplyCreatedGroupFormDTO.java b/epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/group/form/InitApplyCreatedGroupFormDTO.java index 92b65101cd..263c46f286 100644 --- a/epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/group/form/InitApplyCreatedGroupFormDTO.java +++ b/epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/group/form/InitApplyCreatedGroupFormDTO.java @@ -16,6 +16,9 @@ public class InitApplyCreatedGroupFormDTO implements Serializable { @NotBlank(message = "客户id不能为空") private String customerId; + @NotBlank(message = "当前网格id为空") + private String gridId; + /** * 用户id TokenDto赋值 */ diff --git a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/ResiGroupService.java b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/ResiGroupService.java index 329158b9af..39bac55512 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/ResiGroupService.java +++ b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/ResiGroupService.java @@ -198,9 +198,10 @@ public interface ResiGroupService extends BaseService { * @param app * @param userId * @param customerId + * @param gridId * @Author yinzuomei * @Description 判断用户当前角色 * @Date 2020/4/1 0:00 **/ - UserRoleDTO checkPartyMemberOrWarmHeated(String app, String userId, String customerId); + UserRoleDTO checkPartyMemberOrWarmHeated(String app, String userId, String customerId, String gridId); } diff --git a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/impl/ResiGroupServiceImpl.java b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/impl/ResiGroupServiceImpl.java index ee936b3911..1ea9ea65b4 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/impl/ResiGroupServiceImpl.java +++ b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/impl/ResiGroupServiceImpl.java @@ -328,7 +328,8 @@ public class ResiGroupServiceImpl extends BaseServiceImpl> userRoleListResult = epmetUserFeignClient.getUserRoleInfo(userRoleFormDTO); if (!userRoleListResult.success()) { logger.info("获取用户角色feign调用失败" + userRoleListResult.getMsg()); diff --git a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/invitation/service/impl/GroupInvitationServiceImpl.java b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/invitation/service/impl/GroupInvitationServiceImpl.java index c2e0b5a842..81c857b950 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/invitation/service/impl/GroupInvitationServiceImpl.java +++ b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/invitation/service/impl/GroupInvitationServiceImpl.java @@ -309,10 +309,13 @@ public class GroupInvitationServiceImpl extends BaseServiceImpl Date: Mon, 13 Apr 2020 14:39:19 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E7=94=A8=E6=88=B6=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=AC=8A=E9=99=90=E6=9F=A5=E8=A9=A2sql=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0gridId=E6=A0=A1=E9=A9=97=EF=BC=8C?= =?UTF-8?q?=E7=86=B1=E5=BF=83=E5=B1=85=E6=B0=91=EF=BC=9A=E7=B6=B2=E6=A0=BC?= =?UTF-8?q?=E7=B4=9A=E5=88=A5=EF=BC=8C=E6=B3=A8=E5=86=8A=E5=B1=85=E6=B0=91?= =?UTF-8?q?=E8=88=87=E9=BB=A8=E5=93=A1=EF=BC=9A=E5=AE=A2=E6=88=B6=E7=B4=9A?= =?UTF-8?q?=E5=88=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/UserRoleDao.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/epmet-user/epmet-user-server/src/main/resources/mapper/UserRoleDao.xml b/epmet-user/epmet-user-server/src/main/resources/mapper/UserRoleDao.xml index e33db2134f..c41c2685f2 100644 --- a/epmet-user/epmet-user-server/src/main/resources/mapper/UserRoleDao.xml +++ b/epmet-user/epmet-user-server/src/main/resources/mapper/UserRoleDao.xml @@ -41,6 +41,14 @@ AND ur.CUSTOMER_ID = #{customerId} + + AND + ( ur.GRID_ID = #{gridId} OR ur.GRID_ID = 'all' ) + + + AND + ur.GRID_ID = 'all' + From 9d7b03401037c0d3eb34c4ad40e85255d621c5c3 Mon Sep 17 00:00:00 2001 From: wangchao Date: Mon, 13 Apr 2020 17:58:10 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=BF=9B=E5=85=A5=E7=BD=91=E6=A0=BC?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BD=91=E6=A0=BCId=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/epmet/service/impl/RegisterRelationServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/RegisterRelationServiceImpl.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/RegisterRelationServiceImpl.java index 790793dd10..233807ba86 100644 --- a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/RegisterRelationServiceImpl.java +++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/RegisterRelationServiceImpl.java @@ -242,6 +242,7 @@ public class RegisterRelationServiceImpl extends BaseServiceImpl roleList = userRoleDao.getUserRoleInfo(userRoleFormDTO); List roleListString = new ArrayList<>(); for(UserRoleResultDTO role : roleList){