| | |
| | | package com.ycl.task; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.sun.jna.ptr.IntByReference; |
| | | import com.ycl.dto.video.Camera; |
| | | import com.ycl.dto.video.PageResult; |
| | | import com.ycl.entity.video.VideoPoint; |
| | |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.io.File; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | |
| | | @Autowired |
| | | private VideoUtil videoUtil; |
| | | |
| | | // @Scheduled(cron = "0 */5 * * * ?") // 每5分钟执行 |
| | | // @Scheduled(cron = "0 */5 * * * ?") // 每5分钟执行 |
| | | @Scheduled(cron = "0 0 1 * * ?") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void scheduledTask() { |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | private void findVideoList(Integer pageNo, Integer pageSize) { |
| | | try { |
| | | PageResult<Camera> pageResult = videoUtil.callPostCameras(pageNo, pageSize, "0"); |