Browse Source

优化发布广告bug

java110 3 years ago
parent
commit
5944e78b1e

+ 1 - 1
service-community/src/main/java/com/java110/community/cmd/notice/SaveNoticeCmd.java

@@ -168,7 +168,7 @@ public class SaveNoticeCmd extends Cmd {
             }
             }
         } else {
         } else {
             RoleCommunityDto orgCommunityDto = BeanConvertUtil.covertBean(reqJson, RoleCommunityDto.class);
             RoleCommunityDto orgCommunityDto = BeanConvertUtil.covertBean(reqJson, RoleCommunityDto.class);
-            orgCommunityDto.setStaffId(userDtos.get(0).getStaffId());
+            orgCommunityDto.setStaffId(userDtos.get(0).getUserId());
             count = roleCommunityV1InnerServiceSMOImpl.queryRoleCommunitysCount(orgCommunityDto);
             count = roleCommunityV1InnerServiceSMOImpl.queryRoleCommunitysCount(orgCommunityDto);
             if (count > 0) {
             if (count > 0) {
                 List<RoleCommunityDto> roleCommunityDtos = roleCommunityV1InnerServiceSMOImpl.queryRoleCommunitys(orgCommunityDto);
                 List<RoleCommunityDto> roleCommunityDtos = roleCommunityV1InnerServiceSMOImpl.queryRoleCommunitys(orgCommunityDto);