| | |
| | | return null; |
| | | } |
| | | /** |
| | | *访客预约 |
| | | * @return |
| | | */ |
| | | public static BaseResponse<IccmAppointmentResponse> iccmAppointment(IccmAppointmentRequest param){ |
| | | log.info("【海康访客预约】================开始===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.iccmAppointment(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference< BaseResponse<IccmAppointmentResponse>>(){}; |
| | | BaseResponse<IccmAppointmentResponse> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康访客预约"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康访客预约】================失败====:\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *访客预约取消 |
| | | * @return |
| | | */ |
| | |
| | | return null; |
| | | } |
| | | /** |
| | | *访客免登记预约 |
| | | * @return |
| | | */ |
| | | public static BaseResponse<IccmAppointmentMDJResponse> iccmAppiontmentMDJ(IccmAppointmentMDJRequest param){ |
| | | log.info("【海康访客免登记预约】================开始===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.visitAppiontmentMDJ(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference< BaseResponse<IccmAppointmentMDJResponse> >(){}; |
| | | BaseResponse<IccmAppointmentMDJResponse> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康访客免登记预约"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康访客免登记预约】================失败====:\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *访客权限组列表查询(分页) |
| | | * @return |
| | | */ |