nidapeng
2024-04-10 6c5d0a4a9264b7508c7ffe81b45ba239cabf2244
server/dmvisit_service/src/main/java/com/doumee/core/haikang/service/HKService.java
@@ -153,16 +153,16 @@
     * @return
     */
    public  static  BaseResponse<List<UserDelResponse>>  delBatchUser(UserDelRequest param){
        log.info("【海康批量新增人员】================开始===="+JSONObject.toJSONString(param));
        log.info("【海康批量删除人员】================开始===="+JSONObject.toJSONString(param));
        try {
            String res = HKTools.delBatchUser(JSONObject.toJSONString(param));
            TypeReference typeReference =
                    new TypeReference< BaseResponse<List<UserDelResponse>>>(){};
            BaseResponse<List<UserDelResponse >> result = JSONObject.parseObject(res, typeReference.getType());
            logResult(result,"海康批量新增人员");
            logResult(result,"海康批量删除人员");
            return  result;
        }catch (Exception e){
            log.error("【海康批量新增人员】================失败====:\n"+ e.getMessage());
            log.error("【海康批量删除人员】================失败====:\n"+ e.getMessage());
        }
        return  null;
    }
@@ -981,6 +981,24 @@
        }
        return  null;
    }
    /**
     *查询场内车停车信息(分页)
     * @return
     */
    public  static  BaseResponse<BaseListPageResponse<TempCarInRecordInfoResponse>>   tempCarInRecords(TempCarInRecordListRequest param){
        log.info("【海康查询场内车停车信息】================开始===="+JSONObject.toJSONString(param));
        try {
            String res = HKTools.tempCarInRecords(JSONObject.toJSONString(param));
            TypeReference typeReference =
                    new TypeReference< BaseResponse<BaseListPageResponse<TempCarInRecordInfoResponse>> >(){};
            BaseResponse<BaseListPageResponse<TempCarInRecordInfoResponse>>   result = JSONObject.parseObject(res, typeReference.getType());
            logResult(result,"海康查询场内车停车信息");
            return  result;
        }catch (Exception e){
            log.error("【海康查询场内车停车信息】================失败====:\n"+ e.getMessage());
        }
        return  null;
    }
    private static void logResult(BaseResponse res,String name) {
        if(StringUtils.equals(res.getCode(),HKConstants.RESPONSE_SUCCEE)){
            log.info("【"+name+"】================成功====\n"+res);