From 8251e38ec083e97a277b515a0464f4c54f57a706 Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Thu, 4 Aug 2022 13:53:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=91=84=E5=83=8F=E5=A4=B4=E5=85=A8?= =?UTF-8?q?=E9=83=A8=E6=8A=93=E5=9B=BEsql=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../monitormanage/mapper/CameraChannelMapper.java | 3 ++- .../hisense/monitormanage/service/MonitorService.java | 8 ++++---- src/main/resources/mapper/CameraChannelMapper.xml | 9 --------- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/hisense/monitormanage/mapper/CameraChannelMapper.java b/src/main/java/com/hisense/monitormanage/mapper/CameraChannelMapper.java index 2a7e710..5d5f8a3 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/CameraChannelMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/CameraChannelMapper.java @@ -58,6 +58,7 @@ public interface CameraChannelMapper extends BaseMapper { List selectNLAll(@Param("page") Integer page,@Param("pageSize") Integer pageSize); - @Select("SELECT * FROM t_camera_channel WHERE channel_code < '183_37028301831315320208' AND channel_code > '183_37028301001328630804' ORDER BY channel_code DESC") + @Select("SELECT * FROM t_camera_channel WHERE channel_code < '129_37021204121310498775' AND channel_code > '113_37021303001310021614' ORDER BY channel_code DESC") List selectCameraChannel(); + } diff --git a/src/main/java/com/hisense/monitormanage/service/MonitorService.java b/src/main/java/com/hisense/monitormanage/service/MonitorService.java index 81ef856..3ca2417 100644 --- a/src/main/java/com/hisense/monitormanage/service/MonitorService.java +++ b/src/main/java/com/hisense/monitormanage/service/MonitorService.java @@ -41,7 +41,7 @@ import java.util.List; @Service @Log4j2 -public class MonitorService { +public class MonitorService{ @Autowired private RestTemplate restTemplate; @@ -217,7 +217,7 @@ public class MonitorService { /** * 工地农贸市场抓图 */ - @Scheduled(cron = "0 0 8 1/1 * ?") + @Scheduled(cron = "0 0 8 * * ?") public void construction() { try { @@ -308,7 +308,7 @@ public class MonitorService { * 所有摄像头抓图 sql持续更新 */ @Scheduled(cron = "0 0 6 * * ?") - public void CameraScreenshot () { + public void CameraScreenshot() { try { log.info("[monitor-capture]: start capture"); @@ -338,6 +338,7 @@ public class MonitorService { exception.printStackTrace(); } } + /** * 海水浴场人群图片算法识别 */ @@ -1067,7 +1068,6 @@ public class MonitorService { exception.printStackTrace(); } } - } diff --git a/src/main/resources/mapper/CameraChannelMapper.xml b/src/main/resources/mapper/CameraChannelMapper.xml index b78de4b..09a880a 100644 --- a/src/main/resources/mapper/CameraChannelMapper.xml +++ b/src/main/resources/mapper/CameraChannelMapper.xml @@ -1,20 +1,11 @@ - - - - - - -