|
|
@ -18,12 +18,14 @@ import com.ruoyi.database.service.DevopsVideoStatusService;
|
|
|
|
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;
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 视频监控设备表(DevopsVideoInfo)Controller
|
|
|
|
* 视频监控设备表(DevopsVideoInfo)Controller
|
|
|
@ -57,27 +59,34 @@ public class DevopsVideoInfoController extends BaseController {
|
|
|
|
List<DevopsVideoInfo> list = devopsVideoInfoService.lambdaQuery().in(DevopsVideoInfo::getGbsChannelNo, strings).list();
|
|
|
|
List<DevopsVideoInfo> list = devopsVideoInfoService.lambdaQuery().in(DevopsVideoInfo::getGbsChannelNo, strings).list();
|
|
|
|
return getDataTable(list);
|
|
|
|
return getDataTable(list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/boundary")
|
|
|
|
@PostMapping("/boundary")
|
|
|
|
@ApiOperation("边界列表")
|
|
|
|
@ApiOperation("边界列表")
|
|
|
|
public TableDataInfo<DevopsVideoInfo> list(
|
|
|
|
public TableDataInfo<DevopsVideoInfo> list(
|
|
|
|
@RequestParam("startLongitude") Double startLongitude,
|
|
|
|
@RequestParam("startLongitude") Double startLongitude,
|
|
|
|
@RequestParam("endLongitude") Double endLongitude,
|
|
|
|
@RequestParam("endLongitude") Double endLongitude,
|
|
|
|
@RequestParam("startLatitude") Double startLatitude,
|
|
|
|
@RequestParam("startLatitude") Double startLatitude,
|
|
|
|
@RequestParam("endLatitude") Double endLatitude) {
|
|
|
|
@RequestParam("endLatitude") Double endLatitude,DevopsVideoInfo devopsVideoInfo) {
|
|
|
|
QueryWrapper<DevopsVideoInfo> queryWrapper = new QueryWrapper<>();
|
|
|
|
List<DevopsVideoStatus> list1 = devopsVideoStatusService.lambdaQuery().eq(DevopsVideoStatus::getIsOnline, 1).list();
|
|
|
|
queryWrapper.between("longitude", startLongitude, endLongitude)
|
|
|
|
ArrayList<String> strings = new ArrayList<>();
|
|
|
|
.between("latitude", startLatitude, endLatitude);
|
|
|
|
for (DevopsVideoStatus devopsVideoStatus : list1) {
|
|
|
|
List<DevopsVideoInfo> list = devopsVideoInfoService.list(queryWrapper);
|
|
|
|
strings.add(devopsVideoStatus.getGbsChannelNo());
|
|
|
|
List<VideoDTO> resultList = new ArrayList<>();
|
|
|
|
}
|
|
|
|
for (DevopsVideoInfo info : list) {
|
|
|
|
if (!"".equals(devopsVideoInfo.getDeviceName()) && devopsVideoInfo.getDeviceName() != null) {
|
|
|
|
VideoDTO dto = new VideoDTO();
|
|
|
|
List<DevopsVideoInfo> list = devopsVideoInfoService.lambdaQuery()
|
|
|
|
org.springframework.beans.BeanUtils.copyProperties(info, dto);
|
|
|
|
.between(DevopsVideoInfo::getLongitude, startLongitude, endLongitude)
|
|
|
|
dto.setConcatenatedAddress(info.getDeviceAddress());
|
|
|
|
.between(DevopsVideoInfo::getLatitude, startLatitude, endLatitude)
|
|
|
|
resultList.add(dto);
|
|
|
|
.in(DevopsVideoInfo::getGbsChannelNo, strings)
|
|
|
|
}
|
|
|
|
.like(DevopsVideoInfo::getDeviceName, devopsVideoInfo.getDeviceName()).list();
|
|
|
|
TableDataInfo dataTable = getDataTable(resultList);
|
|
|
|
return getDataTable(list);
|
|
|
|
return dataTable;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
List<DevopsVideoInfo> list = devopsVideoInfoService.lambdaQuery()
|
|
|
|
|
|
|
|
.between(DevopsVideoInfo::getLongitude, startLongitude, endLongitude)
|
|
|
|
|
|
|
|
.between(DevopsVideoInfo::getLatitude, startLatitude, endLatitude)
|
|
|
|
|
|
|
|
.in(DevopsVideoInfo::getGbsChannelNo, strings).list();
|
|
|
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/type")
|
|
|
|
@GetMapping("/type")
|
|
|
|
@ApiOperation("查询视频设备沿海与海堤线")
|
|
|
|
@ApiOperation("查询视频设备沿海与海堤线")
|
|
|
|
public TableDataInfo<DevopsVideoInfo> levelList(DevopsVideoInfo devopsVideoInfo) {
|
|
|
|
public TableDataInfo<DevopsVideoInfo> levelList(DevopsVideoInfo devopsVideoInfo) {
|
|
|
|