From 707962b2002a90847b7d4839d9328e5b289512a4 Mon Sep 17 00:00:00 2001
From: chen_xi <276999030@qq.com>
Date: Thu, 22 Sep 2022 16:35:24 +0800
Subject: [PATCH] 大屏实时显示bug修改

---
 screen-api/src/main/java/com/moral/api/controller/CruiserController.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/screen-api/src/main/java/com/moral/api/controller/CruiserController.java b/screen-api/src/main/java/com/moral/api/controller/CruiserController.java
index 39012ba..cda4705 100644
--- a/screen-api/src/main/java/com/moral/api/controller/CruiserController.java
+++ b/screen-api/src/main/java/com/moral/api/controller/CruiserController.java
@@ -38,7 +38,7 @@
     @GetMapping("selectCruisers")
     @ApiOperation(value = "������������������������������������������", notes = "���������������")
     public ResultMessage getCarsInfo() {
-        List<Map<String, Object>> response = specialDeviceService.getCarsInfo();
+        List<Map<String, Object>> response = specialDeviceService.selectCruisers();
         return ResultMessage.ok(response);
     }
 
@@ -73,7 +73,7 @@
     })
     public ResultMessage carTrajectory(HttpServletRequest request) {
         Map<String, Object> params = WebUtils.getParametersStartingWith(request, null);
-        if (!params.containsKey("mac") || !params.containsKey("time")) {
+        if (!params.containsKey("mac") || !params.containsKey("time1")|| !params.containsKey("time2")) {
             return ResultMessage.fail(ResponseCodeEnum.PARAMETERS_IS_MISSING.getCode(), ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg());
         }
         List<Map<String, Object>> response = specialDeviceService.carTrajectory(params);

--
Gitblit v1.8.0