liyg 1 jaar geleden
bovenliggende
commit
ca4e61f9c0

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

@@ -173,6 +173,16 @@ public class WMSController extends BaseRESTfulController {
         return wmsFeign.getGridMaterialList(map == null ? new HashMap<>() : map, apiId, pageNum, pageSize);
     }
 
+
+
+    @ApiOperation(value = "修改库存")
+    @ApiImplicitParam(name = "map", value = "JSON格式数据", required = true, dataType = "Map<String, Object>")
+    @LogAround(foreignKeys = {"gridMaterialId"}, foreignKeyTypes = {"入库实绩"})
+    @PostMapping("/updateGridMaterial")
+    public Map<String, Object> updateGridMaterial(@RequestBody(required = false) Map<String, Object> map){
+        return wmsFeign.updateGridMaterial(map);
+    }
+
     @ApiOperation(value = "查询")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "map", value = "参数", required = false, dataType = "map"),
@@ -211,6 +221,14 @@ public class WMSController extends BaseRESTfulController {
         return wmsFeign.inbound(map);
     }
 
+    @ApiOperation(value = "修改入库")
+    @ApiImplicitParam(name = "map", value = "JSON格式数据", required = true, dataType = "Map<String, Object>")
+    @LogAround(foreignKeys = {"inboundResultId"}, foreignKeyTypes = {"入库实绩"})
+    @PostMapping("/updateInbound")
+    public Map<String, Object> updateInbound(@RequestBody(required = false) Map<String, Object> map){
+        return wmsFeign.updateInbound(map);
+    }
+
     @ApiOperation(value = "查询出库实绩")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "map", value = "参数", required = false, dataType = "map"),
@@ -233,6 +251,14 @@ public class WMSController extends BaseRESTfulController {
         return wmsFeign.outbound(map);
     }
 
+    @ApiOperation(value = "修改出库")
+    @ApiImplicitParam(name = "map", value = "JSON格式数据", required = true, dataType = "Map<String, Object>")
+    @LogAround(foreignKeys = {"outboundResultId"}, foreignKeyTypes = {"出库实绩"})
+    @PostMapping("/updateOutbound")
+    public Map<String, Object> updateOutbound(@RequestBody(required = false) Map<String, Object> map){
+        return wmsFeign.updateOutbound(map);
+    }
+
     @PostMapping("/selectkcmx")
     public RESTfulResult selectkcmx(@RequestBody HashMap map,
                              Integer apiId,

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

@@ -75,6 +75,9 @@ public interface WMSFeign {
                              @RequestParam Integer pageNum,
                              @RequestParam Integer pageSize);
 
+    @PostMapping("api/v1/wms/wmsgridmaterials/updateGridMaterial")
+    Map<String, Object> updateGridMaterial(@RequestBody(required = false) Map<String, Object> map);
+
 
     @PostMapping("api/v1/wms/wmsgridmaterials/getGridMaterialDailyReport")
     Map<String, Object> getGridMaterialDailyReport(@RequestBody(required = false) Map<String, Object> map, @RequestParam Integer apiId,
@@ -89,6 +92,9 @@ public interface WMSFeign {
     @PostMapping("api/v1/wms/wmsinboundresults/inbound")
     Map<String, Object> inbound(@RequestBody(required = false) Map<String, Object> map);
 
+    @PostMapping("api/v1/wms/wmsinboundresults/updateInbound")
+    Map<String, Object> updateInbound(@RequestBody(required = false) Map<String, Object> map);
+
     @PostMapping("api/v1/wms/wmsoutboundresults/getOutboundList")
     Map<String, Object> getOutboundList(@RequestBody(required = false) Map<String, Object> map, @RequestParam Integer apiId,
                                        @RequestParam Integer pageNum,
@@ -96,4 +102,8 @@ public interface WMSFeign {
 
     @PostMapping("api/v1/wms/wmsoutboundresults/outbound")
     Map<String, Object>outbound(@RequestBody(required = false) Map<String, Object> map);
+
+
+    @PostMapping("api/v1/wms/wmsoutboundresults/updateOutbound")
+    Map<String, Object> updateOutbound(@RequestBody(required = false) Map<String, Object> map);
 }