| | |
| | | import com.zy.asrs.entity.LocDetlRullUpDetail; |
| | | import com.zy.asrs.entity.Order; |
| | | import com.zy.asrs.entity.OrderDetl; |
| | | import com.zy.asrs.entity.WrkDetl; |
| | | import com.zy.asrs.service.LocDetlRullUpDetailService; |
| | | import com.zy.asrs.service.OrderService; |
| | | import io.swagger.models.License; |
| | |
| | | |
| | | public TrussCombParam(){} |
| | | |
| | | public TrussCombParam(TrussCombParam trussCombParam, Order order, List<OrderDetl> orderDetlList){ |
| | | LocDetlRullUpDetailService locDetlRullUpDetailService = SpringUtils.getBean(LocDetlRullUpDetailService.class); |
| | | |
| | | this.barcode = trussCombParam.getBarcode(); |
| | | public TrussCombParam( WrkDetl wrkDetl,Integer staEnd){ |
| | | this.barcode = wrkDetl.getZpallet(); |
| | | this.staStart = 147; |
| | | this.palletizingNo2 = trussCombParam.getPalletizingNo2(); |
| | | this.staEnd = trussCombParam.getStaEnd(); |
| | | this.boxType = orderDetlList.get(0).getBrand(); |
| | | this.uuid = trussCombParam.getBarcode(); |
| | | this.orderNo = trussCombParam.getOrderNo(); |
| | | this.palletizingNo2 = staEnd; |
| | | this.staEnd = staEnd; |
| | | this.boxType = wrkDetl.getBrand(); |
| | | this.uuid = wrkDetl.getBarcode(); |
| | | this.orderNo = wrkDetl.getOrderNo(); |
| | | List<MatList> matLists = new ArrayList<>(); |
| | | for (OrderDetl orderDetl:orderDetlList){ |
| | | MatList matList = new MatList(); |
| | | matList.setMatnr(orderDetl.getMatnr()); |
| | | matList.setMaktx(orderDetl.getMaktx()); |
| | | matList.setAnfme(orderDetl.getAnfme().intValue()); |
| | | matList.setBatch(orderDetl.getBatch()); |
| | | matList.setBoxNo(orderDetl.getBatch()); |
| | | matList.setPosition("1"); |
| | | matList.setWeight(orderDetl.getWeight()); |
| | | matList.setSpecs(orderDetl.getSpecs()); |
| | | List<MatDetlList> matDetlLists= new ArrayList<>(); |
| | | List<LocDetlRullUpDetail> locDetlRullUpDetails = locDetlRullUpDetailService.selectList(new EntityWrapper<LocDetlRullUpDetail>().eq("uuid", orderDetl.getUnit())); |
| | | for (LocDetlRullUpDetail locDetlRullUpDetail:locDetlRullUpDetails){ |
| | | MatDetlList matDetlList = new MatDetlList(); |
| | | matDetlList.setBoxNoDetl(locDetlRullUpDetail.getRollNo()); |
| | | matDetlList.setWeightDetl(locDetlRullUpDetail.getRollWeight()); |
| | | matDetlList.setBatchDetl(locDetlRullUpDetail.getStandby1()); |
| | | matDetlList.setSpecsDetl(locDetlRullUpDetail.getStandby2()); |
| | | matDetlLists.add(matDetlList); |
| | | } |
| | | matList.setMatDetlList(matDetlLists); |
| | | matLists.add(matList); |
| | | } |
| | | MatList matList = new MatList(); |
| | | matList.setMatnr(wrkDetl.getMatnr()); |
| | | matList.setMaktx(wrkDetl.getMaktx()); |
| | | matList.setAnfme(wrkDetl.getAnfme().intValue()); |
| | | matList.setBatch(wrkDetl.getBatch()); |
| | | matList.setBoxNo(wrkDetl.getBatch()); |
| | | matList.setPosition(wrkDetl.getOrigin()); |
| | | matList.setWeight(wrkDetl.getWeight()); |
| | | matLists.add(matList); |
| | | |
| | | this.matList = matLists; |
| | | } |
| | | |