| | |
| | | package com.ruoyi.web.controller.system; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import com.ruoyi.common.annotation.Anonymous; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | public class VehicleGpsController extends BaseController { |
| | | @Autowired |
| | | private IVehicleGpsService vehicleGpsService; |
| | | |
| | | /** |
| | | /** |
| | | * 查询车辆GPS坐标列表 |
| | | */ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:gps:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(VehicleGps vehicleGps) { |
| | | startPage(); |
| | | // 设置按时间倒序排序 |
| | | vehicleGps.setOrderByColumn("collect_time"); |
| | | vehicleGps.setIsAsc("desc"); |
| | | List<VehicleGps> list = vehicleGpsService.selectVehicleGpsList(vehicleGps); |
| | | return getDataTable(list); |
| | | } |
| | | @Anonymous(needSign=true) |
| | | @GetMapping("/anonymousList") |
| | | public TableDataInfo anonymousList(VehicleGps vehicleGps) { |
| | | startPage(); |
| | | // 设置按时间倒序排序 |
| | | vehicleGps.setOrderByColumn("collect_time"); |
| | | vehicleGps.setIsAsc("desc"); |
| | | List<VehicleGps> list = vehicleGpsService.selectVehicleGpsList(vehicleGps); |
| | | return getDataTable(list); |
| | | } |
| | |
| | | @Log(title = "车辆GPS坐标", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(VehicleGps vehicleGps) { |
| | | // 设置按时间倒序排序 |
| | | vehicleGps.setOrderByColumn("collect_time"); |
| | | vehicleGps.setIsAsc("desc"); |
| | | List<VehicleGps> list = vehicleGpsService.selectVehicleGpsList(vehicleGps); |
| | | ExcelUtil<VehicleGps> util = new ExcelUtil<VehicleGps>(VehicleGps.class); |
| | | return util.exportExcel(list, "车辆GPS坐标数据"); |