| | |
| | | return null; |
| | | } |
| | | /** |
| | | *海康退卡 |
| | | * @return |
| | | */ |
| | | public static BaseResponse cardDeletion(CardDeletionRequest param){ |
| | | log.info("【海康退卡】================开始===="+JSONObject.toJSONString(param)); |
| | | String res = null; |
| | | try { |
| | | res = HKTools.cardDeletion(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference< BaseResponse >(){}; |
| | | BaseResponse result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康退卡"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康退卡】================失败====:\n"+ e.getMessage()); |
| | | }finally { |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *海康批量挂失 |
| | | * @return |
| | | */ |
| | | public static BaseResponse cardLoss(CardLossRequest param){ |
| | | log.info("【海康批量挂失】================开始===="+JSONObject.toJSONString(param)); |
| | | String res = null; |
| | | try { |
| | | res = HKTools.cardDeletion(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference< BaseResponse >(){}; |
| | | BaseResponse result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康批量挂失"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康批量挂失】================失败====:\n"+ e.getMessage()); |
| | | }finally { |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *海康批量解挂 |
| | | * @return |
| | | */ |
| | | public static BaseResponse cardUnLoss(CardLossRequest param){ |
| | | log.info("【海康批量解挂】================开始===="+JSONObject.toJSONString(param)); |
| | | String res = null; |
| | | try { |
| | | res = HKTools.cardUnloss(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference< BaseResponse >(){}; |
| | | BaseResponse result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康批量解挂"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康批量解挂】================失败====:\n"+ e.getMessage()); |
| | | }finally { |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *海康查询设备通道的人员权限下载详情 |
| | | * @return |
| | | */ |