| | |
| | | *根据配置微信公众号编号查询微信公众号信息 |
| | | * @return |
| | | */ |
| | | public static BaseResponse<BaseListPageResponse<WxConfigInfoResponse>> getWxConfig(WxConfigInfoRequest param){ |
| | | public static BaseResponse< WxConfigInfoResponse> getWxConfig(WxConfigInfoRequest param){ |
| | | log.info("【海康根据配置微信公众号编号查询微信公众号信息】================开始===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.getWxConfig(toMap(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference<BaseResponse<BaseListPageResponse<WxConfigInfoResponse>>>(){}; |
| | | BaseResponse<BaseListPageResponse<WxConfigInfoResponse>> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | new TypeReference<BaseResponse<WxConfigInfoResponse>>(){}; |
| | | BaseResponse<WxConfigInfoResponse> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康根据配置微信公众号编号查询微信公众号信息"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康根据配置微信公众号编号查询微信公众号信息】================失败====:\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *分页获取待办列表 |
| | | * @return |
| | | */ |
| | | public static BaseResponse<BaseListPageResponse<GetTodoListResponse>> getTodoListPage(GetTodoListRequest param){ |
| | | log.info("【海康分页获取待办列表】================开始===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.getTodoListPage(toMap(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference<BaseResponse<BaseListPageResponse<GetTodoListResponse>>>(){}; |
| | | BaseResponse<BaseListPageResponse<GetTodoListResponse>> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康分页获取待办列表"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康分页获取待办列表】================失败====:\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |
| | |
| | | }else if(Constants.equalsInteger(type,Constants.THREE)){ |
| | | menuId = HKConstants.MenuPageId.jsc; |
| | | }else if(Constants.equalsInteger(type,Constants.FOUR)){ |
| | | menuId = HKConstants.MenuPageId.kqgl; |
| | | menuId = HKConstants.MenuPageId.kqgzt; |
| | | } |
| | | log.info("【海康获取工作台菜单免密登陆调整地址】================开始====menuId:"+menuId+"==token:"+token); |
| | | try { |
| | |
| | | return null; |
| | | } |
| | | /** |
| | | *增量车辆查询(分页) |
| | | *人脸评分 |
| | | * @return |
| | | */ |
| | | public static BaseResponse<BaseListPageResponse<VehicleTimeRangeInfoResponse>> facePictureCheck(TimeRangeListRequest param){ |
| | | log.info("【海康增量人员查询】================开始===="+JSONObject.toJSONString(param)); |
| | | public static BaseResponse<FacePictureCheckResponse> facePictureCheck(FacePictureCheckRequest param){ |
| | | log.info("【人脸评分】================开始===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.facePictureCheck(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference< BaseResponse<BaseListPageResponse<VehicleTimeRangeInfoResponse>> >(){}; |
| | | BaseResponse<BaseListPageResponse<VehicleTimeRangeInfoResponse>> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康增量人员查询"); |
| | | new TypeReference<BaseResponse<FacePictureCheckResponse>>(){}; |
| | | BaseResponse<FacePictureCheckResponse> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"人脸评分"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康增量人员查询】================失败====:\n"+ e.getMessage()); |
| | | log.error("【人脸评分】================失败====:\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |