Tiroble vor 3 Jahren
Ursprung
Commit
4b2f4ff9c8

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

@@ -180,4 +180,9 @@ public class OTMSController {
         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 org.springframework.cloud.openfeign.FeignClient;
 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 java.util.HashMap;
@@ -108,4 +105,6 @@ public interface OtmsFeign {
                                          @RequestParam String startTime,
                                          @RequestParam String endTime
     );
+    @GetMapping("/api/v1/otms/pathDisplay/getCurrentLocation")
+    public RESTfulResult getCurrentLocation(@RequestParam("capcityNumber") String capcityNumber) throws Exception;
 }