| | |
| | | if (Cools.isEmpty(wrkMast.getPdcType()) || !wrkMast.getPdcType().equals("Y")) { |
| | | List<ReplenishDto> replenishDtos = new ArrayList<>(); |
| | | List<WrkDetl> wrkDetls = wrkDetlService.selectList(new EntityWrapper<WrkDetl>().eq("wrk_no", wrkMast.getWrkNo())); |
| | | for (WrkDetl wrkDetl : wrkDetls) { |
| | | ReplenishDto param = new ReplenishDto(); |
| | | param.setMatnr(wrkDetl.getMatnr()); |
| | | param.setCount(wrkDetl.getAnfme()); |
| | | replenishDtos.add(param); |
| | | } |
| | | Result result = wmsService.replenish(replenishDtos); |
| | | if (result.getCode() != 200) { |
| | | exceptionHandle("补货到平仓[workNo={0}]失败", wrkMast.getWrkNo()); |
| | | if (!Cools.isEmpty(wrkDetls)) { |
| | | for (WrkDetl wrkDetl : wrkDetls) { |
| | | ReplenishDto param = new ReplenishDto(); |
| | | param.setMatnr(wrkDetl.getMatnr()); |
| | | param.setCount(wrkDetl.getAnfme()); |
| | | replenishDtos.add(param); |
| | | } |
| | | Result result = wmsService.replenish(replenishDtos); |
| | | if (result.getCode() != 200) { |
| | | exceptionHandle("补货到平仓[workNo={0}]失败", wrkMast.getWrkNo()); |
| | | } |
| | | } |
| | | // 销售订单 |
| | | } else { |