diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/TaskQuestServiceImpl.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/TaskQuestServiceImpl.java index 72c629b81..8c40c3db9 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/TaskQuestServiceImpl.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/TaskQuestServiceImpl.java @@ -2084,33 +2084,41 @@ public class TaskQuestServiceImpl extends BaseServiceImpl parcelList1 = distributionParcelListClient.getParcelList(parcelList); - if (!parcelList1.isEmpty()) { - questDetail.setOrderId(parcelList1.get(0).getStockArticleId()); - } else { - continue; - } - DistributionStockArticleEntity distributionStockArticleEntity = getStockArticleInfo(parcelList1.get(0).getStockArticleId()); -// if (!list.stream().anyMatch(d -> d.getRefName().equals(distributionStockArticleEntity.getMallName()))) { +// questDetail.setQuestTarget(1);// +// questDetail.setOrderPackageCode(i.getAssociationValue());//包条码 +// questDetail.setOrderPackageId(i.getAssociationId());//包件ID +// DistributionParcelListEntity parcelList = new DistributionParcelListEntity(); +// parcelList.setId(i.getAssociationId()); +// parcelList.setOrderPackageCode(i.getAssociationValue()); +// List parcelList1 = distributionParcelListClient.getParcelList(parcelList); +// if (!parcelList1.isEmpty()) { +// questDetail.setOrderId(parcelList1.get(0).getStockArticleId()); +// } else { // continue; // } - questDetail.setOrderCode(distributionStockArticleEntity.getOrderCode());// - WarehouseUpdownGoodsEntity warehouseUpdownGoodsEntity = getUpdownGoodsPack(i.getAssociationId(), "3", i.getAssociationValue(), warehouseId); - - if (Optional.ofNullable(warehouseUpdownGoodsEntity).isPresent()) { - questDetail.setPositionCode(warehouseUpdownGoodsEntity.getPositionCode());//完整货位 - questDetail.setAllocationId(String.valueOf(warehouseUpdownGoodsEntity.getAllocationId())); - } - questDetail.setIsNew(0);//是否新增 +// DistributionStockArticleEntity distributionStockArticleEntity = getStockArticleInfo(parcelList1.get(0).getStockArticleId()); +//// if (!list.stream().anyMatch(d -> d.getRefName().equals(distributionStockArticleEntity.getMallName()))) { +//// continue; +//// } +// questDetail.setOrderCode(distributionStockArticleEntity.getOrderCode());// +// WarehouseUpdownGoodsEntity warehouseUpdownGoodsEntity = getUpdownGoodsPack(i.getAssociationId(), "3", i.getAssociationValue(), warehouseId); +// +// if (Optional.ofNullable(warehouseUpdownGoodsEntity).isPresent()) { +// questDetail.setPositionCode(warehouseUpdownGoodsEntity.getPositionCode());//完整货位 +// questDetail.setAllocationId(String.valueOf(warehouseUpdownGoodsEntity.getAllocationId())); +// } +// questDetail.setIsNew(0);//是否新增 + DistributionParcelListEntity byPacketBarCodeAndWarehouseId = distributionParcelListClient.findByPacketBarCodeAndWarehouseId(i.getAssociationValue(), warehouseId); + questDetail =buildQuestDetailEntity(taskSearchDTO.getQuestId(),byPacketBarCodeAndWarehouseId,user,null); break; case "4": //4库存品 - + questDetail.setCreateUser(user.getUserId()); + questDetail.setCreateDept(Long.parseLong(user.getDeptId().split(",")[0])); + questDetail.setStatus(1); + questDetail.setIsDeleted(0); + Date date = new Date(); + questDetail.setCreateTime(date); + questDetail.setUpdateTime(date); questDetail.setQuestTarget(3);// DistributionStockListEntity stockListEntity = new DistributionStockListEntity(); stockListEntity.setIncomingBatch(i.getIncomingBatch()); @@ -2138,14 +2146,8 @@ public class TaskQuestServiceImpl extends BaseServiceImpl