| | |
| | | sourceStaNoEntity.setLocType1((short) (param.getLocType1()!=1?2:1)); |
| | | LocTypeDto locTypeDto = new LocTypeDto(sourceStaNoEntity); |
| | | if (waitPakins.get(0).getMatnr().equals("emptyPallet")) { |
| | | // 空托盘由组托档 matnr=emptyPallet 标识;后续 CommonService 会按窄库位优先、locType1=3 兜底规则找库位。 |
| | | locTypeDto.setLocType2((short) 1); |
| | | } |
| | | |
| | |
| | | } |
| | | sourceStaNo.setLocType1(param.getLocType1()); |
| | | LocTypeDto locTypeDto = new LocTypeDto(sourceStaNo); |
| | | // AGV 空托盘直入库固定走 staDescId=10,最终由 CommonService.getLocNo 统一执行找位规则。 |
| | | param.setIoType(10); |
| | | StartupDto dto = null; |
| | | switch (param.getIoType()) { |
| | |
| | | public StartupDto startupFullPutStoreAgv(Integer devpNo, String barcode, LocTypeDto locTypeDto, Integer outArea, Integer staDescId) { |
| | | // 源站点状态检测 |
| | | // BasDevp sourceStaNo = basDevpService.checkSiteStatus(devpNo, true); |
| | | // 检索库位 |
| | | // 检索库位;staDescId=10 时按空托盘入口识别,进入 CommonService 的优先池 + locType1=3 兜底找位规则。 |
| | | FindLocNoAttributeVo findLocNoAttributeVo = new FindLocNoAttributeVo(); |
| | | findLocNoAttributeVo.setOutArea(outArea); |
| | | // FindLocNoAttributeVo findLocNoAttributeVo = new FindLocNoAttributeVo(waitPakins.get(0)); |
| | |
| | | try { |
| | | // 源站点状态检测 |
| | | BasDevp sourceStaNo = basDevpService.checkSiteStatus(devpNo, true); |
| | | // 检索库位 |
| | | // 检索库位;如果组托档是 emptyPallet,即使 staDescId=1,也会在 CommonService 内切换为空托盘找位规则。 |
| | | FindLocNoAttributeVo findLocNoAttributeVo = new FindLocNoAttributeVo(waitPakins.get(0)); |
| | | // IoT 指定了目标库位时优先尝试该库位;不可用时再退回现有自动找位规则。 |
| | | StartupDto dto = buildPreferredStartupDto(devpNo, extractPreferredInboundLoc(waitPakins)); |
| | |
| | | public StartupDto emptyPlateIn(Integer devpNo, LocTypeDto locTypeDto, String barcode) { |
| | | // 源站点状态检测 |
| | | BasDevp sourceStaNo = basDevpService.checkSiteStatus(devpNo, true); |
| | | // 检索库位 |
| | | // 检索库位;旧空托盘入库入口固定传 staDescId=10,仍复用 CommonService 的统一空托盘找位规则。 |
| | | FindLocNoAttributeVo findLocNoAttributeVo = new FindLocNoAttributeVo(); |
| | | |
| | | StartupDto dto = commonService.getLocNo(10, devpNo, findLocNoAttributeVo, locTypeDto); |