| | |
| | | int reportType; |
| | | if (systemUser == null) { |
| | | superiorId = loginUserInfoVO.getCommunityId(); |
| | | currentId = loginUserInfoVO.getCommunityId(); |
| | | currentId = loginUserInfoVO.getUserId(); |
| | | if (Objects.isNull(superiorId)) { |
| | | throw new ServiceException("上报失败,请绑定社区"); |
| | | } |
| | |
| | | } else if (accountLevel == ReportTypeEnum.DISTRICT.getCode()) { |
| | | superiorId = 510400L; // 攀枝花市 |
| | | currentId = Long.parseLong(systemUser.getDistrictsCode()); |
| | | } else if (accountLevel == ReportTypeEnum.PARTY.getCode()) { |
| | | superiorId = systemUser.getCommunityId(); |
| | | currentId = loginUserInfoVO.getUserId(); |
| | | } else { |
| | | // 处理未预期的账号等级 |
| | | throw new ServiceException("未知的账号等级"); |