|
@@ -92,7 +92,7 @@ public class AgvCallProxyService {
|
|
|
public void bucketIntoStorage(String palletNo, String materialType,
|
|
|
String agvSourceLocationId, Double quantity) {
|
|
|
//1.预备参数设置
|
|
|
- BaseSku baseSku = iBaseSkuService.selectBaseSkuByMaterialType(materialType);
|
|
|
+ BaseSku baseSku = iBaseSkuService.selectSkuByMaterialType(materialType);
|
|
|
Assert.isTrue(ObjectUtil.isNotNull(baseSku) && StringUtils.isNotBlank(baseSku.getSku()), "the materialType is illegal");
|
|
|
String asnNo = idSequenceUtils.generateId(Constant.ID_TYPE.ASNNO.getDesc());
|
|
|
Assert.isTrue(ObjectUtil.isNotNull(quantity) && quantity > 0, "quantity is illegal");
|
|
@@ -136,7 +136,7 @@ public class AgvCallProxyService {
|
|
|
public void bucketOutOfStorage(String materialType, String targetLocationId, Double quantity) {
|
|
|
|
|
|
//1.预备参数设置
|
|
|
- BaseSku baseSku = iBaseSkuService.selectBaseSkuByMaterialType(materialType);
|
|
|
+ BaseSku baseSku = iBaseSkuService.selectSkuByMaterialType(materialType);
|
|
|
Assert.isTrue(ObjectUtil.isNotNull(baseSku) && StringUtils.isNotBlank(baseSku.getSku()), "the materialType is illegal");
|
|
|
String orderNo = idSequenceUtils.generateId(Constant.ID_TYPE.ORDERNO.getDesc());
|
|
|
Assert.isTrue(ObjectUtil.isNotNull(quantity) && quantity > 0, "quantity is illegal");
|
|
@@ -236,8 +236,8 @@ public class AgvCallProxyService {
|
|
|
|
|
|
|
|
|
private WcsResponseVo noticeBucketOutLocTask(String taskNo, String bucketCacheLocationId, String orderNo, String materialType, Double quantity, BaseLocationInfo baseLocationInfo) {
|
|
|
- BaseSku baseSku = iBaseSkuService.selectBaseSkuByMaterialType(materialType);
|
|
|
- Assert.isTrue(ObjectUtil.isNotNull(baseSku), "baseSku is null");
|
|
|
+ BaseSku baseSku = iBaseSkuService.selectSkuByMaterialType(materialType);
|
|
|
+ Assert.isTrue(ObjectUtil.isNotNull(baseSku) && StringUtils.isNotBlank(baseSku.getSku()) , "baseSku is null");
|
|
|
//1.生成一个wcs任务
|
|
|
String locationInfoId = String.valueOf(baseLocationInfo.getId());
|
|
|
addWcsOutTask(taskNo, locationInfoId, bucketCacheLocationId, orderNo, 10L, "桶装料出库任务", Constant.TaskType.RGV.getDesc());
|