Redeem 1 年之前
父節點
當前提交
469761ef49

+ 5 - 1
src/main/java/com/steerinfo/dil/controller/AMScontroller.java

@@ -3,6 +3,7 @@ package com.steerinfo.dil.controller;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.steerinfo.dil.annotaion.LogAround;
 import com.steerinfo.dil.feign.AmsFeign;
+import com.steerinfo.dil.feign.TmsFeign;
 import com.steerinfo.dil.util.BaseRESTfulController;
 import com.steerinfo.dil.util.ExcelToolUtils;
 import com.steerinfo.framework.controller.RESTfulResult;
@@ -34,6 +35,9 @@ public class AMScontroller extends BaseRESTfulController {
     @Autowired
     AmsFeign amsFeign;
 
+    @Autowired
+    TmsFeign tmsFeign;
+
     @ApiOperation(value = "展示采购订单详情")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "mapValue", value = "参数", required = false, dataType = "map"),
@@ -1044,7 +1048,7 @@ public class AMScontroller extends BaseRESTfulController {
     @ApiOperation("派车")
     @PostMapping("/dispatch")
     public Map<String, Object> dispatch() throws Exception {
-        return amsFeign.dispatch();
+        return tmsFeign.fixedDispatch();
     }
 
     @ApiOperation("强制修改")

+ 3 - 0
src/main/java/com/steerinfo/dil/feign/TmsFeign.java

@@ -423,6 +423,9 @@ public interface TmsFeign {
     @PostMapping("/api/v1/tms/omstransorders/correctTransOrder")
     Map<String, Object> correctTransOrder(Map<String, Object> map);
 
+    @PostMapping("/api/v1/tms/omstransorders/fixedDispatch")
+    Map<String, Object> fixedDispatch();
+
 }
 
 

+ 1 - 0
src/main/resources/application-prod.yml

@@ -30,6 +30,7 @@ openfeign:
 #      url: ${AMSFEIGN_URL:localhost:8079}
   TmsFeign:
     url: ${TMSFEIGN_URL:172.16.90.202:8086}
+#    url: ${TMSFEIGN_URL:localhost:8086}
   WMSFeign:
     url: ${WMSFEIGN_URL:172.16.90.202:80}
   RmsFeign: