|
@@ -12,6 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.awt.image.Kernel;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
@@ -33,16 +34,58 @@ public class WMSController extends BaseRESTfulController {
|
|
|
@PostMapping("getWmsInboundResult")
|
|
|
@ApiOperation(value = "展示入库实绩信息")
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "apiId", value = "90", required = false, dataType = "BigDecimal"),
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "371", required = false, dataType = "BigDecimal"),
|
|
|
})
|
|
|
public Map<String, Object> getWmsInboundResult(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
- String con) {
|
|
|
- return wmsFeign.getWmsInboundResult(mapValue == null?new HashMap<>():mapValue, apiId, pageNum, pageSize,con);
|
|
|
+ Integer warehouseId,
|
|
|
+ String startTime,
|
|
|
+ String endTime) {
|
|
|
+ return wmsFeign.getWmsInboundResult(mapValue == null?new HashMap<>():mapValue, apiId, pageNum, pageSize,warehouseId,startTime,endTime);
|
|
|
+ }
|
|
|
+ @PostMapping("getWmsInboundResultStatistics")
|
|
|
+ @ApiOperation(value = "展示入库实绩信息")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "445", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public Map<String, Object> getWmsInboundResultStatistics(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer warehouseId,
|
|
|
+ String startTime,
|
|
|
+ String endTime) {
|
|
|
+ return wmsFeign.getWmsInboundResultStatistics(mapValue == null?new HashMap<>():mapValue, apiId, pageNum, pageSize,warehouseId,startTime,endTime);
|
|
|
+ }
|
|
|
+ @PostMapping("getWmsInboundResults")
|
|
|
+ @ApiOperation(value = "展示入库实绩信息")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "371", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public Map<String, Object> getWmsInboundResults(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer warehouseId,
|
|
|
+ String startTime,
|
|
|
+ String endTime) {
|
|
|
+ return wmsFeign.getWmsInboundResults(mapValue == null?new HashMap<>():mapValue, apiId, pageNum, pageSize,warehouseId,startTime,endTime);
|
|
|
+ }
|
|
|
+ @PostMapping("getWmsReservedResult")
|
|
|
+ @ApiOperation(value = "展示预留入库实绩信息")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "371", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public Map<String, Object> getWmsReservedResult(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer warehouseId,
|
|
|
+ String con) {
|
|
|
+ return wmsFeign.getWmsReservedResult(mapValue == null?new HashMap<>():mapValue, apiId, pageNum, pageSize,warehouseId,con);
|
|
|
}
|
|
|
-
|
|
|
@PostMapping("getWmspOutboundResult")
|
|
|
@ApiOperation(value = "展示出库实绩信息")
|
|
|
@ApiImplicitParams({
|
|
@@ -52,8 +95,10 @@ public class WMSController extends BaseRESTfulController {
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
Integer apiId,
|
|
|
- String con) {
|
|
|
- return wmsFeign.getWmspOutboundResult(map==null?new HashMap<>():map,apiId, pageNum, pageSize,con);
|
|
|
+ Integer warehouseId,
|
|
|
+ String startTime,
|
|
|
+ String endTime) {
|
|
|
+ return wmsFeign.getWmspOutboundResult(map==null?new HashMap<>():map,apiId, pageNum, pageSize,warehouseId,startTime,endTime);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/wmspoutboundresults/insertWmspOutBoundResult")
|
|
@@ -68,13 +113,13 @@ public class WMSController extends BaseRESTfulController {
|
|
|
return wmsFeign.deleteWmspOutboundResult(resultId);
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/insertwmspOutboundScanResult")
|
|
|
+ @PostMapping("/wmspoutboundresults/insertwmspOutboundScanResult")
|
|
|
public Map<String, Object> insertwmspOutboundScanResult(@RequestBody(required = false) Map<String, Object> map) {
|
|
|
Map<String, Object> resTfulResult = wmsFeign.insertwmspOutboundScanResult(map);
|
|
|
return resTfulResult;
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/outbountResultToSuccess")
|
|
|
+ @PostMapping("/wmspoutboundresults/outbountResultToSuccess")
|
|
|
public Map<String,Object> outbountResultToSuccess(@RequestParam Integer resultId){
|
|
|
return wmsFeign.outbountResultToSuccess(resultId);
|
|
|
}
|
|
@@ -101,11 +146,23 @@ public class WMSController extends BaseRESTfulController {
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
Integer apiId,
|
|
|
+ String warehouseId,
|
|
|
+ String time,
|
|
|
String con) {
|
|
|
- return wmsFeign.selectGridMaterialList(mapVal==null?new HashMap<>():mapVal,apiId, pageNum, pageSize,con);
|
|
|
+ return wmsFeign.selectGridMaterialList(mapVal==null?new HashMap<>():mapVal,apiId, pageNum, pageSize,warehouseId,time,con);
|
|
|
|
|
|
}
|
|
|
+// 查询仓库中超过库龄预警的物资
|
|
|
+ @PostMapping("/getGridMaterialAgeList")
|
|
|
+ @ApiOperation(value = "查询仓库中超过库龄预警的物资")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "167", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public Map<String, Object> getGridMaterialAgeList(@RequestBody(required = false) Map<String, Object> mapVal,
|
|
|
+ Integer warehouseId) {
|
|
|
+ return wmsFeign.getGridMaterialAgeList(mapVal==null?new HashMap<>():mapVal,warehouseId);
|
|
|
|
|
|
+ }
|
|
|
|
|
|
//通过成品仓库网格ID查询实时库存数据
|
|
|
@PostMapping("/selectGridMaterialListByGridId")
|
|
@@ -369,7 +426,7 @@ public class WMSController extends BaseRESTfulController {
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "apiId", value = "161", required = false, dataType = "BigDecimal"),
|
|
|
})
|
|
|
- public RESTfulResult getWmsReboundResult(Map<String, Object> mapValue,
|
|
|
+ public RESTfulResult getWmsReboundResult(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
@@ -412,7 +469,7 @@ public class WMSController extends BaseRESTfulController {
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "apiId", value = "162", required = false, dataType = "BigDecimal"),
|
|
|
})
|
|
|
- public RESTfulResult getWmsIvboundResult(Map<String, Object> mapValue,
|
|
|
+ public RESTfulResult getWmsIvboundResult(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize) {
|
|
@@ -434,7 +491,7 @@ public class WMSController extends BaseRESTfulController {
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "apiId", value = "163", required = false, dataType = "BigDecimal"),
|
|
|
})
|
|
|
- public RESTfulResult getWmsIvboundMaterial(Map<String, Object> mapValue,
|
|
|
+ public RESTfulResult getWmsIvboundMaterial(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize) {
|
|
@@ -446,7 +503,7 @@ public class WMSController extends BaseRESTfulController {
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "apiId", value = "94", required = false, dataType = "BigDecimal"),
|
|
|
})
|
|
|
- public RESTfulResult getInventoryCheck(Map<String, Object> mapValue,
|
|
|
+ public RESTfulResult getInventoryCheck(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
@@ -459,12 +516,18 @@ public class WMSController extends BaseRESTfulController {
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "apiId", value = "95", required = false, dataType = "BigDecimal"),
|
|
|
})
|
|
|
- public RESTfulResult getInventoryClose(Map<String, Object> mapValue,
|
|
|
+ public RESTfulResult getInventoryClose(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
- String con) {
|
|
|
- return wmsFeign.getInventoryClose(mapValue == null?new HashMap<>():mapValue, apiId, pageNum, pageSize,con);
|
|
|
+ String value) {
|
|
|
+ return wmsFeign.getInventoryClose(mapValue == null?new HashMap<>():mapValue, apiId, pageNum, pageSize,value);
|
|
|
+ }
|
|
|
+ //库存结转定时器
|
|
|
+ @PostMapping("/addInventoryClose")
|
|
|
+ @ApiOperation(value = "库存结转定时器")
|
|
|
+ public RESTfulResult addInventoryClose(){
|
|
|
+ return wmsFeign.addInventoryClose();
|
|
|
}
|
|
|
|
|
|
@PostMapping("/getSendReceive")
|
|
@@ -472,12 +535,15 @@ public class WMSController extends BaseRESTfulController {
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "apiId", value = "97", required = false, dataType = "BigDecimal"),
|
|
|
})
|
|
|
- public RESTfulResult getSendReceive(Map<String, Object> mapValue,
|
|
|
+ public RESTfulResult getSendReceive(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
- String con) {
|
|
|
- return wmsFeign.getSendReceive(mapValue ==null? new HashMap<>():mapValue, apiId, pageNum, pageSize,con);
|
|
|
+ String con,
|
|
|
+ String startTime,
|
|
|
+ String endTime
|
|
|
+ ) {
|
|
|
+ return wmsFeign.getSendReceive(mapValue ==null? new HashMap<>():mapValue, apiId, pageNum, pageSize,con,startTime,endTime);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -566,7 +632,7 @@ public class WMSController extends BaseRESTfulController {
|
|
|
@ApiOperation("新增入库实绩")
|
|
|
@PostMapping("/insertInboundResult")
|
|
|
@Transactional
|
|
|
- public Map<String,Object> addInvoice(@RequestBody List<Map<String, Object>> mapList) {
|
|
|
+ public Map<String,Object> addInvoice(@RequestBody(required = false) List<Map<String, Object>> mapList) {
|
|
|
return wmsFeign.insertInboundResult(mapList);
|
|
|
}
|
|
|
|
|
@@ -579,7 +645,7 @@ public class WMSController extends BaseRESTfulController {
|
|
|
@ApiOperation("新增退库实绩")
|
|
|
@PostMapping("/insertReboundResult")
|
|
|
@Transactional
|
|
|
- public String addReboundResult(@RequestBody List<Map<String, Object>> mapList) {
|
|
|
+ public String addReboundResult(@RequestBody(required = false) List<Map<String, Object>> mapList) {
|
|
|
/*
|
|
|
获取入库物资件数
|
|
|
*/
|
|
@@ -607,7 +673,7 @@ public class WMSController extends BaseRESTfulController {
|
|
|
@ApiOperation("新增倒库入库实绩")
|
|
|
@PostMapping("/insertIvboundResult")
|
|
|
@Transactional
|
|
|
- public String addIvboundResult(@RequestBody List<Map<String, Object>> mapList) {
|
|
|
+ public String addIvboundResult(@RequestBody(required = false) List<Map<String, Object>> mapList) {
|
|
|
/*
|
|
|
获取入库物资件数
|
|
|
*/
|
|
@@ -704,14 +770,14 @@ public class WMSController extends BaseRESTfulController {
|
|
|
return wmsFeign.updateInstruction(map);
|
|
|
}
|
|
|
|
|
|
-// }
|
|
|
+
|
|
|
|
|
|
@PostMapping("/getIvboundMakeResultList")
|
|
|
@ApiOperation(value = "展示倒库列表")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "apiId", value = "372", required = false, dataType = "BigDecimal"),
|
|
|
})
|
|
|
- public RESTfulResult getIvboundMakeResultList(Map<String, Object> mapValue,
|
|
|
+ public RESTfulResult getIvboundMakeResultList(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
Integer apiId,
|
|
@@ -770,6 +836,8 @@ public class WMSController extends BaseRESTfulController {
|
|
|
//新增入库实绩
|
|
|
@PostMapping("/inboundResult/insertInboundResult")
|
|
|
public RESTfulResult addInvoice(@RequestParam("userName") String userName,@RequestParam("groupId") BigDecimal groupId,@RequestParam("personnelWorkshopid") BigDecimal personnelWorkshopid, @RequestBody(required = false) List<Map<String, Object>> mapList){
|
|
|
+
|
|
|
+
|
|
|
return wmsFeign.addInvoice(userName,groupId,personnelWorkshopid,mapList);
|
|
|
}
|
|
|
//抢单
|
|
@@ -782,33 +850,157 @@ public class WMSController extends BaseRESTfulController {
|
|
|
public RESTfulResult getNewDistribute( @RequestParam("personnelWorkshopid") Integer personnelWorkshopid){
|
|
|
return wmsFeign.getNewDistribute(personnelWorkshopid);
|
|
|
}
|
|
|
- // 获取物资类型
|
|
|
- @PostMapping(value = "/getMaterialTypeList")
|
|
|
- public Map<String,Object> getMaterialTypeList(@RequestParam("warehouseid") String warehouseid,
|
|
|
- @RequestParam("stackingId") BigDecimal stackingId,
|
|
|
- @RequestParam("gradtionNumber") BigDecimal gradtionNumber,
|
|
|
- @RequestParam("pageNum") Integer pageNum,
|
|
|
- @RequestParam("pageSize") Integer pageSize,
|
|
|
- @RequestParam("apiId") Integer apiId){
|
|
|
- return wmsFeign.getMaterialTypeList(warehouseid,stackingId,gradtionNumber,pageNum,pageSize,apiId);
|
|
|
+
|
|
|
+
|
|
|
+// @PostMapping("/createRestackMakeResult")
|
|
|
+// public RESTfulResult createRestackMakeResult(@RequestParam("keeperId") BigDecimal keeperId,
|
|
|
+// @RequestParam("beforeLevel")BigDecimal beforeLevel,
|
|
|
+// @RequestParam(name = "afterStackingId",defaultValue = "20")BigDecimal afterStackingId,
|
|
|
+// @RequestParam("afterWarehouseId")BigDecimal afterWarehouseId,
|
|
|
+// @RequestParam("afterBeforeStackingId") BigDecimal afterBeforeStackingId,
|
|
|
+// @RequestParam("resultRemark")String resultRemark,
|
|
|
+// @RequestBody(required = false) List<Map<String,Object>> mps){
|
|
|
+// return wmsFeign.createRestackMakeResult(keeperId,beforeLevel,afterStackingId,afterWarehouseId,afterBeforeStackingId,resultRemark,mps);
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ // 获取物资类型
|
|
|
+ @PostMapping(value = "/getMaterialTypeList")
|
|
|
+ public Map<String, Object> getMaterialTypeList (@RequestParam("warehouseid") String warehouseid,
|
|
|
+ @RequestParam("stackingId") BigDecimal stackingId,
|
|
|
+ @RequestParam("gradtionNumber") BigDecimal gradtionNumber,
|
|
|
+ @RequestParam("pageNum") Integer pageNum,
|
|
|
+ @RequestParam("pageSize") Integer pageSize,
|
|
|
+ @RequestParam("apiId") Integer apiId){
|
|
|
+ return wmsFeign.getMaterialTypeList(warehouseid, stackingId, gradtionNumber, pageNum, pageSize, apiId);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation("进入出库扫码页面,查询出库物资信息详情")
|
|
|
+ @GetMapping("/wmspoutboundresults/getInitOutboundScanResultMaterialInfo")
|
|
|
+ @ApiImplicitParam(name = "resultId",value = "出库实绩id",paramType = "BigDecimal",required = true)
|
|
|
+ public RESTfulResult getInitOutboundScanResultMaterialInfo(@RequestParam(value = "resultId",required = true) BigDecimal resultId){
|
|
|
+ return wmsFeign.getInitOutboundScanResultMaterialInfo(resultId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/wmspoutboundresults/deleteGridMaterial")
|
|
|
+ public RESTfulResult deleteGridMaterial(@RequestParam String materialOnlyCode){
|
|
|
+ return wmsFeign.deleteGridMaterial(materialOnlyCode);
|
|
|
}
|
|
|
|
|
|
-// 创建倒垛单
|
|
|
@PostMapping(value = "/createRestackMakeResult")
|
|
|
- public Map<String,Object> createRestackMakeResult(@RequestParam("keeperId") BigDecimal keeperId,
|
|
|
- @RequestParam("beforeLevel")BigDecimal beforeLevel,
|
|
|
- @RequestParam(name = "afterStackingId",defaultValue = "20")BigDecimal afterStackingId,
|
|
|
- @RequestParam("afterWarehouseId")BigDecimal afterWarehouseId,
|
|
|
- @RequestParam("afterBeforeStackingId") BigDecimal afterBeforeStackingId,
|
|
|
- @RequestParam("resultRemark")String resultRemark,
|
|
|
- @RequestBody(required = false) List<Map<String,Object>> mps){
|
|
|
- return wmsFeign.createRestackMakeResult(keeperId,beforeLevel,afterStackingId,afterWarehouseId,afterBeforeStackingId,resultRemark,mps);
|
|
|
+ public Map<String, Object> createRestackMakeResult (@RequestParam("keeperId") BigDecimal keeperId,
|
|
|
+ @RequestParam("beforeLevel") BigDecimal beforeLevel,
|
|
|
+ @RequestParam(name = "afterStackingId", defaultValue = "20") BigDecimal afterStackingId,
|
|
|
+ @RequestParam("afterWarehouseId") BigDecimal afterWarehouseId,
|
|
|
+ @RequestParam("afterBeforeStackingId") BigDecimal afterBeforeStackingId,
|
|
|
+ @RequestParam("resultRemark") String resultRemark,
|
|
|
+ @RequestBody(required = false) List < Map < String, Object >> mps){
|
|
|
+ return wmsFeign.createRestackMakeResult(keeperId, beforeLevel, afterStackingId, afterWarehouseId, afterBeforeStackingId, resultRemark, mps);
|
|
|
}
|
|
|
+
|
|
|
//修改实时库存,针对倒垛
|
|
|
@PostMapping(value = "/updateWmspGridMaterialForRestack")
|
|
|
- public Map<String,Object> updateWmspGridMaterialForRestack(@RequestBody Map<String,Object> mapValue) {
|
|
|
+ public Map<String, Object> updateWmspGridMaterialForRestack (@RequestBody Map < String, Object > mapValue){
|
|
|
return wmsFeign.updateWmspGridMaterialForRestack(mapValue);
|
|
|
}
|
|
|
|
|
|
|
|
|
+ //修改实时库存,针对倒垛
|
|
|
+ @PostMapping(value = "/getStockTakingList")
|
|
|
+ public Map<String, Object> getStockTakingList (@RequestParam(value = "pageNum") Integer pageNum,
|
|
|
+ @RequestParam(value = "pageSize") Integer pageSize,
|
|
|
+ @RequestParam(value = "apiId") Integer apiId){
|
|
|
+ return wmsFeign.getStockTakingList(pageNum, pageSize, apiId);
|
|
|
+ }
|
|
|
+ // 根据倒垛单ID获得物资类型
|
|
|
+ @GetMapping(value = "getRestackMakeTypeResult")
|
|
|
+ public Map<String, Object> getRestackMakeTypeResult (@RequestParam("restackMake") String restackMake,
|
|
|
+ @RequestParam("context") String context){
|
|
|
+ return wmsFeign.getRestackMakeTypeResult(restackMake, context);
|
|
|
+ }
|
|
|
+ // 改变已经稽核的吊牌信息
|
|
|
+ @GetMapping(value = "changeRestackMakeResult")
|
|
|
+ public int changeRestackMakeResult (@RequestParam("restackMake") String restackMake){
|
|
|
+ return wmsFeign.changeRestackMakeResult(restackMake);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ //PDA根据仓库id查找倒垛单
|
|
|
+ @GetMapping(value = "selectRestackByWarehouseIds")
|
|
|
+ public Map<String, Object> selectRestackByWarehouseIds(@RequestParam("warehouseid") String warehouseid) {
|
|
|
+ return wmsFeign.selectRestackByWarehouseIds(warehouseid);
|
|
|
+ }
|
|
|
+
|
|
|
+ //修改实时库存,针对倒垛
|
|
|
+ @PostMapping(value = "/insertStockTaking")
|
|
|
+ public Map<String,Object> insertStockTaking(@RequestParam(value = "warehouseId") String warehouseId,
|
|
|
+ @RequestParam(value = "materialCode") String materialCode,
|
|
|
+ @RequestParam(value = "quantity") Integer quantity) {
|
|
|
+ return wmsFeign.insertStockTaking(warehouseId,materialCode,quantity);
|
|
|
+ }
|
|
|
+ //修改入库转预留作业,针对预留
|
|
|
+ @PostMapping(value = "/insertReserved")
|
|
|
+ public Map<String,Object> insertReserved(@RequestParam(value = "warehouseId") String warehouseId,
|
|
|
+ @RequestParam(value = "materialCode") String materialCode,
|
|
|
+ @RequestParam(value = "materialSpecification") String materialSpecification,
|
|
|
+ @RequestParam(value = "materialModel") String materialModel,
|
|
|
+ @RequestParam(value = "quantity") Integer quantity) {
|
|
|
+ return wmsFeign.insertReserved(warehouseId,materialCode,materialSpecification,materialModel,quantity);
|
|
|
+ }
|
|
|
+ //修改预留转入库作业,针对预留
|
|
|
+ @PostMapping(value = "/insertInbounds")
|
|
|
+ public Map<String,Object> insertInbounds(@RequestParam(value = "warehouseId") String warehouseId,
|
|
|
+ @RequestParam(value = "materialCode") String materialCode,
|
|
|
+ @RequestParam(value = "materialSpecification") String materialSpecification,
|
|
|
+ @RequestParam(value = "materialModel") String materialModel,
|
|
|
+ @RequestParam(value = "quantity") Integer quantity) {
|
|
|
+ return wmsFeign.insertInbounds(warehouseId,materialCode,materialSpecification,materialModel,quantity);
|
|
|
+ }
|
|
|
+// 查询所有的钢材物资信息
|
|
|
+ @PostMapping(value = "/getSteelMaterialList")
|
|
|
+ public Map<String,Object> getSteelMaterialList(@RequestBody(required = false) Map<String,Object> mapVal,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId,
|
|
|
+ Integer warehouseId,
|
|
|
+ String con) {
|
|
|
+ return wmsFeign.getSteelMaterialList(mapVal ==null? new HashMap<>():mapVal,pageNum,pageSize,apiId,warehouseId,con);
|
|
|
+ }
|
|
|
+ // 查询所有的钢材物资规格型号信息
|
|
|
+ @PostMapping(value = "/getSteelMaterialModelList")
|
|
|
+ public Map<String,Object> getSteelMaterialModelList(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ @RequestParam(value = "pageNum") Integer pageNum,
|
|
|
+ @RequestParam(value = "pageSize") Integer pageSize,
|
|
|
+ @RequestParam(value = "apiId") Integer apiId,
|
|
|
+ @RequestParam(value = "warehouseId") Integer warehouseId,
|
|
|
+ @RequestParam(value = "status") Integer status,
|
|
|
+ @RequestParam(value = "con") String con) {
|
|
|
+ return wmsFeign.getSteelMaterialModelList(mapValue ==null? new HashMap<>():mapValue,pageNum,pageSize,apiId,warehouseId,status,con);
|
|
|
+ }
|
|
|
+// 根据对应的入库实绩id修改入库状态为预留
|
|
|
+ @PostMapping("/changeReserved")
|
|
|
+ @ApiOperation(value = "根据对应的入库实绩id修改入库状态为预留")
|
|
|
+ public int changeReserved(@RequestBody(required = false) List<Map<String, Object>> mapList) {
|
|
|
+ return wmsFeign.changeReserved(mapList);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/getWmsOutboundResultStatistics")
|
|
|
+ @ApiOperation(value = "展示炉号对应的出厂数量")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "446", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public RESTfulResult getWmsOutboundResultStatistics(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer warehouseId,
|
|
|
+ String con,
|
|
|
+ String startTime,
|
|
|
+ String endTime) {
|
|
|
+ return wmsFeign.getWmsOutboundResultStatistics(mapValue ==null? new HashMap<>():mapValue, apiId, pageNum, pageSize,warehouseId,con,startTime,endTime);
|
|
|
+ }
|
|
|
}
|
|
|
+
|