对摄像头全部抓图sql更新

This commit is contained in:
wuweida 2022-08-04 13:53:45 +08:00
parent 09f78d6db9
commit 8251e38ec0
3 changed files with 6 additions and 14 deletions

View File

@ -58,6 +58,7 @@ public interface CameraChannelMapper extends BaseMapper<CameraChannel> {
List<CameraChannelNLDto> 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<CameraChannel> selectCameraChannel();
}

View File

@ -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();
}
}
}

View File

@ -1,20 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hisense.monitormanage.mapper.CameraChannelMapper">
<!-- <update id="updateState" parameterType="java.util.List">-->
<!-- <foreach collection="list" item="item" index="index" open="begin" close=";end;" separator=";">-->
<!-- update CameraChannel set state =#{item.estAmount,jdbcType=NUMERIC}-->
<!-- where t.licai_id = #{item.licaiId,jdbcType=NUMERIC}-->
<!-- </foreach>-->
<!-- </update>-->
<select id="selectAll" resultType="com.hisense.monitormanage.dto.CameraChannelDto">
select c.* from t_camera_channel c
where (c.gps_x NOT IN('0.0','0','','-1000.0') OR c.gps_y NOT IN('0.0','0','','-1000.0'))
AND c.status != 0 AND c.check_status != 0
<!-- <bind name="page" value="(page-1)*pageSize"/>-->
<!-- limit #{page},#{pageSize}-->
</select>
<update id="updateCameraStatus" parameterType="java.util.List">