视频监控在线状态改为3分钟更新一次

This commit is contained in:
guoshengxiong 2025-10-23 17:44:30 +08:00
parent d8616fa68d
commit 97f36b579d

View File

@ -10,7 +10,6 @@ import com.zhgd.xmgl.modules.video.entity.VideoItem;
import com.zhgd.xmgl.modules.video.mapper.VideoItemMapper;
import com.zhgd.xmgl.util.HikVideoUtil;
import com.zhgd.xmgl.util.YsVideoUtil;
import lombok.extern.log4j.Log4j;
import lombok.extern.slf4j.Slf4j;
import net.javacrumbs.shedlock.core.SchedulerLock;
import org.apache.commons.lang3.StringUtils;
@ -44,7 +43,7 @@ public class VideoTask {
private String serverUrl;
@SchedulerLock(name = "updateVideoState", lockAtMostFor = 1000 * 60 * 60, lockAtLeastFor = 1000 * 60 * 5)
@Scheduled(cron = "0 0 */1 * * ?")
@Scheduled(cron = "0 */3 * * * ?")
@RequestMapping("updateVideoState")
public void updateVideoState() {
try {