|
|
|
@ -838,6 +838,8 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
String autoSort = palletInfo.getAutoSort(); |
|
|
|
boolean isAutoSort = "Y".equals(autoSort); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取栈板里面增量数据 |
|
|
|
List<PalletDetailData> newDetail=wcsIntegrationMapper.getPalletDetailsNewDetail(site, palletId); |
|
|
|
if(newDetail.isEmpty()){ |
|
|
|
@ -847,6 +849,15 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
boolean hasCommonlyUsed = newDetail.stream() |
|
|
|
.anyMatch(pallet -> "Y".equals(pallet.getIsCommonlyUsed())); |
|
|
|
PushPalletDetailDto inData= new PushPalletDetailDto(); |
|
|
|
if("A01".equals(palletInfo.getPalletFamily())){ |
|
|
|
inData.setPartType(PartTypeEnum.fromCode(2)); |
|
|
|
}else if("A02".equals(palletInfo.getPalletFamily())){ |
|
|
|
inData.setPartType(PartTypeEnum.fromCode(1)); |
|
|
|
}else if("A03".equals(palletInfo.getPalletFamily())){ |
|
|
|
inData.setPartType(PartTypeEnum.fromCode(0)); |
|
|
|
}else{ |
|
|
|
inData.setPartType(PartTypeEnum.fromCode(3)); |
|
|
|
} |
|
|
|
inData.setSite(site); |
|
|
|
inData.setTaskNo(taskNo); |
|
|
|
inData.setItemNo(itemNo); |
|
|
|
|