| | |
| | | String barcode = map.get("barcode").toString(); |
| | | AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("barcode", barcode).eq("wrk_sts", 205L)); |
| | | if (agvWrkMast == null) { |
| | | R.error("工作档不存在"); |
| | | agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("barcode", barcode)); |
| | | if (agvWrkMast != null && agvWrkMast.getWrkSts() != 205) { |
| | | return R.error("工作档状态不对"); |
| | | } |
| | | return R.error("工作档不存在"); |
| | | } |
| | | if (agvWrkMast.getIoType() != 101 && agvWrkMast.getIoType() != 110) { |
| | | throw new CoolException("工作号为" + agvWrkMast.getWrkNo() + "类型不为101.出库,无法执行货架离场任务,请重新选择站点。"); |