| | |
| | | } |
| | | // 生成工作档明细 |
| | | for (LocDetlDto detlDto : dto.getLocDetlDtos()) { |
| | | // 如果为捡料出库需要判断托盘码是否为空 |
| | | if (ioType == 103) { |
| | | String zpallet = detlDto.getLocDetl().getZpallet(); |
| | | if (Cools.isEmpty(zpallet)) { |
| | | throw new CoolException("拣料出库必须含有托盘码"); |
| | | } |
| | | } |
| | | // 出库时,数量为0的直接忽略 |
| | | if (detlDto.getCount() == null || detlDto.getCount() <= 0.0D) { |
| | | continue; |
| | |
| | | if (Cools.isEmpty(locMast)) { |
| | | throw new CoolException(locNo + "库位不存在"); |
| | | } |
| | | if(!locMast.getLocSts().equals("D")){ //非在库状态 |
| | | continue; |
| | | } |
| | | // 获取源站 |
| | | Wrapper<StaDesc> wrapper = new EntityWrapper<StaDesc>() |
| | | .eq("type_no", 110) |