修复工作
This commit is contained in:
@@ -56,10 +56,10 @@ server {
|
|||||||
proxy_request_buffering off;
|
proxy_request_buffering off;
|
||||||
chunked_transfer_encoding on;
|
chunked_transfer_encoding on;
|
||||||
|
|
||||||
# 设置超时时间(视频流长连接)
|
# 设置超时时间(视频流长连接)- 增加到2小时
|
||||||
proxy_connect_timeout 60s;
|
proxy_connect_timeout 120s;
|
||||||
proxy_send_timeout 3600s;
|
proxy_send_timeout 7200s;
|
||||||
proxy_read_timeout 3600s;
|
proxy_read_timeout 7200s;
|
||||||
|
|
||||||
# 请求头
|
# 请求头
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
@@ -71,6 +71,9 @@ server {
|
|||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
|
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
|
||||||
add_header Access-Control-Allow-Headers '*';
|
add_header Access-Control-Allow-Headers '*';
|
||||||
|
|
||||||
|
# 禁用限速
|
||||||
|
proxy_limit_rate 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
# 视频流代理(HLS)
|
# 视频流代理(HLS)
|
||||||
|
|||||||
@@ -1,133 +1,158 @@
|
|||||||
package com.ruoyi.video.domain;
|
package com.ruoyi.video.domain;
|
||||||
|
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 巡检任务实体类
|
* 巡检任务对象 v_inspection_task
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-09-27
|
||||||
*/
|
*/
|
||||||
public class InspectionTask {
|
public class InspectionTask extends BaseEntity {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** 巡检任务ID */
|
/** 巡检任务ID */
|
||||||
private Long taskId;
|
private Long taskId;
|
||||||
|
|
||||||
|
/** 任务名称 */
|
||||||
|
private String taskName;
|
||||||
|
|
||||||
/** 设备ID */
|
/** 设备ID */
|
||||||
private Long deviceId;
|
private Long deviceId;
|
||||||
|
|
||||||
|
/** 设备名称 */
|
||||||
|
private String deviceName;
|
||||||
|
|
||||||
|
/** Cron表达式 */
|
||||||
|
private String cronExpression;
|
||||||
|
|
||||||
/** 巡检时长(秒) */
|
/** 巡检时长(秒) */
|
||||||
private Integer duration;
|
private Integer duration;
|
||||||
|
|
||||||
/** 视频对象存储ID */
|
/** 任务状态(0=启用,1=停用) */
|
||||||
private Long videoOssId;
|
private String status;
|
||||||
|
|
||||||
/** 处理后视频对象存储ID */
|
/** 是否启用检测(0=启用,1=停用) */
|
||||||
private Long processedVideoOssId;
|
private String enableDetection;
|
||||||
|
|
||||||
/** 视频状态(0-未录制,1-已录制未分析,2-已分析) */
|
/** 检测阈值 */
|
||||||
private Integer videoStatus;
|
private BigDecimal threshold;
|
||||||
|
|
||||||
/** 任务状态(0-待执行,1-执行中,2-已完成) */
|
/** 最后执行时间 */
|
||||||
private Integer status;
|
private Date lastExecuteTime;
|
||||||
|
|
||||||
/** 创建时间 */
|
/** 下次执行时间 */
|
||||||
private Date createTime;
|
private Date nextExecuteTime;
|
||||||
|
|
||||||
/** 更新时间 */
|
/** 执行次数 */
|
||||||
private Date updateTime;
|
private Long executeCount;
|
||||||
|
|
||||||
/** 备注 */
|
/** 报警次数 */
|
||||||
private String remark;
|
private Long alarmCount;
|
||||||
|
|
||||||
public Long getTaskId() {
|
|
||||||
return taskId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTaskId(Long taskId) {
|
public void setTaskId(Long taskId) {
|
||||||
this.taskId = taskId;
|
this.taskId = taskId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Long getTaskId() {
|
||||||
|
return taskId;
|
||||||
|
}
|
||||||
|
|
||||||
public Long getDeviceId() {
|
public void setTaskName(String taskName) {
|
||||||
return deviceId;
|
this.taskName = taskName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskName() {
|
||||||
|
return taskName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDeviceId(Long deviceId) {
|
public void setDeviceId(Long deviceId) {
|
||||||
this.deviceId = deviceId;
|
this.deviceId = deviceId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getDuration() {
|
public Long getDeviceId() {
|
||||||
return duration;
|
return deviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeviceName(String deviceName) {
|
||||||
|
this.deviceName = deviceName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeviceName() {
|
||||||
|
return deviceName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCronExpression(String cronExpression) {
|
||||||
|
this.cronExpression = cronExpression;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCronExpression() {
|
||||||
|
return cronExpression;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDuration(Integer duration) {
|
public void setDuration(Integer duration) {
|
||||||
this.duration = duration;
|
this.duration = duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getVideoOssId() {
|
public Integer getDuration() {
|
||||||
return videoOssId;
|
return duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVideoOssId(Long videoOssId) {
|
public void setStatus(String status) {
|
||||||
this.videoOssId = videoOssId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getProcessedVideoOssId() {
|
|
||||||
return processedVideoOssId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setProcessedVideoOssId(Long processedVideoOssId) {
|
|
||||||
this.processedVideoOssId = processedVideoOssId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getVideoStatus() {
|
|
||||||
return videoStatus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setVideoStatus(Integer videoStatus) {
|
|
||||||
this.videoStatus = videoStatus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStatus(Integer status) {
|
|
||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getCreateTime() {
|
public String getStatus() {
|
||||||
return createTime;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCreateTime(Date createTime) {
|
public void setEnableDetection(String enableDetection) {
|
||||||
this.createTime = createTime;
|
this.enableDetection = enableDetection;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getUpdateTime() {
|
public String getEnableDetection() {
|
||||||
return updateTime;
|
return enableDetection;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUpdateTime(Date updateTime) {
|
public void setThreshold(BigDecimal threshold) {
|
||||||
this.updateTime = updateTime;
|
this.threshold = threshold;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRemark() {
|
public BigDecimal getThreshold() {
|
||||||
return remark;
|
return threshold;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRemark(String remark) {
|
public void setLastExecuteTime(Date lastExecuteTime) {
|
||||||
this.remark = remark;
|
this.lastExecuteTime = lastExecuteTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public Date getLastExecuteTime() {
|
||||||
* 获取ID的兼容方法,保持与原有代码兼容
|
return lastExecuteTime;
|
||||||
*/
|
|
||||||
public Long getId() {
|
|
||||||
return taskId;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public void setNextExecuteTime(Date nextExecuteTime) {
|
||||||
* 设置ID的兼容方法,保持与原有代码兼容
|
this.nextExecuteTime = nextExecuteTime;
|
||||||
*/
|
}
|
||||||
public void setId(Long id) {
|
|
||||||
this.taskId = id;
|
public Date getNextExecuteTime() {
|
||||||
|
return nextExecuteTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExecuteCount(Long executeCount) {
|
||||||
|
this.executeCount = executeCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getExecuteCount() {
|
||||||
|
return executeCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAlarmCount(Long alarmCount) {
|
||||||
|
this.alarmCount = alarmCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAlarmCount() {
|
||||||
|
return alarmCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user