| | |
| | | if (!locDetlDtos.isEmpty()) { |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", locDetlDtos.get(0).getLocDetl().getLocNo())); |
| | | if (locMast.getLocSts().equals("F") || locMast.getLocSts().equals("D")) { |
| | | if (staNo.getDevNo() == 1135 && locMast.getLocType1() == 2) { |
| | | throw new CoolException("所选库位不是低库位无法调拨,库位号:{}" + locMast.getLocNo()); |
| | | } |
| | | // 启动出库开始 101.出库 |
| | | stockOut(staNo, locDetlDtos, null, userId); |
| | | } else { |
| | |
| | | LocMast locMast = locMastService.selectById(dto.getLocNo()); |
| | | |
| | | Integer outSta = staNo.getDevNo(); |
| | | if (outSta == 1135 || outSta == 1031) { |
| | | if (101 != ioType) { |
| | | throw new CoolException("该站点必须全板出库,出库库位号:" + dto.getLocNo()); |
| | | } |
| | | } |
| | | // //2号堆垛机全板出库站指定为204站,拣料站指定为202 |
| | | // if(locMast.getCrnNo()==2){ |
| | | // outSta = ioType == 101 ? 204 : 202; |