对摄像头全部抓图sql更新
This commit is contained in:
parent
09f78d6db9
commit
8251e38ec0
|
@ -58,6 +58,7 @@ public interface CameraChannelMapper extends BaseMapper<CameraChannel> {
|
||||||
|
|
||||||
List<CameraChannelNLDto> selectNLAll(@Param("page") Integer page,@Param("pageSize") Integer pageSize);
|
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();
|
List<CameraChannel> selectCameraChannel();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@Log4j2
|
@Log4j2
|
||||||
public class MonitorService {
|
public class MonitorService{
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private RestTemplate restTemplate;
|
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() {
|
public void construction() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -308,7 +308,7 @@ public class MonitorService {
|
||||||
* 所有摄像头抓图 sql持续更新
|
* 所有摄像头抓图 sql持续更新
|
||||||
*/
|
*/
|
||||||
@Scheduled(cron = "0 0 6 * * ?")
|
@Scheduled(cron = "0 0 6 * * ?")
|
||||||
public void CameraScreenshot () {
|
public void CameraScreenshot() {
|
||||||
try {
|
try {
|
||||||
log.info("[monitor-capture]: start capture");
|
log.info("[monitor-capture]: start capture");
|
||||||
|
|
||||||
|
@ -338,6 +338,7 @@ public class MonitorService {
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 海水浴场人群图片算法识别
|
* 海水浴场人群图片算法识别
|
||||||
*/
|
*/
|
||||||
|
@ -1067,7 +1068,6 @@ public class MonitorService {
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,11 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!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">
|
<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 id="selectAll" resultType="com.hisense.monitormanage.dto.CameraChannelDto">
|
||||||
select c.* from t_camera_channel c
|
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'))
|
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
|
AND c.status != 0 AND c.check_status != 0
|
||||||
<!-- <bind name="page" value="(page-1)*pageSize"/>-->
|
|
||||||
<!-- limit #{page},#{pageSize}-->
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="updateCameraStatus" parameterType="java.util.List">
|
<update id="updateCameraStatus" parameterType="java.util.List">
|
||||||
|
|
Loading…
Reference in New Issue