|
|
@ -573,7 +573,6 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
!StringUtils.hasText(position) || layer == null || !StringUtils.hasText(serialNo)) { |
|
|
!StringUtils.hasText(position) || layer == null || !StringUtils.hasText(serialNo)) { |
|
|
throw new Exception("参数不能为空"); |
|
|
throw new Exception("参数不能为空"); |
|
|
} |
|
|
} |
|
|
Map<String, Object> palletData = wcsIntegrationMapper.getPalletInfo(site, palletId); |
|
|
|
|
|
// 检查栈板是否正在被调用 - rqrq |
|
|
// 检查栈板是否正在被调用 - rqrq |
|
|
com.gaotao.modules.warehouse.entity.Pallet pallet = wcsIntegrationMapper.getPalletByCode(site, palletId); |
|
|
com.gaotao.modules.warehouse.entity.Pallet pallet = wcsIntegrationMapper.getPalletByCode(site, palletId); |
|
|
if (pallet != null && "Y".equals(pallet.getCallingFlag())) { |
|
|
if (pallet != null && "Y".equals(pallet.getCallingFlag())) { |
|
|
@ -668,6 +667,7 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
String palletType = palletInfo.getPalletType(); |
|
|
String palletType = palletInfo.getPalletType(); |
|
|
Integer maxLayer = palletInfo.getMaxLayer() != null ? palletInfo.getMaxLayer() : 0; |
|
|
Integer maxLayer = palletInfo.getMaxLayer() != null ? palletInfo.getMaxLayer() : 0; |
|
|
Integer wcsSoreType = palletInfo.getWcsSoreType() != null ? palletInfo.getWcsSoreType() : 0; |
|
|
Integer wcsSoreType = palletInfo.getWcsSoreType() != null ? palletInfo.getWcsSoreType() : 0; |
|
|
|
|
|
Integer wcsBasePalletType = palletInfo.getWcsBasePalletType() != null ? palletInfo.getWcsBasePalletType() : 0; |
|
|
if (layer > 1) { |
|
|
if (layer > 1) { |
|
|
// 检查该位置的第1层到第layer-1层是否都有物料 - rqrq |
|
|
// 检查该位置的第1层到第layer-1层是否都有物料 - rqrq |
|
|
List<Integer> existingLayers = wcsIntegrationMapper.getLayersByPosition(site, palletId, position); |
|
|
List<Integer> existingLayers = wcsIntegrationMapper.getLayersByPosition(site, palletId, position); |
|
|
@ -686,6 +686,17 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
if (!existingDetails.isEmpty()) { |
|
|
if (!existingDetails.isEmpty()) { |
|
|
throw new Exception("该位置第" + layer + "层已有物料,气胀轴分拣托盘每层只能放一个物料"); |
|
|
throw new Exception("该位置第" + layer + "层已有物料,气胀轴分拣托盘每层只能放一个物料"); |
|
|
} |
|
|
} |
|
|
|
|
|
// if(wcsBasePalletType==2){ |
|
|
|
|
|
// //围框自动分拣,必须满足同一摞物料的接收日期要同一天 并且是同一个物料 |
|
|
|
|
|
// List<PalletDetailData> existingDetailsOther = wcsIntegrationMapper.getPalletDetailsPosition(site, palletId, position); |
|
|
|
|
|
// if (!existingDetailsOther.isEmpty()) { |
|
|
|
|
|
// PalletDetailData getFirst = existingDetailsOther.getFirst(); |
|
|
|
|
|
// HandlingUnit handlingUnit = wcsIntegrationMapper.getExpiredDateWithSerialNo(site,serialNo); |
|
|
|
|
|
// if(!getFirst.getPartNo().equals(partNo)){ |
|
|
|
|
|
// throw new Exception("该位置第" + layer + "层已有物料,请勿重复扫描"); |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
} else if (wcsSoreType == 2) { |
|
|
} else if (wcsSoreType == 2) { |
|
|
// wcsSoreType = 2:抱箱自动分拣(底4箱+上3箱等),每层可以放多个东西 |
|
|
// wcsSoreType = 2:抱箱自动分拣(底4箱+上3箱等),每层可以放多个东西 |
|
|
} else { |
|
|
} else { |
|
|
|