Commit d7363090 zshaohui

科博达分配库位提交

1 个父辈 6edabd18
...@@ -371,7 +371,9 @@ public class KebodaController { ...@@ -371,7 +371,9 @@ public class KebodaController {
private StoragePos findBestFixPos(List<Storage> storageList,Barcode barcode, String rfid, String lastPosId){ private StoragePos findBestFixPos(List<Storage> storageList,Barcode barcode, String rfid, String lastPosId){
StoragePos pos = null; StoragePos pos = null;
for (Storage storage : storageList) { for (Storage storage : storageList) {
StoragePos tempPos = taskService.findEmptyPosForPutIn(storageList, barcode, rfid, lastPosId); List<Storage> newStorageList = new ArrayList<>();
newStorageList.add(storage);
StoragePos tempPos = taskService.findEmptyPosForPutIn(newStorageList, barcode, rfid, lastPosId);
if(tempPos != null){ if(tempPos != null){
if(tempPos.getW() == barcode.getPlateSize() && tempPos.getH() == barcode.getHeight()){ if(tempPos.getW() == barcode.getPlateSize() && tempPos.getH() == barcode.getHeight()){
//库位尺寸与料盘尺寸完全一致,直接返回 //库位尺寸与料盘尺寸完全一致,直接返回
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!