2
0

2 Ревизии da0510b125 ... e9e0cac9dc

Автор SHA1 Съобщение Дата
  Tiroble e9e0cac9dc Merge branch 'master' of https://git.steerinfo.com/DAL-DAZHOU/DAL-DAZHOU-API преди 3 години
  Tiroble 4b2f4ff9c8 修改 преди 3 години
променени са 2 файла, в които са добавени 8 реда и са изтрити 4 реда
  1. 5 0
      src/main/java/com/steerinfo/dil/controller/OTMSController.java
  2. 3 4
      src/main/java/com/steerinfo/dil/feign/OtmsFeign.java

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

@@ -196,4 +196,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;
 }