| | |
| | | ledCommand.setStaNo(wrkMast.getStaNo()); |
| | | if (wrkMast.getIoType() != 110 && wrkMast.getIoType() != 10) { |
| | | List<WrkDetl> wrkDetls = wrkDetlService.findByWorkNo(wrkMast.getWrkNo()); |
| | | wrkDetls.forEach(wrkDetl -> ledCommand.getMatDtos().add(new MatDto(wrkDetl.getMatnr(), wrkDetl.getMaktx(), wrkDetl.getAnfme(),wrkDetl.getSpecs()))); |
| | | wrkDetls.forEach(wrkDetl -> ledCommand.getMatDtos() |
| | | .add(new MatDto(wrkDetl.getMatnr() |
| | | ,wrkDetl.getMaktx() |
| | | ,wrkDetl.getAnfme() |
| | | ,locDetlService.selectById(wrkDetl.getBarcode()).getAnfme() |
| | | ,wrkDetl.getSpecs() |
| | | ,wrkDetl.getSuppCode()))); |
| | | } |
| | | commands.add(ledCommand); |
| | | } |
| | |
| | | // 物料名称 |
| | | private String model; |
| | | |
| | | // 箱码 |
| | | private String containerCode; |
| | | |
| | | // 条码 |
| | | private String batch; |
| | | |
| | |
| | | this.count = count; |
| | | this.total = total; |
| | | } |
| | | public MatDto(String matNo, String maknx, Double count,Double total,String specs,String containerCode) { |
| | | this.containerCode = containerCode; |
| | | this.specs = specs; |
| | | this.matNo = matNo; |
| | | this.maknx = maknx; |
| | | this.count = count; |
| | | this.total = total; |
| | | } |
| | | } |