jiangping
2024-01-10 7da512973b40df83aa48fa9b57b4f365466e253b
server/dmvisit_service/src/main/java/com/doumee/core/haikang/service/HKService.java
@@ -703,6 +703,66 @@
        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
     */