From f2536eabccb502afd1c299b55697a94f9617773c Mon Sep 17 00:00:00 2001 From: sunyuchao Date: Sat, 11 Apr 2020 10:18:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A5=BC=E9=99=A2=E5=B0=8F=E7=BB=84-=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E7=BB=84=E6=88=90=E5=91=98-=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet/modules/constant/UserMessageConstant.java | 10 ---------- .../com/epmet/modules/exception/ModuleErrorCode.java | 10 ++++++++++ .../com/epmet/modules/feign/EpmetUserFeignClient.java | 2 +- .../service/impl/ResiGroupStatisticalServiceImpl.java | 7 ++++--- .../service/impl/ResiGroupMemberServiceImpl.java | 11 ++++++----- .../topic/service/impl/ResiTopicServiceImpl.java | 3 ++- 6 files changed, 23 insertions(+), 20 deletions(-) diff --git a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/constant/UserMessageConstant.java b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/constant/UserMessageConstant.java index 9f979acedf..f6e33a7ce8 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/constant/UserMessageConstant.java +++ b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/constant/UserMessageConstant.java @@ -26,15 +26,5 @@ public interface UserMessageConstant { */ String INVITED_JOIN_GROUP = "您的好友-【%s】通过邀请连接,加入了【%s】"; - String DATA_ACQUISITION_FAILED = "数据库数据获取失败"; - - String DELETE_SUCCESS = "组成员删除成功"; - - String DELETE_FAILED = "组成员删除失败"; - - /** - * 删除组成员时对应话题操作日志表设置默认的屏蔽理由 - */ - String DELETE_MEMBER_REASON = "删除组成员,屏蔽该成员话题"; } diff --git a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/exception/ModuleErrorCode.java b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/exception/ModuleErrorCode.java index 481935dd64..c21bded4a8 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/exception/ModuleErrorCode.java +++ b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/exception/ModuleErrorCode.java @@ -22,5 +22,15 @@ import com.epmet.commons.tools.exception.ErrorCode; */ public interface ModuleErrorCode extends ErrorCode { + String DATA_ACQUISITION_FAILED = "数据库数据获取失败"; + + String DELETE_SUCCESS = "组成员删除成功"; + + String DELETE_FAILED = "组成员删除失败"; + + /** + * 删除组成员时对应话题操作日志表设置默认的屏蔽理由 + */ + String DELETE_MEMBER_REASON = "删除组成员,屏蔽该成员话题"; } diff --git a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/feign/EpmetUserFeignClient.java b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/feign/EpmetUserFeignClient.java index 575d610516..72c34fedcb 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/feign/EpmetUserFeignClient.java +++ b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/feign/EpmetUserFeignClient.java @@ -21,7 +21,7 @@ import java.util.List; * @Author yinzuomei * @Date 2020/3/16 14:48 */ -@FeignClient(name = ServiceConstant.EPMET_USER_SERVER, fallback = EpmetUserFeignClientFallback.class) +@FeignClient(name = ServiceConstant.EPMET_USER_SERVER, fallback = EpmetUserFeignClientFallback.class,url="http://localhost:8087") public interface EpmetUserFeignClient { /** diff --git a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/impl/ResiGroupStatisticalServiceImpl.java b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/impl/ResiGroupStatisticalServiceImpl.java index 82296c2023..a75a34e049 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/impl/ResiGroupStatisticalServiceImpl.java +++ b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/impl/ResiGroupStatisticalServiceImpl.java @@ -29,6 +29,7 @@ import com.epmet.commons.tools.utils.Result; import com.epmet.dto.form.UserRoleFormDTO; import com.epmet.dto.result.UserRoleResultDTO; import com.epmet.modules.constant.UserMessageConstant; +import com.epmet.modules.exception.ModuleErrorCode; import com.epmet.modules.feign.EpmetUserFeignClient; import com.epmet.modules.group.dao.ResiGroupStatisticalDao; import com.epmet.modules.group.entity.ResiGroupEntity; @@ -124,7 +125,7 @@ public class ResiGroupStatisticalServiceImpl extends BaseServiceImpl> resultList = epmetUserFeignClient.getUserRoleInfo(userRoleFormDTO); if (!resultList.success()) { - result.error(UserMessageConstant.DATA_ACQUISITION_FAILED); + result.error(ModuleErrorCode.DATA_ACQUISITION_FAILED); return result; } for (UserRoleResultDTO userRole : resultList.getData()) { diff --git a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/member/service/impl/ResiGroupMemberServiceImpl.java b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/member/service/impl/ResiGroupMemberServiceImpl.java index ae38a58103..418d5b504b 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/member/service/impl/ResiGroupMemberServiceImpl.java +++ b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/member/service/impl/ResiGroupMemberServiceImpl.java @@ -33,6 +33,7 @@ import com.epmet.dto.form.UserResiInfoListFormDTO; import com.epmet.dto.result.UserResiInfoResultDTO; import com.epmet.feign.MessageFeignClient; import com.epmet.modules.constant.UserMessageConstant; +import com.epmet.modules.exception.ModuleErrorCode; import com.epmet.modules.feign.EpmetUserFeignClient; import com.epmet.modules.group.service.ResiGroupService; import com.epmet.modules.group.service.ResiGroupStatisticalService; @@ -432,16 +433,16 @@ public class ResiGroupMemberServiceImpl extends BaseServiceImpl