@ -36,14 +36,12 @@ import com.logpm.distribution.vo.*;
import com.logpm.distribution.wrapper.DistributionStockupWrapper ;
import com.logpm.distribution.wrapper.DistributionStockupWrapper ;
import com.logpm.warehouse.entity.WarehouseTaryAllocationEntity ;
import com.logpm.warehouse.entity.WarehouseTaryAllocationEntity ;
import com.logpm.warehouse.entity.WarehouseTrayGoodsEntity ;
import com.logpm.warehouse.entity.WarehouseTrayGoodsEntity ;
import com.logpm.warehouse.entity.WarehouseUpdownGoodsLogEntity ;
import com.logpm.warehouse.feign.IWarehouseTaryAllocationClient ;
import com.logpm.warehouse.feign.IWarehouseTaryAllocationClient ;
import com.logpm.warehouse.feign.IWarehouseTrayGoodsClient ;
import com.logpm.warehouse.feign.IWarehouseTrayGoodsClient ;
import com.logpm.warehouse.feign.IWarehouseUpdownGoodsLogClient ;
import com.logpm.warehouse.feign.IWarehouseUpdownGoodsLogClient ;
import lombok.AllArgsConstructor ;
import lombok.AllArgsConstructor ;
import org.springblade.common.constant.CodeDesEnum ;
import org.springblade.common.constant.CodeDesEnum ;
import org.springblade.common.constant.DictBizConstant ;
import org.springblade.common.constant.DictBizConstant ;
import org.springblade.common.constant.orderpackage.OrderPackageReservationStatusConstant ;
import org.springblade.common.constant.orderpackage.OrderPackageStockupStatusConstant ;
import org.springblade.common.constant.orderpackage.OrderPackageStockupStatusConstant ;
import org.springblade.common.constant.stocklist.StockLockingStatusConstant ;
import org.springblade.common.constant.stocklist.StockLockingStatusConstant ;
import org.springblade.common.constant.stocklist.StockSignfoStatusConstant ;
import org.springblade.common.constant.stocklist.StockSignfoStatusConstant ;
@ -825,6 +823,11 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
if ( stockupDTO . getTypeService ( ) . equals ( "3" ) ) {
if ( stockupDTO . getTypeService ( ) . equals ( "3" ) ) {
//自
//自
List < DistributionStockupStockListVO > list = distributionStockupService . selectStockupSelf ( reservationId ) ;
List < DistributionStockupStockListVO > list = distributionStockupService . selectStockupSelf ( reservationId ) ;
list . forEach ( i - > {
if ( i . getPlanNum ( ) . equals ( i . getRealNum ( ) ) ) {
i . setCompleteStact ( true ) ;
}
} ) ;
return list ;
return list ;
} else {
} else {
//商,市
//商,市
@ -1067,28 +1070,37 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
if ( ObjectUtils . isNotNull ( stockupDTO . getAllocationId ( ) ) ) {
if ( ObjectUtils . isNotNull ( stockupDTO . getAllocationId ( ) ) ) {
//查询订单数量 有库位
//查询订单数量 有库位
List < DistributionStockupSelfVO > distributionStockupSelfVOS = distrilbutionBillStockService . selectDistrilbutionBillPackSelf ( stockupDTO ) ;
List < DistributionStockupSelfVO > distributionStockupSelfVOS = distrilbutionBillStockService . selectDistrilbutionBillPackSelf ( stockupDTO ) ;
List < DistributionStockupSelfVO > collect = distributionStockupSelfVOS . stream ( ) . filter ( i - > ObjectUtils . isNotNull ( i . getWarehouseArea ( ) ) ) . collect ( Collectors . toList ( ) ) ;
DistributionStockupSelfVO distributionStockup = new DistributionStockupSelfVO ( ) ;
DistributionStockupSelfVO distributionStockup = new DistributionStockupSelfVO ( ) ;
AtomicReference < Integer > j = new AtomicReference < > ( 0 ) ;
AtomicReference < Integer > j = new AtomicReference < > ( 0 ) ;
AtomicReference < Integer > y = new AtomicReference < > ( 0 ) ;
AtomicReference < Integer > y = new AtomicReference < > ( 0 ) ;
distributionStockupSelfVOS . forEach ( i - > {
collect . forEach ( i - > {
j . updateAndGet ( v - > v + i . getPlanNum ( ) ) ;
j . updateAndGet ( v - > v + i . getPlanNum ( ) ) ;
y . updateAndGet ( v - > v + i . getScanNum ( ) ) ;
y . updateAndGet ( v - > v + i . getScanNum ( ) ) ;
if ( ObjectUtils . isNull ( distributionStockup . getConsignee ( ) ) ) {
if ( ObjectUtils . isNull ( distributionStockup . getConsignee ( ) ) ) {
distributionStockup . setConsignee ( i . getConsignee ( ) ) ;
distributionStockup . setConsignee ( i . getConsignee ( ) ) ;
} else {
} else {
if ( ObjectUtils . isNotNull ( i . getConsignee ( ) ) ) {
if ( ObjectUtils . isNotNull ( distributionStockup . getConsignee ( ) ) & & ! distributionStockup . getConsignee ( ) . equals ( i . getConsignee ( ) ) ) {
String s = distributionStockup . getConsignee ( ) + i . getConsignee ( ) ;
String s = distributionStockup . getConsignee ( ) + i . getConsignee ( ) ;
distributionStockup . setConsignee ( s ) ;
distributionStockup . setConsignee ( s ) ;
}
}
}
}
if ( ObjectUtils . isNull ( distributionStockup . getTrays ( ) ) ) {
if ( ObjectUtils . isNull ( distributionStockup . getTrays ( ) ) ) {
distributionStockup . setTrays ( i . getTrays ( ) ) ;
distributionStockup . setTrays ( i . getTrays ( ) ) ;
} else {
} else {
if ( ObjectUtils . isNotNull ( i . getTrays ( ) ) ) {
if ( ObjectUtils . isNotNull ( distributionStockup . getTrays ( ) ) & & ! distributionStockup . getTrays ( ) . equals ( i . getTrays ( ) ) ) {
String s = distributionStockup . getTrays ( ) + i . getTrays ( ) ;
String s = distributionStockup . getTrays ( ) + i . getTrays ( ) ;
distributionStockup . setTrays ( s ) ;
distributionStockup . setTrays ( s ) ;
}
}
}
}
if ( ObjectUtils . isNull ( distributionStockup . getWarehouseArea ( ) ) ) {
distributionStockup . setWarehouseArea ( i . getWarehouseArea ( ) ) ;
} else {
if ( ObjectUtils . isNotNull ( distributionStockup . getWarehouseArea ( ) ) & & ! distributionStockup . getWarehouseArea ( ) . equals ( i . getWarehouseArea ( ) ) ) {
String s = distributionStockup . getWarehouseArea ( ) + i . getWarehouseArea ( ) ;
distributionStockup . setWarehouseArea ( s ) ;
}
}
} ) ;
} ) ;
distributionStockup . setPlanNum ( j . get ( ) ) ;
distributionStockup . setPlanNum ( j . get ( ) ) ;
distributionStockup . setScanNum ( y . get ( ) ) ;
distributionStockup . setScanNum ( y . get ( ) ) ;
@ -1105,7 +1117,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
if ( ObjectUtils . isNull ( distributionStockup . getConsignee ( ) ) ) {
if ( ObjectUtils . isNull ( distributionStockup . getConsignee ( ) ) ) {
distributionStockup . setConsignee ( i . getConsignee ( ) ) ;
distributionStockup . setConsignee ( i . getConsignee ( ) ) ;
} else {
} else {
if ( ObjectUtils . isNotNull ( i . getConsignee ( ) ) ) {
if ( ObjectUtils . isNotNull ( i . getConsignee ( ) ) & & ! distributionStockup . getConsignee ( ) . equals ( i . getConsignee ( ) ) ) {
String s = distributionStockup . getConsignee ( ) + i . getConsignee ( ) ;
String s = distributionStockup . getConsignee ( ) + i . getConsignee ( ) ;
distributionStockup . setConsignee ( s ) ;
distributionStockup . setConsignee ( s ) ;
}
}
@ -1113,7 +1125,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
if ( ObjectUtils . isNull ( distributionStockup . getTrays ( ) ) ) {
if ( ObjectUtils . isNull ( distributionStockup . getTrays ( ) ) ) {
distributionStockup . setTrays ( i . getTrays ( ) ) ;
distributionStockup . setTrays ( i . getTrays ( ) ) ;
} else {
} else {
if ( ObjectUtils . isNotNull ( i . getTrays ( ) ) ) {
if ( ObjectUtils . isNotNull ( i . getTrays ( ) ) & & ! distributionStockup . getTrays ( ) . equals ( i . getTrays ( ) ) ) {
String s = distributionStockup . getTrays ( ) + i . getTrays ( ) ;
String s = distributionStockup . getTrays ( ) + i . getTrays ( ) ;
distributionStockup . setTrays ( s ) ;
distributionStockup . setTrays ( s ) ;
}
}
@ -1275,7 +1287,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
}
}
@Override
@Override
public DistributionStockupStockListInfoVO selectStockListInfoSelf ( Long reservationId , Long stockListId ) {
public DistributionStockupStockListInfoVO selectStockListInfoSelf ( Long reservationId , Long stockListId , Long allocationId ) {
DistributionStockupStockListInfoVO entity = distributionStockListService . selectStockListInfoSelf ( reservationId , stockListId ) ;
DistributionStockupStockListInfoVO entity = distributionStockListService . selectStockListInfoSelf ( reservationId , stockListId ) ;
List < StockListInfoListVO > list = distributionStockListService . selectStockListInfoSelfList ( reservationId , stockListId ) ;
List < StockListInfoListVO > list = distributionStockListService . selectStockListInfoSelfList ( reservationId , stockListId ) ;
@ -1664,6 +1676,11 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
return baseMapper . selectStockupDetails ( reservationId ) ;
return baseMapper . selectStockupDetails ( reservationId ) ;
}
}
@Override
public DistributionStockupSelfVO selectStockupStockListDetails ( Long reservationId ) {
return baseMapper . selectStockupStockListDetails ( reservationId ) ;
}
/ * *
/ * *
* 备货打印包件码绑定
* 备货打印包件码绑定
*
*
@ -1738,4 +1755,15 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
}
}
/ * *
* 库存品选择货位展示
*
* @param stockupDTO
* @return
* /
@Override
public List < DistributionStockupTrayVO > getLocationSelection ( StockupDTO stockupDTO ) {
return baseMapper . getLocationSelection ( stockupDTO ) ;
}
}
}