|
@@ -62,12 +62,22 @@ public class WMSController extends BaseRESTfulController {
|
|
|
return resTfulResult;
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/insertWmspOutboundScanResult")
|
|
|
- public Map<String, Object> insertWmspOutboundScanResult(@RequestBody(required = false) Map<String, Object> mapval) {
|
|
|
- Map<String, Object> resTfulResult = wmsFeign.insertWmspOutboundScanResult(mapval);
|
|
|
+ @PostMapping(value = "/deletewmspOutboundResult")
|
|
|
+ public Map<String,Object> deleteWmspOutboundResult(@RequestParam Integer resultId){
|
|
|
+ return wmsFeign.deleteWmspOutboundResult(resultId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/insertwmspOutboundScanResult")
|
|
|
+ public Map<String, Object> insertwmspOutboundScanResult(@RequestBody(required = false) Map<String, Object> map) {
|
|
|
+ Map<String, Object> resTfulResult = wmsFeign.insertwmspOutboundScanResult(map);
|
|
|
return resTfulResult;
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/outbountResultToSuccess")
|
|
|
+ public Map<String,Object> outbountResultToSuccess(@RequestParam Integer resultId){
|
|
|
+ return wmsFeign.outbountResultToSuccess(resultId);
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping("/updataResultStatus")
|
|
|
public Map<String, Object> updataResultStatus(@RequestParam Integer resultId) {
|
|
|
Map<String, Object> resTfulResult = wmsFeign.updataResultStatus(resultId);
|
|
@@ -84,7 +94,7 @@ public class WMSController extends BaseRESTfulController {
|
|
|
@PostMapping("/selectGridMaterialList")
|
|
|
@ApiOperation(value = "展示实时库存数据")
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "apiId", value = "216", required = false, dataType = "BigDecimal"),
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "167", required = false, dataType = "BigDecimal"),
|
|
|
})
|
|
|
public Map<String, Object> selectGridMaterialList(@RequestBody(required = false) Map<String, Object> mapVal,
|
|
|
Integer pageNum,
|
|
@@ -153,6 +163,20 @@ public class WMSController extends BaseRESTfulController {
|
|
|
Map<String, Object> resTfulResult = wmsFeign.insertOffsiteLibraryInbound(map);
|
|
|
return resTfulResult;
|
|
|
}
|
|
|
+ //获取扫描实绩
|
|
|
+ //钢材异地库扫描入库
|
|
|
+ @PostMapping("/getScanResult")
|
|
|
+ public Map<String, Object> getScanResult(@RequestBody(required = false) Map<String, Object> map) {
|
|
|
+ Map<String, Object> resTfulResult = wmsFeign.getScanResult(map);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+
|
|
|
+ //更新状态
|
|
|
+ @PostMapping("/updateStatus")
|
|
|
+ public Map<String, Object> updateStatus(@RequestBody(required = false) Map<String, Object> map) {
|
|
|
+ Map<String, Object> resTfulResult = wmsFeign.updateStatus(map);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
|
|
|
//展示在途库存数据
|
|
|
@ApiImplicitParams({
|
|
@@ -190,14 +214,14 @@ public class WMSController extends BaseRESTfulController {
|
|
|
Integer pageSize,
|
|
|
Integer apiId,
|
|
|
Integer warehouseid,
|
|
|
- Integer gradtionNumber,
|
|
|
- Integer stackingId) {
|
|
|
+ Integer stackingId,
|
|
|
+ Integer gradtionNumber) {
|
|
|
return wmsFeign.getWmspRestackMakeResultList(mapVal==null?new HashMap<>():mapVal,apiId, pageNum, pageSize, warehouseid, stackingId, gradtionNumber);
|
|
|
}
|
|
|
|
|
|
- //添加倒垛单实绩
|
|
|
+
|
|
|
@PostMapping(value = "/addRestackMakeResult")
|
|
|
- public Map<String,Object> addRestackMakeResult(@RequestBody(required = false) Map<String,Object> mapval){
|
|
|
+ public Map<String,Object> addRestackMakeResult(@RequestBody Map<String,Object> mapval){
|
|
|
return wmsFeign.addRestackMakeResult(mapval);
|
|
|
}
|
|
|
|
|
@@ -246,7 +270,7 @@ public class WMSController extends BaseRESTfulController {
|
|
|
Integer pageSize,
|
|
|
Integer apiId,
|
|
|
Integer DistrubtionStatus) {
|
|
|
- return wmsFeign.selectRestackList(apiId, pageNum, pageSize, DistrubtionStatus);
|
|
|
+ return wmsFeign.selectRestackList(mapVal==null?new HashMap<>():mapVal,apiId, pageNum, pageSize, DistrubtionStatus);
|
|
|
}
|
|
|
|
|
|
// //修改倒垛单
|
|
@@ -290,6 +314,18 @@ public class WMSController extends BaseRESTfulController {
|
|
|
Map<String, Object> resTfulResult = wmsFeign.selectMaterialInfoByResultId(map);
|
|
|
return resTfulResult;
|
|
|
}
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(value = "395",name = "apiId")
|
|
|
+ })
|
|
|
+ @PostMapping(value = "/getRestackInfoByResultId")
|
|
|
+ public RESTfulResult getRestackInfoByResultId(@RequestBody(required = false) Map<String,Object> mapVal,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId
|
|
|
+
|
|
|
+ ){
|
|
|
+ return wmsFeign.getRestackInfoByResultId(mapVal==null?new HashMap<>():mapVal, pageNum, pageSize, apiId);
|
|
|
+ }
|
|
|
|
|
|
//PDA根据仓库id查找倒垛单
|
|
|
@PostMapping("/selectRestackByWarehouseId")
|
|
@@ -333,6 +369,35 @@ public class WMSController extends BaseRESTfulController {
|
|
|
return wmsFeign.getWmsReboundResult(mapValue, apiId, pageNum, pageSize);
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/selectScanResultByIboundResultId")
|
|
|
+ @ApiOperation(value = "根据入库实绩id获得扫描实绩数据")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public RESTfulResult selectScanResultByIboundResultId( Map<String, Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer inboundId) {
|
|
|
+
|
|
|
+ return wmsFeign.selectScanResultByIboundResultId(mapValue==null?new HashMap<>():mapValue, apiId,pageNum, pageSize,inboundId);
|
|
|
+ }
|
|
|
+ //根据物资信息获取原来垛位信息
|
|
|
+ @PostMapping("/selectInfoByMaterialCode")
|
|
|
+ public Map<String, Object> selectInfoByMaterialCode(@RequestBody(required = false) Map<String, Object> mal) {
|
|
|
+ if (mal == null) {
|
|
|
+ mal = new HashMap<>();
|
|
|
+ }
|
|
|
+ return wmsFeign.selectInfoByMaterialCode(mal);
|
|
|
+ }
|
|
|
+ //根据仓库查询未接收的垛位
|
|
|
+ @PostMapping("/selectStackingInfoByWarehouseId")
|
|
|
+ public Map<String, Object> selectStackingInfoByWarehouseId(@RequestBody(required = false) Map<String, Object> mal) {
|
|
|
+ if (mal == null) {
|
|
|
+ mal = new HashMap<>();
|
|
|
+ }
|
|
|
+ return wmsFeign.selectStackingInfoByWarehouseId(mal);
|
|
|
+ }
|
|
|
|
|
|
@PostMapping("/getWmsIvboundResult")
|
|
|
@ApiOperation(value = "展示倒库实绩信息")
|
|
@@ -490,7 +555,7 @@ public class WMSController extends BaseRESTfulController {
|
|
|
@ApiOperation("新增入库实绩")
|
|
|
@PostMapping("/insertInboundResult")
|
|
|
@Transactional
|
|
|
- public String addInvoice(@RequestBody List<Map<String, Object>> mapList) {
|
|
|
+ public Map<String,Object> addInvoice(@RequestBody List<Map<String, Object>> mapList) {
|
|
|
/*
|
|
|
获取入库物资件数
|
|
|
*/
|
|
@@ -498,15 +563,15 @@ public class WMSController extends BaseRESTfulController {
|
|
|
/*
|
|
|
获取入库垛位
|
|
|
*/
|
|
|
- Map<String, Object> map1 = qmsFeign.getStackingId(new BigDecimal(1), size);
|
|
|
- String stackNo = (String) map1.get("stackNo");
|
|
|
- BigDecimal stackId = new BigDecimal(map1.get("stackId").toString());
|
|
|
- for (Map<String, Object> map : mapList
|
|
|
- ) {
|
|
|
- map.put("stackingId", stackId);
|
|
|
- }
|
|
|
- wmsFeign.insertInboundResult(mapList);
|
|
|
- return stackNo;
|
|
|
+// Map<String, Object> map1 = qmsFeign.getStackingId(new BigDecimal(1), size);
|
|
|
+// String stackNo = (String) map1.get("stackNo");
|
|
|
+// BigDecimal stackId = new BigDecimal(map1.get("stackId").toString());
|
|
|
+// for (Map<String, Object> map : mapList
|
|
|
+// ) {
|
|
|
+// map.put("stackingId", stackId);
|
|
|
+// }
|
|
|
+
|
|
|
+ return wmsFeign.insertInboundResult(mapList);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -637,5 +702,82 @@ public class WMSController extends BaseRESTfulController {
|
|
|
return wmsFeign.selectMaterialSteelIdByReusltId(map);
|
|
|
}
|
|
|
|
|
|
+ //下发指令给行车工
|
|
|
+ @PostMapping("/updateInstruction")
|
|
|
+ public Map<String, Object> updateInstruction(@RequestBody Map<String, Object> map) {
|
|
|
+ return wmsFeign.updateInstruction(map);
|
|
|
+ }
|
|
|
+
|
|
|
+// @PostMapping("/selectScanResultByIboundResultId")
|
|
|
+// @ApiOperation(value = "根据入库实绩id获得扫描实绩数据")
|
|
|
+// @ApiImplicitParams({
|
|
|
+// @ApiImplicitParam(name = "apiId", value = "", required = false, dataType = "BigDecimal"),
|
|
|
+// })
|
|
|
+// public RESTfulResult selectScanResultByIboundResultId(Map<String, Object> mapValue,
|
|
|
+// Integer apiId,
|
|
|
+// Integer pageNum,
|
|
|
+// Integer pageSize) {
|
|
|
+// return wmsFeign.selectScanResultByIboundResultId(mapValue, apiId, pageNum, pageSize);
|
|
|
+// }
|
|
|
|
|
|
+ @PostMapping("/getIvboundMakeResultList")
|
|
|
+ @ApiOperation(value = "展示倒库列表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "372", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public RESTfulResult getIvboundMakeResultList(Map<String, Object> mapValue,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId,
|
|
|
+ String con) {
|
|
|
+ if (mapValue == null) {
|
|
|
+ mapValue = new HashMap<>();
|
|
|
+ }
|
|
|
+ return wmsFeign.getIvboundMakeResultList(mapValue, pageNum, pageSize, apiId, con);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增倒库作业
|
|
|
+ * @param mapValue
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping(value = "/addIvboundMakeResult")
|
|
|
+ public Map<String,Object> addIvboundMakeResult(@RequestBody Map<String,Object> mapValue) {
|
|
|
+ return wmsFeign.addIvboundMakeResult(mapValue);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 逻辑删除倒库作业
|
|
|
+ * @param resultId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping(value = "/deleteIvboundMakeResult/{resultId}")
|
|
|
+ public Map<String,Object> deleteIvboundMakeResult(@PathVariable("resultId") Integer resultId) {
|
|
|
+ return wmsFeign.deleteIvboundMakeResult(resultId);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询倒库作业
|
|
|
+ * @param resultId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping(value = "/selectIvboundMakeResult/{resultId}")
|
|
|
+ public List<Map<String,Object>> selectIvboundMakeResult(@PathVariable("resultId") Integer resultId) {
|
|
|
+ return wmsFeign.selectIvboundMakeResult(resultId);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改倒库作业
|
|
|
+ * @param mapValue
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping(value = "/updateIvboundMakeResult")
|
|
|
+ public Map<String,Object> updateIvboundMakeResult(@RequestBody Map<String,Object> mapValue) {
|
|
|
+ return wmsFeign.updateIvboundMakeResult(mapValue);
|
|
|
+ }
|
|
|
+ //下发给行车工
|
|
|
+ @PostMapping("/IssueToCrane")
|
|
|
+ Map<String,Object> IssueToCrane(@RequestBody Map<String, Object> map){
|
|
|
+ return wmsFeign.IssueToCrane(map);
|
|
|
+ }
|
|
|
}
|