| | |
| | | * @return |
| | | */ |
| | | public static BaseResponse<IccmAppointmentMDJResponse> iccmAppiontmentMDJ(IccmAppointmentMDJRequest param){ |
| | | log.info("【海康访客免登记预约】================开始===="+JSONObject.toJSONString(param)); |
| | | log.info("【海康访客免登记预约】================iccm开始===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.visitAppiontmentMDJ(JSONObject.toJSONString(param)); |
| | | String res = HKTools.iccmAppointmentMDJ(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()); |
| | | log.error("【海康访客免登记预约】================iccm失败====:\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |