| | |
| | | |
| | | private String matStatus; |
| | | |
| | | private String str5; |
| | | |
| | | private String str6; |
| | | |
| | | public MatCodeCountDto() { |
| | | } |
| | | |
| | | public MatCodeCountDto(String matNo, Double count, String matStatus) { |
| | | public MatCodeCountDto(String matNo, Double count, String matStatus, String str5, String str6) { |
| | | this.matNo = matNo; |
| | | this.count = count; |
| | | this.matStatus = matStatus; |
| | | this.str5 = str5; |
| | | this.str6 = str6; |
| | | } |
| | | |
| | | public String getMatNo() { |
| | |
| | | public void setMatStatus(String matStatus) { |
| | | this.matStatus = matStatus; |
| | | } |
| | | |
| | | public String getStr5() { |
| | | return str5; |
| | | } |
| | | |
| | | public void setStr5(String str5) { |
| | | this.str5 = str5; |
| | | } |
| | | |
| | | public String getStr6() { |
| | | return str6; |
| | | } |
| | | |
| | | public void setStr6(String str6) { |
| | | this.str6 = str6; |
| | | } |
| | | } |
| | |
| | | |
| | | private String matStatus; |
| | | |
| | | // 生产单号 |
| | | private String str5; |
| | | |
| | | // 通知单号 |
| | | private String str6; |
| | | |
| | | public String getMatNo() { |
| | | return matNo; |
| | | } |
| | |
| | | public void setMatStatus(String matStatus) { |
| | | this.matStatus = matStatus; |
| | | } |
| | | |
| | | public String getStr5() { |
| | | return str5; |
| | | } |
| | | |
| | | public void setStr5(String str5) { |
| | | this.str5 = str5; |
| | | } |
| | | |
| | | public String getStr6() { |
| | | return str6; |
| | | } |
| | | |
| | | public void setStr6(String str6) { |
| | | this.str6 = str6; |
| | | } |
| | | } |
| | | |
| | | public String getBarcode() { |
| | |
| | | List<MatCodeCountDto> matDtos = new ArrayList<>(); |
| | | if (Cools.isEmpty(param.getProductCode())) { |
| | | param.getList().forEach(elem -> { |
| | | matDtos.add(new MatCodeCountDto(elem.getMatNo(), elem.getCount(), elem.getMatStatus())); |
| | | matDtos.add(new MatCodeCountDto(elem.getMatNo(), elem.getCount(), elem.getMatStatus(), elem.getStr5(), elem.getStr6())); |
| | | }); |
| | | wrkDetlService.createWorkDetail(workNo, matDtos, param.getBarcode(), userId); |
| | | // 成品物料 |
| | |
| | | wrkDetl.setIoTime(new Date()); |
| | | wrkDetl.setAnfme(dto.getCount()); // 数量 |
| | | VersionUtils.setWrkDetl(wrkDetl, matCode); // 版本控制 |
| | | // 如果生成单号为空进行补充 |
| | | if (Cools.isEmpty(wrkDetl.getMnemonic())) { |
| | | wrkDetl.setMnemonic(dto.getStr5()); |
| | | } |
| | | // 如果通知单号为空进行补充 |
| | | if (Cools.isEmpty(wrkDetl.getSupplier())) { |
| | | wrkDetl.setSupplier(dto.getStr6()); |
| | | } |
| | | wrkDetl.setZpallet(barcode); // 托盘条码 |
| | | wrkDetl.setAppeUser(userId); |
| | | wrkDetl.setAppeTime(new Date()); |