| | |
| | | * @Date 2024/12/17 20:18 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/api/patrolTask") |
| | | @RequestMapping("/base/patrolTask") |
| | | public class PatrolTaskController extends BaseController { |
| | | |
| | | @Resource |
| | |
| | | List<Vehicle> list = new ArrayList<>(); |
| | | if(null != year){ |
| | | for (Vehicle vehicle : vehicleList) { |
| | | if("2".equals(year)){ |
| | | String vehicleGpsProtocol = vehicle.getVehicleGpsProtocol(); |
| | | if(2023 == year && null != vehicleGpsProtocol && vehicleGpsProtocol.equals("2")){ |
| | | list.add(vehicle); |
| | | } |
| | | } |
| | |
| | | List<Ship> shipList = VideoGateway.getShipList(null, null, null, 0); |
| | | List<Ship> list = new ArrayList<>(); |
| | | if(null != year){ |
| | | for (Ship vehicle : shipList) { |
| | | if("2".equals(year)){ |
| | | list.add(vehicle); |
| | | for (Ship ship : shipList) { |
| | | String vehicleGpsProtocol = ship.getVehicleGpsProtocol(); |
| | | if(2023 == year && null != vehicleGpsProtocol && vehicleGpsProtocol.equals("2")){ |
| | | list.add(ship); |
| | | } |
| | | } |
| | | }else{ |