| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | *车位取消预约 |
| | | * @return |
| | |
| | | }else if(Constants.equalsInteger(type,Constants.FIVE)){ |
| | | componentId = HKConstants.MenuPageId.componentIds[1]; |
| | | menuId = HKConstants.MenuPageId.kqdbcl; |
| | | }else if(Constants.equalsInteger(type,Constants.SIX)){ |
| | | componentId = HKConstants.MenuPageId.componentIds[2]; |
| | | menuId = HKConstants.MenuPageId.stxf; |
| | | // return "https://10.50.250.253:443/xauthplus-plugin/thirdLogin?type=third&service=https://10.50.250.253:443/cems/config/generalCard&token="+token; |
| | | }else if(Constants.equalsInteger(type,7)){ |
| | | menuId = HKConstants.MenuPageId.hqzx; |
| | | } |
| | | log.info("【海康获取工作台菜单免密登陆调整地址】================开始====menuId:"+menuId+"==token:"+token); |
| | | try { |
| | | ///xauthplus-plugin/thirdLogin?type=third&componentId=${componentId}&componentMenuId=${menuId}&token=${token} |
| | | String res = HKTools.getMenuUrl(componentId,menuId,token); |
| | | return res; |
| | | }catch (Exception e){ |
| | |
| | | return null; |
| | | } |
| | | /** |
| | | *根据条件查询目录下有权限的资源列表 |
| | | * @return |
| | | */ |
| | | public static BaseResponse<BaseListPageResponse<ResourcesByParamsResponse>> resourcesByParams(ResourcesByParamsRequest param){ |
| | | log.info("【海康消防看板】根据条件查询目录下有权限的资源列表================开始===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.resourcesByParams(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference< BaseResponse<BaseListPageResponse<ResourcesByParamsResponse> >>(){}; |
| | | BaseResponse<BaseListPageResponse<ResourcesByParamsResponse> > result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"【海康消防看板】根据条件查询目录下有权限的资源列表"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康消防看板】根据条件查询目录下有权限的资源列表================失败====:\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *消防看板-4报警信息统计 |
| | | * @return |
| | | */ |