|
|
|
@ -233,15 +233,21 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if (Func.isNotEmpty(distributionDeliverySelfEntity.getId())) { |
|
|
|
|
distributionLoadscanEntity.setLoadingId(distributionDeliverySelfEntity.getId().toString()); |
|
|
|
|
} |
|
|
|
|
if (StringUtils.isNotBlank(distributionDeliverySelfEntity.getDriverId())) { |
|
|
|
|
distributionLoadscanEntity.setDriverId(distributionDeliverySelfEntity.getDriverId()); |
|
|
|
|
if (Func.isNotEmpty(distributionDeliverySelfEntity.getDriverName())) { |
|
|
|
|
distributionLoadscanEntity.setDriverName(distributionDeliverySelfEntity.getDriverName()); |
|
|
|
|
} |
|
|
|
|
if (StringUtils.isNotBlank(distributionDeliverySelfEntity.getVehicleId())) { |
|
|
|
|
distributionLoadscanEntity.setVehicleId(distributionDeliverySelfEntity.getVehicleId()); |
|
|
|
|
} |
|
|
|
|
distributionLoadscanEntity.setScanTime(new Date()); |
|
|
|
|
distributionLoadscanEntity.setPackageId(collect.get(0).getId()); |
|
|
|
|
distributionLoadscanEntity.setOrderPackageCode(distrilbutionloadingscanDTO.getBarcode()); |
|
|
|
|
distributionLoadscanEntity.setSigningTime(simpleDateFormat.format(new Date())); |
|
|
|
|
distributionLoadscanEntity.setReceivedQuantity(collect.get(0).getQuantity()); |
|
|
|
|
distributionLoadscanEntity.setReservationId(distrilbutionloadingscanDTO.getReservationId()); |
|
|
|
|
distributionLoadscanEntity.setIsSignfor(2); |
|
|
|
|
distributionLoadscanEntity.setIsInsert(2); |
|
|
|
|
distributionLoadscanEntity.setSignforState(2); |
|
|
|
|
distributionLoadscanEntity.setPackageNub(collect.get(0).getQuantity()); |
|
|
|
|
distributionLoadscanEntity.setOrderId(collect.get(0).getStockArticleId()); |
|
|
|
|
distributionLoadscanEntity.setReservationId(distrilbutionloadingscanDTO.getReservationId()); |
|
|
|
@ -1342,6 +1348,10 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
@Override |
|
|
|
|
public List<DistributionReservationStocklistVO> signforInventoryList(Long signforId) { |
|
|
|
|
List<DistributionReservationStocklistVO> distributionReservationStocklistVOS = distributionSignforMapper.selectInventory(signforId); |
|
|
|
|
boolean flag = distributionReservationStocklistVOS.stream().allMatch(i -> Func.isEmpty(i.getStocklistId())); |
|
|
|
|
if (flag){ |
|
|
|
|
return null; |
|
|
|
|
}else { |
|
|
|
|
distributionReservationStocklistVOS.forEach(i->{ |
|
|
|
|
if (Func.isNotEmpty(i)){ |
|
|
|
|
List<DisStockListDetailEntity> list = disStockListDetailService.list(Wrappers.<DisStockListDetailEntity>query().lambda().eq(DisStockListDetailEntity::getReservationId, i.getReservationId()).eq(DisStockListDetailEntity::getStockListId, i.getStocklistId())); |
|
|
|
@ -1351,7 +1361,6 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
break; |
|
|
|
|
case "20": |
|
|
|
|
i.setLoadingStatusName(ReservationInventoryLoadingStatusConstant.bufenzhuangche.getName()); |
|
|
|
|
|
|
|
|
|
break; |
|
|
|
|
case "30": |
|
|
|
|
i.setLoadingStatusName(ReservationInventoryLoadingStatusConstant.yizhuangche.getName()); |
|
|
|
@ -1369,8 +1378,8 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
i.setDetailVOS(DistributionDisStockListWrapper.build().listVO(list)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return distributionReservationStocklistVOS; |
|
|
|
|
} |
|
|
|
|