| | |
| | | // 判断角色,物业角色只能查询当前小区的 |
| | | |
| | | String userRole = AuthUtil.getUserRole(); |
| | | if (userRole.equals("wygly")) { |
| | | if (userRole.contains("wygly")) { |
| | | IPropertyDistrictUserService bean = SpringUtils.getBean(IPropertyDistrictUserService.class); |
| | | List<String> strings = bean.selectPropertyDistrictByUserId(AuthUtil.getUserId()); |
| | | propertyCapitalApply.setDistrictIdList(strings); |
| | |
| | | IOwnersCommitteeService bean = SpringUtils.getBean(IOwnersCommitteeService.class); |
| | | OwnersCommitteeEntity one = bean.getOne(Wrappers.<OwnersCommitteeEntity>lambdaQuery() |
| | | .eq(OwnersCommitteeEntity::getAreaId, applyVO.getDistrictId()) |
| | | .eq(OwnersCommitteeEntity::getDeleteFlag,0) |
| | | .eq(OwnersCommitteeEntity::getStatus,0) |
| | | .last("limit 1")); |
| | | Integer ownersCommitteeFlag = CommonConstant.NUMBER_TWO; |
| | | if (one != null && one.getPrincipalId() != null) { |