fuliqi
2024-08-12 cb18d50564b078747a2bf4a30b767ad876a97b6a
HKClient
4个文件已修改
120 ■■■■■ 已修改文件
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/OsdMonitorResult.java 110 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/RecordMetaDSumResult.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/VideoOnlineResult.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-server/src/main/java/com/ycl/feign/HkApiUtil.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/OsdMonitorResult.java
@@ -1,5 +1,6 @@
package com.ycl.platform.domain.result.UY;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ycl.platform.domain.result.BaseResult;
import io.swagger.models.auth.In;
import lombok.Data;
@@ -40,6 +41,7 @@
    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditedTime;
@@ -86,6 +88,7 @@
    /**
     * ocr识别时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ocrTime;
    private Integer timeInfoFormat;
@@ -95,111 +98,4 @@
     */
    private Integer timeInfoMessage;
//    /**
//     * 区域路径信息
//     */
//    @TextIndexed
//    private String arealayerPath;
//
//    /**
//     * 区域名称
//     */
//    @TextIndexed
//    private String arealayername;
//
//    /**
//     * 区域编码
//     */
//    private String arealayerno;
//
//    /**
//     * 设备 ID
//     */
//    @TextIndexed
//    private String deviceId;
//
//    /**
//     * 设备名称
//     */
//    @TextIndexed
//    private String deviceName;
//
//    /**
//     * 图片上的字幕时间和摄像机拉码流时间差是否大于最大值
//     */
//    private String diff;
//
//    /**
//     * 图片上的字幕时间和摄像机拉码流时间差,单位(秒), -1 表示未知
//     */
//    private Integer diffTime;
//
//    /**
//     * IP 地址
//     */
//    @TextIndexed
//    private String ip;
//
//    /**
//     * 图片 ocr 识别结果
//     */
//    private OcrResult ocrResult;
//
//    /**
//     * 图片地址
//     */
//    private String imgPath;
//
//    /**
//     * 状态码,0:正常
//     */
//    private Integer statusCode;
//
//    /**
//     * 图片上的字幕时间和摄像机拉码流时间差,单位(秒)
//     */
//    private String osdFormat;
//
//    /**
//     * osd 信息
//     */
//    private OsdInfo osdInfo;
//
//    /**
//     * 图片上的字幕时间
//     */
//    private String osdTime;
//
//    /**
//     * 摄像机标签
//     */
//    private List<String> tags;
//
//    /**
//     * 更新时间
//     */
//    private String updateTime;
//
//    /**
//     * 视频码流获取时间
//     */
//    private String videoGetTime;
//
//    /**
//     * OCR识别结果的内部类
//     */
//    @Data
//    public static class OcrResult {
//        private List<String> data;
//    }
//
//    /**
//     * osd信息的内部类
//     */
//    @Data
//    public static class OsdInfo {
//        private String timeInfo;
//        private String positionInfo;
//        private String cameraInfo;
//    }
}
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/RecordMetaDSumResult.java
@@ -1,5 +1,6 @@
package com.ycl.platform.domain.result.UY;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ycl.platform.domain.result.BaseResult;
import lombok.Data;
import org.springframework.data.mongodb.core.index.TextIndexed;
@@ -30,6 +31,7 @@
    /**
     * 创建时间,格式为日期时间字符串
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
@@ -72,6 +74,7 @@
    /**
     * 统计时间,格式为日期字符串
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date statTime;
    /**
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/VideoOnlineResult.java
@@ -1,5 +1,6 @@
package com.ycl.platform.domain.result.UY;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ycl.platform.domain.result.BaseResult;
import lombok.Data;
import org.springframework.data.mongodb.core.index.TextIndexed;
@@ -56,6 +57,7 @@
    /**
     * 最近icmp时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date icmpTime;
    /**
     * 关键帧时延
@@ -72,6 +74,7 @@
    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date olErrEverduringFirstTime;
    /**
     * 累计离线故障次数
@@ -116,6 +119,7 @@
    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date vqdTime;
}
ycl-server/src/main/java/com/ycl/feign/HkApiUtil.java
@@ -21,7 +21,6 @@
@Slf4j
public class HkApiUtil {
    /**
     * 调用海康接口
     *
@@ -60,7 +59,7 @@
        try {
            result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, contentType , null);
        } catch (Exception e) {
            log.error("接口:【{}】,调用失败");
            log.error("接口:【{}】,调用失败",apiUrl);
            e.printStackTrace();
        }
        return HkApiUtil.getDataList(JSONObject.parseObject(result), resultType);