| | |
| | | /** |
| | | * 堆垛机库入库站点 |
| | | */ |
| | | public static final Map<Integer,Boolean> inSiteMap = new HashMap<Integer,Boolean>(); |
| | | public static final Map<Integer, Boolean> inSiteMap = new HashMap<Integer, Boolean>(); |
| | | |
| | | static { |
| | | inSiteMap.put(1040, true);inSiteMap.put(1042, true); |
| | | inSiteMap.put(2010, true);inSiteMap.put(2012, true); |
| | | inSiteMap.put(2000, true);inSiteMap.put(2002, true); |
| | | inSiteMap.put(3010, true);inSiteMap.put(3012, true); |
| | | inSiteMap.put(1040, true); |
| | | inSiteMap.put(1042, true); |
| | | inSiteMap.put(2010, true); |
| | | inSiteMap.put(2012, true); |
| | | inSiteMap.put(2000, true); |
| | | inSiteMap.put(2002, true); |
| | | inSiteMap.put(3010, true); |
| | | inSiteMap.put(3012, true); |
| | | } |
| | | |
| | | /** |
| | | * 堆垛机出库操作时拦截出库站点,判断出入库模式 |
| | | * |
| | | * @param site 出库站点 |
| | | */ |
| | | public static void outStockIntercept(Integer site) { |
| | | log.info("出库判断是否有入库任务,出库站点:{}",site); |
| | | log.info("出库判断是否有入库任务,出库站点:{}", site); |
| | | // 只判断堆垛机库的入库站点 |
| | | if (inSiteMap.get(site) != null) { |
| | | BasDevpMapper basDevpMapper = SpringUtils.getBean(BasDevpMapper.class); |