|
|
@ -1783,7 +1783,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib |
|
|
|
* |
|
|
|
* |
|
|
|
* @param distrilbutionloadingscanDTO |
|
|
|
* @param distrilbutionloadingscanDTO |
|
|
|
* @param distributionDeliverySelfEntity |
|
|
|
* @param distributionDeliverySelfEntity |
|
|
|
* @param disStockListDetailEntities |
|
|
|
|
|
|
|
* @return |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@NotNull |
|
|
|
@NotNull |
|
|
@ -1825,6 +1824,45 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib |
|
|
|
return distributionLoadscaninvnEntity; |
|
|
|
return distributionLoadscaninvnEntity; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@NotNull |
|
|
|
|
|
|
|
private static DistributionLoadscaninvnEntity getDistributionLoadscaninvnEntity(DistrilbutionloadingscanDTO distrilbutionloadingscanDTO, DistributionDeliverySelfEntity distributionDeliverySelfEntity, List<DisStockListDetailEntity> disStockListDetailEntities, BasicdataWarehouseEntity warehouseEntity) { |
|
|
|
|
|
|
|
DistributionLoadscaninvnEntity distributionLoadscaninvnEntity = new DistributionLoadscaninvnEntity(); |
|
|
|
|
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
|
|
|
|
String now = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (null != distributionDeliverySelfEntity.getDriverId()) { |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setDriverId(distributionDeliverySelfEntity.getDriverId()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (null != distributionDeliverySelfEntity.getDriverName()) { |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setDriverName(distributionDeliverySelfEntity.getDriverName()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (null != distributionDeliverySelfEntity.getVehicleId()) { |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setVehicleId(distributionDeliverySelfEntity.getVehicleId()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (null != distributionDeliverySelfEntity.getVehicleNub()) { |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setVehicleName(distributionDeliverySelfEntity.getVehicleNub()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (null != distributionDeliverySelfEntity.getId()) { |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setLoadingId(distributionDeliverySelfEntity.getId().toString()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setScanStatus(LoadingStatusConstant.saomiao.getValue()); |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setScanType("1"); |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setScanUser(user.getUserName()); |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setScanTime(now); |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setOrderPackageCode(disStockListDetailEntities.get(0).getStockPackageCode()); |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setInventoryId(disStockListDetailEntities.get(0).getStockListId()); |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setReservationId(disStockListDetailEntities.get(0).getReservationId()); |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setOneClick(1); |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setWarehouseId(warehouseEntity.getId()); |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setWarehouseName(warehouseEntity.getName()); |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setInventoryPackageId(disStockListDetailEntities.get(0).getId()); |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setLoadedNub(disStockListDetailEntities.get(0).getNum()); |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setDeliveryId(distrilbutionloadingscanDTO.getDeliveryId()); |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setIsInsert(LoadingIsInsertConstant.zhengchang.getValue()); |
|
|
|
|
|
|
|
distributionLoadscaninvnEntity.setScanSynchronous(1); |
|
|
|
|
|
|
|
return distributionLoadscaninvnEntity; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public IPage<DistributionDeliveryListPrintReponseVO> customListPage(IPage<DistributionDeliveryListPrintReponseVO> page, QueryWrapper<DistributionDeliveryListPrintRequestVO> queryWrapper) { |
|
|
|
public IPage<DistributionDeliveryListPrintReponseVO> customListPage(IPage<DistributionDeliveryListPrintReponseVO> page, QueryWrapper<DistributionDeliveryListPrintRequestVO> queryWrapper) { |
|
|
|