|
|
|
@ -62,6 +62,7 @@ import com.logpm.trunkline.feign.ITrunklinePackageTrackLogClient;
|
|
|
|
|
import com.logpm.warehouse.feign.IWarehouseUpdownTypeClient; |
|
|
|
|
import lombok.extern.log4j.Log4j2; |
|
|
|
|
import org.apache.logging.log4j.util.Strings; |
|
|
|
|
import org.jetbrains.annotations.NotNull; |
|
|
|
|
import org.springblade.common.constant.DictBizConstant; |
|
|
|
|
import org.springblade.common.constant.Inventory.InventoryStockUpStatusConstant; |
|
|
|
|
import org.springblade.common.constant.RabbitConstant; |
|
|
|
@ -646,14 +647,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
); |
|
|
|
|
if (!Func.isEmpty(parcelListEntities)) { |
|
|
|
|
for (DistributionParcelListEntity parcelListEntity : parcelListEntities) { |
|
|
|
|
DistrilbutionBillPackageEntity billPackageEntity = new DistrilbutionBillPackageEntity(); |
|
|
|
|
billPackageEntity.setBillLadingId(distrilbutionBillLading.getId()); |
|
|
|
|
billPackageEntity.setPacketBarStatus(1); |
|
|
|
|
billPackageEntity.setBillType("1"); |
|
|
|
|
billPackageEntity.setPacketNumber(parcelListEntity.getQuantity()); |
|
|
|
|
billPackageEntity.setParceListId(parcelListEntity.getId()); |
|
|
|
|
billPackageEntity.setStockArticleId(parcelListEntity.getStockArticleId()); |
|
|
|
|
billPackageEntity.setPacketBarCode(parcelListEntity.getOrderPackageCode()); |
|
|
|
|
DistrilbutionBillPackageEntity billPackageEntity = getDistrilbutionBillPackageEntity(distrilbutionBillLading, parcelListEntity); |
|
|
|
|
packageEntityList.add(billPackageEntity); |
|
|
|
|
packageIds.add(parcelListEntity.getId()); |
|
|
|
|
String content = "包件在"+myCurrentWarehouse.getName()+"由"+AuthUtil.getNickName()+"计划自提,操作方式:新增订单系统默认可用包件,自提批次号:"+distrilbutionBillLading.getPickupBatch(); |
|
|
|
@ -678,14 +672,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
); |
|
|
|
|
if (!Func.isEmpty(parcelListEntities)) { |
|
|
|
|
for (DistributionParcelListEntity parcelListEntity : parcelListEntities) { |
|
|
|
|
DistrilbutionBillPackageEntity billPackageEntity = new DistrilbutionBillPackageEntity(); |
|
|
|
|
billPackageEntity.setBillLadingId(distrilbutionBillLading.getId()); |
|
|
|
|
billPackageEntity.setPacketBarStatus(1); |
|
|
|
|
billPackageEntity.setBillType("1"); |
|
|
|
|
billPackageEntity.setPacketNumber(parcelListEntity.getQuantity()); |
|
|
|
|
billPackageEntity.setParceListId(parcelListEntity.getId()); |
|
|
|
|
billPackageEntity.setStockArticleId(parcelListEntity.getStockArticleId()); |
|
|
|
|
billPackageEntity.setPacketBarCode(parcelListEntity.getOrderPackageCode()); |
|
|
|
|
DistrilbutionBillPackageEntity billPackageEntity = getDistrilbutionBillPackageEntity(distrilbutionBillLading, parcelListEntity); |
|
|
|
|
packageEntityList.add(billPackageEntity); |
|
|
|
|
packageIds.add(parcelListEntity.getId()); |
|
|
|
|
String content = "包件在"+myCurrentWarehouse.getName()+"由"+AuthUtil.getNickName()+"计划自提,操作方式:新增订单系统默认可用包件,自提批次号:"+distrilbutionBillLading.getPickupBatch(); |
|
|
|
@ -872,6 +859,19 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@NotNull |
|
|
|
|
private static DistrilbutionBillPackageEntity getDistrilbutionBillPackageEntity(DistrilbutionBillLadingDTO distrilbutionBillLading, DistributionParcelListEntity parcelListEntity) { |
|
|
|
|
DistrilbutionBillPackageEntity billPackageEntity = new DistrilbutionBillPackageEntity(); |
|
|
|
|
billPackageEntity.setBillLadingId(distrilbutionBillLading.getId()); |
|
|
|
|
billPackageEntity.setPacketBarStatus(1); |
|
|
|
|
billPackageEntity.setBillType("1"); |
|
|
|
|
billPackageEntity.setPacketNumber(parcelListEntity.getQuantity()); |
|
|
|
|
billPackageEntity.setParceListId(parcelListEntity.getId()); |
|
|
|
|
billPackageEntity.setStockArticleId(parcelListEntity.getStockArticleId()); |
|
|
|
|
billPackageEntity.setPacketBarCode(parcelListEntity.getOrderPackageCode()); |
|
|
|
|
return billPackageEntity; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean signImages(DistrilbutionBillLadingDTO distrilbutionBillLading) { |
|
|
|
|