同步摄像头通道信息后删除掉经纬度有空的通道

This commit is contained in:
yitonglei 2022-07-21 18:18:26 +08:00
parent 8de4de904f
commit fc66ef062b
2 changed files with 9 additions and 2 deletions

View File

@ -7,6 +7,7 @@ import io.renren.modules.monitor.dto.CameraChannelNLDto;
import io.renren.modules.monitor.dto.ChannelLabelDto;
import io.renren.modules.monitor.entity.CameraChannel;
import io.renren.modules.monitor.entity.Label;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
@ -71,4 +72,7 @@ public interface CameraChannelMapper extends BaseDao<CameraChannel> {
List<Map> selectChannelNumByRegion();
void batchSaveMtmLabel(@Param("list") List<Map<String,Object>> list);
@Delete("delete from t_camera_channel where gps_x is null or gps_y is null or gps_x = '' or gps_y = '' ")
void deleteByNonPlace();
}

View File

@ -1312,10 +1312,13 @@ public class MonitorService {
CompletableFuture.allOf(completableFutureLis.toArray(new CompletableFuture[completableFutureLis.size()])).join();
//6-更新完通道信息后查询地区下通道的数量并更新到地区表和市区表中
//6-更新完通道信息后,删除经度或纬度为空的视频通道信息
cameraChannelMapper.deleteByNonPlace();
//7-查询地区下通道的数量并更新到地区表和市区表中
editChannelCount();
//7-同步武伟达的t_channel_mtm_label数据
//8-同步武伟达的t_channel_mtm_label数据
synchronizeMtmLabel();
}