fix
This commit is contained in:
@@ -160,18 +160,16 @@ public class MJXLTask extends AbstractTask {
|
||||
if(!flag){
|
||||
continue;
|
||||
}
|
||||
log.info("满架下料找到当前符合条件的点位{},当前列总数{}", schBasePoint.getPoint_code(),qty);
|
||||
log.info("满架下料找到当前符合条件的点位{},当前列库存总数{}", schBasePoint.getPoint_code(),qty);
|
||||
pointMap.put(schBasePoint,qty);
|
||||
}
|
||||
}
|
||||
SchBasePoint schBasePoint=null;
|
||||
int qty=0;
|
||||
Iterator<Map.Entry<SchBasePoint,Integer>> iterator = pointMap.entrySet().iterator();
|
||||
while (iterator.hasNext()){
|
||||
Map.Entry<SchBasePoint,Integer> next = iterator.next();
|
||||
if (next.getValue()>qty){
|
||||
qty=next.getValue();
|
||||
schBasePoint=next.getKey();
|
||||
for (Map.Entry<SchBasePoint, Integer> next : pointMap.entrySet()) {
|
||||
if (next.getValue() >= qty) {
|
||||
qty = next.getValue();
|
||||
schBasePoint = next.getKey();
|
||||
}
|
||||
}
|
||||
return schBasePoint;
|
||||
|
||||
Reference in New Issue
Block a user