|
@@ -13,6 +13,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
@@ -33,7 +34,6 @@ public class TlElectricDeviceLocationController extends BaseController {
|
|
|
/**
|
|
|
* 查询电动车定位设备轨迹列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('qdtl:location:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(TlElectricDeviceLocation tlElectricDeviceLocation) {
|
|
|
startPage();
|
|
@@ -41,6 +41,16 @@ public class TlElectricDeviceLocationController extends BaseController {
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/queryLocationRecord")
|
|
|
+ public AjaxResult queryLocationRecord(@RequestParam String startDate,
|
|
|
+ @RequestParam String endDate,
|
|
|
+ @RequestParam(required = false) String areaName,
|
|
|
+ @RequestParam(required = false) String imei) {
|
|
|
+ startDate = startDate + " 00:00:00";
|
|
|
+ endDate = endDate + "23:59:59";
|
|
|
+ return AjaxResult.success(tlElectricDeviceLocationService.queryLocationRecord(startDate, endDate, areaName, imei));
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping("/syncDeviceLocation")
|
|
|
public AjaxResult syncDeviceLocation() {
|
|
|
tlElectricDeviceLocationService.syncDeviceLocation();
|
|
@@ -53,6 +63,20 @@ public class TlElectricDeviceLocationController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 获取单个设备轨迹
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getSingleElectricLocation")
|
|
|
+ public AjaxResult getSingleElectricLocation(@RequestParam String startDate,
|
|
|
+ @RequestParam String endDate,
|
|
|
+ @RequestParam String imei) {
|
|
|
+ startDate = startDate + " 00:00:00";
|
|
|
+ endDate = endDate + "23:59:59";
|
|
|
+ return AjaxResult.success(tlElectricDeviceLocationService.getSingleElectricLocation(startDate, endDate, imei));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 导出电动车定位设备轨迹列表
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('qdtl:location:export')")
|