车辆轨迹

develop
hanrenchun 7 months ago
parent d4ae3e21e8
commit 17e7d8662c

@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.ruoyi.business.domain.dto.DevopsVideoInfoDto; import com.ruoyi.business.domain.dto.DevopsVideoInfoDto;
import com.ruoyi.business.domain.vo.DevopsVideoInfoVo;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
@ -14,8 +15,10 @@ import com.ruoyi.common.utils.StringKit;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.database.domain.DevopsVideoInfo; import com.ruoyi.database.domain.DevopsVideoInfo;
import com.ruoyi.database.domain.DevopsVideoStatus; import com.ruoyi.database.domain.DevopsVideoStatus;
import com.ruoyi.database.domain.vo.DevopsVideoInfoVo0;
import com.ruoyi.database.service.DevopsVideoInfoService; import com.ruoyi.database.service.DevopsVideoInfoService;
import com.ruoyi.database.service.DevopsVideoStatusService; import com.ruoyi.database.service.DevopsVideoStatusService;
import com.sun.org.apache.bcel.internal.generic.NEW;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
@ -61,6 +64,22 @@ public class DevopsVideoInfoController extends BaseController {
return getDataTable(list); return getDataTable(list);
} }
@GetMapping("/all")
@ApiOperation("查询视频监控设备表")
public TableDataInfo<DevopsVideoInfoVo0> alllist() {
List<DevopsVideoInfo> list1 = devopsVideoInfoService.list();
ArrayList<DevopsVideoInfoVo0> devopsVideoInfos = new ArrayList<>();
for (DevopsVideoInfo devopsVideoInfo1 : list1){
DevopsVideoInfoVo0 devopsVideoInfoVo0 = new DevopsVideoInfoVo0();
devopsVideoInfoVo0.setDeviceName(devopsVideoInfo1.getDeviceName());
devopsVideoInfoVo0.setLongitude(devopsVideoInfo1.getLongitude()+"");
devopsVideoInfoVo0.setLatitude(devopsVideoInfo1.getLatitude()+"");
devopsVideoInfos.add(devopsVideoInfoVo0);
}
return getDataTable(devopsVideoInfos);
}
@PostMapping("/boundary") @PostMapping("/boundary")
@ApiOperation("边界列表") @ApiOperation("边界列表")
public TableDataInfo<DevopsVideoInfo> list( public TableDataInfo<DevopsVideoInfo> list(

@ -0,0 +1,24 @@
package com.ruoyi.database.domain.vo;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
/**
* (DevopsVideoInfo)Domain
*
* @author makejava
* @since 2023-12-01 20:06:03
*/
@Data
public class DevopsVideoInfoVo0 {
/**
*
*/
private String deviceName;
private String longitude;
private String latitude;
}

@ -90,7 +90,7 @@ public interface MetaAlarmInfoMapper extends BaseMapper<MetaAlarmInfo> {
"alarm_response_unit LIKE '射阳县公安局交通警察大队临海中队' OR " + "alarm_response_unit LIKE '射阳县公安局交通警察大队临海中队' OR " +
" alarm_response_unit LIKE '射阳县公安局黄沙河边防派出所第三警务区' " + " alarm_response_unit LIKE '射阳县公安局黄沙河边防派出所第三警务区' " +
") " + ") " +
" AND DATE(informant_time) = CURDATE() " + // " AND DATE(informant_time) = CURDATE() " +
" ORDER BY informant_time DESC LIMIT 100) a") " ORDER BY informant_time DESC LIMIT 100) a")
public List<MetaAlarmInfoAndHandleAlarmVo> listAlarmAndHandleAlarm(); public List<MetaAlarmInfoAndHandleAlarmVo> listAlarmAndHandleAlarm();

Loading…
Cancel
Save