Commit e33096dd LN

取消任务解除最小位置

1 个父辈 6fb59e10
......@@ -361,7 +361,7 @@ public class InquiryShelfBean {
}else if(appendInfo.isTailAction()){
//补料盘,解除最后一个料架上的位置
ShelfInfo maxShelf = null;
ShelfInfo minShelf = null;
String taskShelfType = appendInfo.getShelfType();
String targetShelfType = taskShelfType;
for (ShelfInfo shelfInfo : shelfMap.values()) {
......@@ -383,17 +383,17 @@ public class InquiryShelfBean {
targetShelfType = StorageConstants.SHEFL_TYPE.C;
}
if(shelfInfo.getShelfType().equals(targetShelfType) && !shelfInfo.isFull()){
if(maxShelf == null || shelfInfo.getRfidIndex() > maxShelf.getRfidIndex()){
maxShelf = shelfInfo;
if(minShelf == null || shelfInfo.getRfidIndex() < minShelf.getRfidIndex()){
minShelf = shelfInfo;
}
}
}
}
if(maxShelf != null){
boolean result =maxShelf.cancelLoc(targetShelfType, task);
if(minShelf != null){
boolean result =minShelf.cancelLoc(targetShelfType, task);
if(result){
log.info("补料盘["+task.getBarcode()+"]任务取消,同类型最大料架" + maxShelf.tempRfid() +"架位置空");
updateShelfInfo(maxShelf);
log.info("补料盘["+task.getBarcode()+"]任务取消,同类型最小料架" + minShelf.tempRfid() +"架位置空");
updateShelfInfo(minShelf);
}
}
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!