2 Комити da0510b125 ... e9e0cac9dc

Аутор SHA1 Порука Датум
  Tiroble e9e0cac9dc Merge branch 'master' of https://git.steerinfo.com/DAL-DAZHOU/DAL-DAZHOU-API пре 3 година
  Tiroble 4b2f4ff9c8 修改 пре 3 година

+ 5 - 0
src/main/java/com/steerinfo/dil/controller/OTMSController.java

@@ -196,4 +196,9 @@ public class OTMSController {
         return map;
         return map;
     }
     }
 
 
+    @GetMapping("/getCurrentLocation")
+    public RESTfulResult getCurrentLocation(@RequestParam("capcityNumber") String capcityNumber) throws Exception{
+        return otmsFeign.getCurrentLocation(capcityNumber);
+    }
+
 }
 }

+ 3 - 4
src/main/java/com/steerinfo/dil/feign/OtmsFeign.java

@@ -4,10 +4,7 @@ import com.steerinfo.framework.controller.RESTfulResult;
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.http.MediaType;
 import org.springframework.http.MediaType;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.RequestPart;
+import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 import org.springframework.web.multipart.MultipartFile;
 
 
 import java.util.HashMap;
 import java.util.HashMap;
@@ -108,4 +105,6 @@ public interface OtmsFeign {
                                          @RequestParam String startTime,
                                          @RequestParam String startTime,
                                          @RequestParam String endTime
                                          @RequestParam String endTime
     );
     );
+    @GetMapping("/api/v1/otms/pathDisplay/getCurrentLocation")
+    public RESTfulResult getCurrentLocation(@RequestParam("capcityNumber") String capcityNumber) throws Exception;
 }
 }