| | |
| | | member.setRoleIds(param.getRoleIds()); |
| | | member.setCompanyId(Objects.isNull(company)?null:company.getId()); |
| | | member.setErpOrgId(param.getOrgId()); |
| | | member.setCanVisit(Constants.ONE); |
| | | // member.setStartTime(request.getStartTime()); |
| | | // member.setEndTime(request.getEndTime()); |
| | | return member; |
| | |
| | | for (DeviceRole deviceRole:deviceRoleList) { |
| | | RoleListResponse roleListResponse = new RoleListResponse(); |
| | | BeanUtils.copyProperties(deviceRole,roleListResponse); |
| | | if(deviceRole.getType().equals(Constants.TWO)){ |
| | | roleListResponse.setType(Constants.ONE); |
| | | }else{ |
| | | roleListResponse.setType(Constants.ZERO); |
| | | } |
| | | if(StringUtils.isNotBlank(deviceRole.getDoorIds())){ |
| | | List<DeviceListResponse> DeviceListResponseList = new ArrayList<>(); |
| | | List<String> doorList = Arrays.asList(deviceRole.getDoorIds().split(",")); |