Commit 30a75ffa sunke

流水线在横移上锁定非紧急料架位,当返回码为99时,不放上托盘

需求单出库为0时关闭
执行队列页面显示绑定数量
取消任务时增加PN需求单判断
Http请求增加URLEncode
1 个父辈 60d34fd3
...@@ -264,9 +264,17 @@ public class InquiryShelfBean { ...@@ -264,9 +264,17 @@ public class InquiryShelfBean {
if(hSerial != null){ if(hSerial != null){
Map<String, ShelfInfo> shelfMap = hSerialShelfMap.get(hSerial); Map<String, ShelfInfo> shelfMap = hSerialShelfMap.get(hSerial);
if(shelfMap != null){ if(shelfMap != null){
List<ShelfInfo> shelfList = new ArrayList<>(shelfMap.values());
shelfList.sort(new Comparator<ShelfInfo>() {
@Override
public int compare(ShelfInfo o1, ShelfInfo o2) {
Integer index1 = o1.getRfidIndex();
Integer index2 = o2.getRfidIndex();
return index1.compareTo(index2);
}
});
ShelfInfo minIndexShelf = null; ShelfInfo minIndexShelf = null;
for (ShelfInfo shelf : shelfList) {
for (ShelfInfo shelf : shelfMap.values()) {
if(shelf.isFull()){ if(shelf.isFull()){
//已经放满,查找下一个 //已经放满,查找下一个
continue; continue;
...@@ -290,12 +298,24 @@ public class InquiryShelfBean { ...@@ -290,12 +298,24 @@ public class InquiryShelfBean {
log.error("任务条码["+task.getBarcode()+"]已无料架可放"); log.error("任务条码["+task.getBarcode()+"]已无料架可放");
return null; return null;
}else{ }else{
//这里判断是否有未绑定过的料架
boolean hasEmptyShelf = false;
for (String rfid : rfidList) {
ShelfInfo shelf = findShelfByRealRfid(rfid);
if(shelf == null){
hasEmptyShelf = true;
break;
}
}
if(hasEmptyShelf){
lockLoc = minIndexShelf.lockOneEmptyLoc(task); lockLoc = minIndexShelf.lockOneEmptyLoc(task);
if (lockLoc != null){ if (lockLoc != null){
shelfInfo = minIndexShelf; shelfInfo = minIndexShelf;
} }
} }
} }
}
} }
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!