| | |
| | | continue; |
| | | } |
| | | |
| | | //解析前判断内部目标值是否有物 有工作号 |
| | | StaProtocol staProtocolInside = devpThread.getStation().get(Utils.getStaByLev(Utils.getLev(task.getDestLoc()))); |
| | | if (staProtocolInside == null) { |
| | | continue; |
| | | } |
| | | if (staProtocolInside.isLoading() || staProtocolInside.getWorkNo() !=0) { |
| | | continue; |
| | | } |
| | | |
| | | if (Cools.isEmpty(task.getShuttleNo())) { |
| | | //分配小车 |
| | |
| | | import com.zy.asrs.wcs.rcs.thread.ShuttleThread; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | public class Utils { |
| | | |
| | | public static final String _LINK = "-"; |
| | | |
| | | public static Integer getStaByLev(Integer lev) { |
| | | HashMap<Integer, Integer> map = new HashMap<>(); |
| | | map.put(1, 31006); |
| | | map.put(2, 31007); |
| | | map.put(3, 31008); |
| | | |
| | | return map.get(lev); |
| | | } |
| | | |
| | | /** |
| | | * 通过库位号获取 排 |
| | | */ |