添加定时7月4号早上一点跑一遍摄像头和组织表

重点区域实体类创建
This commit is contained in:
wuweida 2022-07-01 15:47:02 +08:00
parent 1aaf4edd25
commit e6ea65d3ba
7 changed files with 41 additions and 3 deletions

View File

@ -314,7 +314,8 @@ public class QidiController {
@ApiOperation("查询工地信息,根据经纬度和半径从表中查询")
@ApiImplicitParams({
@ApiImplicitParam(name="longitude",value = "经度",paramType = "query",required = true,dataType = "double"),
@ApiImplicitParam(name="longitude",value = "经度",paramType = "query",required = true,dataType = "double")
@ApiImplicitParam(name="longitude",value = "经度",paramType = "query",required = true,dataType = "double"),
@ApiImplicitParam(name = "radius",value = "半径",paramType = "query",required = true,dataType = "Integer")
})
public Result listBuildingSiteByPoints(double longitude,double latitude,Integer radius){
List<BuildingSite> list = new ArrayList<>();

View File

@ -5,7 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("t_camera_channel")
@TableName("t_camera_channel_copy")
public class CameraChannel {
@TableId

View File

@ -5,7 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("t_camera_organization")
@TableName("t_camera_organization_copy")
public class CameraOrganization {
@TableId
private String id;

View File

@ -0,0 +1,19 @@
package com.hisense.monitormanage.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("t_key_area")
public class KeyArea {
@TableId
private Integer id;
private String type;//类型
private String name;//名称
private String location;//位置
private String serviceTime;//投用时间
private String management;//管理单位
private String scenicLevel;//景区级别
private String about;//简介
}

View File

@ -0,0 +1,12 @@
package com.hisense.monitormanage.mapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hisense.monitormanage.entity.KeyArea;
import java.util.List;
public interface KeyAreaMapper extends BaseMapper<KeyArea> {
List<KeyArea> seelctKeyAreaList(String timeId);
}

View File

@ -527,6 +527,7 @@ public class MonitorService {
* @throws IOException
* @throws InterruptedException
*/
@Scheduled(cron = "* * 1 4 7 ? *")
public void videoService(String parentId, String path) throws IOException, InterruptedException {
String url = monitorDomain + "/videoService/devicesManager/deviceTree?nodeType=1&typeCode=01;0;ALL;ALL&id=" + parentId;

View File

@ -0,0 +1,5 @@
<?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.KeyAreaMapper">
</mapper>