| | |
| | | param = new PrivilegeGroupRequest(); |
| | | param.setPageNo(curPage); |
| | | param.setPageSize(100); |
| | | BaseResponse<PrivilegeGroupListResponse> response = HKService.privilegeGroup(param); |
| | | // BaseResponse<PrivilegeGroupListResponse> response = HKService.privilegeGroup(param); |
| | | // if(response == null || !StringUtils.equals(response.getCode(), HKConstants.RESPONSE_SUCCEE)){ |
| | | // response = HKService.privilegIccmeGroup(param);//接口V1版本不存在,调用iccm版本接口 |
| | | // } |
| | | BaseResponse<PrivilegeGroupListResponse> response = HKService.privilegIccmeGroup(param);//接口V1版本不存在,调用iccm版本接口 |
| | | if(response == null || !StringUtils.equals(response.getCode(), HKConstants.RESPONSE_SUCCEE)){ |
| | | response = HKService.privilegIccmeGroup(param);//接口V1版本不存在,调用iccm版本接口 |
| | | } |
| | | if(response == null || !StringUtils.equals(response.getCode(), HKConstants.RESPONSE_SUCCEE)){ |
| | | response = HKService.privilegIccmeGroup(param); |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(), "对不起,海康同步数据失败~"); |
| | | } |
| | | PrivilegeGroupListResponse r = response.getData(); |