Your Name %!s(int64=3) %!d(string=hai) anos
pai
achega
469278814b

+ 8 - 0
src/main/java/com/steerinfo/dil/controller/AMScontroller.java

@@ -0,0 +1,8 @@
+package com.steerinfo.dil.controller;
+
+/**
+ * @author luobang
+ * @create 2021-09-17 14:10
+ */
+public class AMScontroller {
+}

+ 8 - 0
src/main/java/com/steerinfo/dil/controller/BMSController.java

@@ -0,0 +1,8 @@
+package com.steerinfo.dil.controller;
+
+/**
+ * @author luobang
+ * @create 2021-09-17 14:10
+ */
+public class BMSController {
+}

+ 8 - 0
src/main/java/com/steerinfo/dil/controller/OMSController.java

@@ -0,0 +1,8 @@
+package com.steerinfo.dil.controller;
+
+/**
+ * @author luobang
+ * @create 2021-09-17 14:10
+ */
+public class OMSController {
+}

+ 9 - 0
src/main/java/com/steerinfo/dil/controller/QMSController.java

@@ -0,0 +1,9 @@
+package com.steerinfo.dil.controller;
+
+/**
+ * @author luobang
+ * @create 2021-09-17 14:09
+ */
+public class QMSController {
+
+}

+ 8 - 0
src/main/java/com/steerinfo/dil/controller/TMSController.java

@@ -0,0 +1,8 @@
+package com.steerinfo.dil.controller;
+
+/**
+ * @author luobang
+ * @create 2021-09-17 14:11
+ */
+public class TMSController {
+}

+ 41 - 0
src/main/java/com/steerinfo/dil/controller/WMSController.java

@@ -0,0 +1,41 @@
+package com.steerinfo.dil.controller;
+
+import com.steerinfo.dil.feign.WMSFeign;
+import com.steerinfo.dil.util.BaseRESTfulController;
+import com.steerinfo.framework.controller.RESTfulResult;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.Date;
+import java.util.Map;
+
+/**
+ * @author luobang
+ * @create 2021-09-17 14:09
+ */
+@RestController
+@RequestMapping("${api.version}/wms")
+public class WMSController extends BaseRESTfulController {
+    @Autowired
+    WMSFeign wmsFeign;
+
+    @PostMapping("getWmsInboundResult")
+    @ApiOperation(value = "展示入库实绩信息")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "apiId", value = "90", required = false, dataType = "BigDecimal"),
+    })
+    public RESTfulResult getWmsInboundResult( Map<String, Object> mapValue,
+                                             Integer apiId,
+                                             Integer pageNum,
+                                             Integer pageSize){
+        return wmsFeign.getWmsInboundResult(mapValue,apiId,pageNum,pageSize);
+
+
+    }
+}

+ 22 - 0
src/main/java/com/steerinfo/dil/feign/WMSFeign.java

@@ -0,0 +1,22 @@
+package com.steerinfo.dil.feign;
+
+import com.steerinfo.framework.controller.RESTfulResult;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.Map;
+
+/**
+ * @author luobang
+ * @create 2021-09-17 14:13
+ */
+@FeignClient(value = "DAL-DAZHOU-WMS-DEV",url = "192.168.1.241:8081")
+public interface WMSFeign {
+    @RequestMapping(value = "/api/v1/wms/inboundResult/getWmsInboundResult",method = RequestMethod.POST)
+    RESTfulResult getWmsInboundResult(@RequestBody(required = false) Map<String, Object> mapValue,
+                                      @RequestParam Integer apiId,
+                                      @RequestParam Integer pageNum,
+                                      @RequestParam Integer pageSize);
+
+
+}

+ 2 - 2
src/main/resources/bootstrap.yml

@@ -1,4 +1,4 @@
-api.version: api/v1
+api.version: api/v1/
 spring:
   profiles:
     include: ${SPRING_PROFILES:dev}
@@ -47,4 +47,4 @@ mybatis:
     call-setters-on-nulls: true
 
 server:
-  port: 8081
+  port: 8093