|
|
|
@ -18,10 +18,59 @@ import com.logpm.distribution.dto.DistributionStockArticleDTO;
|
|
|
|
|
import com.logpm.distribution.dto.app.DistrilbutionloadingscanDTO; |
|
|
|
|
import com.logpm.distribution.dto.app.StockupDTO; |
|
|
|
|
import com.logpm.distribution.dto.app.StockupZeroDTO; |
|
|
|
|
import com.logpm.distribution.entity.*; |
|
|
|
|
import com.logpm.distribution.mapper.*; |
|
|
|
|
import com.logpm.distribution.service.*; |
|
|
|
|
import com.logpm.distribution.vo.*; |
|
|
|
|
import com.logpm.distribution.entity.DisStockListDetailEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionBillLadingScanEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionDeliveryDetailsEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionDeliveryListEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionLoadscanEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionLoadscaninvnEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionParcelListEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionParcelNumberEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionReservationEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionReservationPackageEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionReservationStockarticleEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionReservationStocklistEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionReservationZeroPackageEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionSignforEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionStockArticleEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionStockEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionStockListEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionStockupEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionStockupInfoEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistrilbutionBillLadingEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistrilbutionBillPackageEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistrilbutionBillStockEntity; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionBillLadingScanMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionDeliveryDetailsMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionDeliveryListMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionLoadscanMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionLoadscaninvnMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionParcelListMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionReservationMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionReservationPackageMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionReservationStockarticleMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionReservationStocklistMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionSignforMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionStockListMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionStockMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionStockupInfoMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistributionStockupMapper; |
|
|
|
|
import com.logpm.distribution.mapper.DistrilbutionBillLadingMapper; |
|
|
|
|
import com.logpm.distribution.service.IDisStockListDetailService; |
|
|
|
|
import com.logpm.distribution.service.IDistributionAsyncService; |
|
|
|
|
import com.logpm.distribution.service.IDistributionDeliveryDetailsService; |
|
|
|
|
import com.logpm.distribution.service.IDistributionParcelNumberService; |
|
|
|
|
import com.logpm.distribution.service.IDistributionReservationStockarticleService; |
|
|
|
|
import com.logpm.distribution.service.IDistributionReservationStocklistService; |
|
|
|
|
import com.logpm.distribution.service.IDistributionReservationZeroPackageService; |
|
|
|
|
import com.logpm.distribution.service.IDistributionStockArticleService; |
|
|
|
|
import com.logpm.distribution.service.IDistrilbutionBillPackageService; |
|
|
|
|
import com.logpm.distribution.service.IDistrilbutionBillStockService; |
|
|
|
|
import com.logpm.distribution.vo.DistributionParcelNumberVO; |
|
|
|
|
import com.logpm.distribution.vo.DistributionSignPrintVO; |
|
|
|
|
import com.logpm.distribution.vo.DistributionStockPackageVO; |
|
|
|
|
import com.logpm.distribution.vo.DistributionStockupSelfVO; |
|
|
|
|
import com.logpm.distribution.vo.DistrilbutionBillStockVO; |
|
|
|
|
import com.logpm.factory.comfac.dto.OrderStatusDTO; |
|
|
|
|
import com.logpm.factory.mt.dto.MtReceiveContentDTO; |
|
|
|
|
import com.logpm.factory.mt.dto.MtReceiveDTO; |
|
|
|
@ -31,12 +80,17 @@ import com.logpm.factory.oupai.feign.IOuPaiFactoryClinet;
|
|
|
|
|
import com.logpm.factorydata.enums.BrandEnums; |
|
|
|
|
import com.logpm.factorydata.util.FactoryDataMessageSender; |
|
|
|
|
import com.logpm.factorydata.vo.NodePushMsg; |
|
|
|
|
import com.logpm.factorydata.vo.PushData; |
|
|
|
|
import com.logpm.trunkline.dto.AddWaybillTrackDTO; |
|
|
|
|
import com.logpm.trunkline.entity.TrunklineAdvanceDetailEntity; |
|
|
|
|
import com.logpm.trunkline.entity.TrunklineAdvanceEntity; |
|
|
|
|
import com.logpm.trunkline.entity.TrunklineWaybillOrderEntity; |
|
|
|
|
import com.logpm.trunkline.entity.TrunklineWaybillPackageEntity; |
|
|
|
|
import com.logpm.trunkline.feign.*; |
|
|
|
|
import com.logpm.trunkline.feign.ITrunklineAdvanceClient; |
|
|
|
|
import com.logpm.trunkline.feign.ITrunklineAdvanceDetailClient; |
|
|
|
|
import com.logpm.trunkline.feign.ITrunklineWaybillOrderClient; |
|
|
|
|
import com.logpm.trunkline.feign.ITrunklineWaybillPackageClient; |
|
|
|
|
import com.logpm.trunkline.feign.ITrunklineWaybillTrackClient; |
|
|
|
|
import com.logpm.trunkline.vo.TrunklineAdvanceDetailVO; |
|
|
|
|
import com.logpm.warehouse.entity.WarehouseWayBillDetail; |
|
|
|
|
import com.logpm.warehouse.entity.WarehouseWaybillEntity; |
|
|
|
@ -64,7 +118,14 @@ import org.springblade.common.constant.orderpackage.OrderPackageLoadingStatusCon
|
|
|
|
|
import org.springblade.common.constant.orderpackage.OrderPackageReservationStatusConstant; |
|
|
|
|
import org.springblade.common.constant.orderpackage.OrderPackageStatusConstant; |
|
|
|
|
import org.springblade.common.constant.orderpackage.OrderPackageStockupStatusConstant; |
|
|
|
|
import org.springblade.common.constant.reservation.*; |
|
|
|
|
import org.springblade.common.constant.reservation.ReservationInventoryLoadingStatusConstant; |
|
|
|
|
import org.springblade.common.constant.reservation.ReservationInventorySigningStatusConstant; |
|
|
|
|
import org.springblade.common.constant.reservation.ReservationInventoryStatusConstant; |
|
|
|
|
import org.springblade.common.constant.reservation.ReservationLoadingStatusConstant; |
|
|
|
|
import org.springblade.common.constant.reservation.ReservationOrderStatusConstant; |
|
|
|
|
import org.springblade.common.constant.reservation.ReservationPackageStatusConstant; |
|
|
|
|
import org.springblade.common.constant.reservation.ReservationSigningStatusConstant; |
|
|
|
|
import org.springblade.common.constant.reservation.ReservationStockupStatusConstant; |
|
|
|
|
import org.springblade.common.constant.signing.SignforStatusConstant; |
|
|
|
|
import org.springblade.common.constant.stockup.StockupStatusConstant; |
|
|
|
|
import org.springblade.common.constant.stockup.StockupTypeConstant; |
|
|
|
@ -82,7 +143,14 @@ import org.springframework.transaction.annotation.Isolation;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
|
import java.util.*; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.Arrays; |
|
|
|
|
import java.util.Date; |
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.Objects; |
|
|
|
|
import java.util.Optional; |
|
|
|
|
import java.util.concurrent.atomic.AtomicBoolean; |
|
|
|
|
import java.util.concurrent.atomic.AtomicInteger; |
|
|
|
|
import java.util.concurrent.atomic.AtomicReference; |
|
|
|
@ -1471,7 +1539,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
@LogpmAsync("asyncExecutor") |
|
|
|
|
public void sendReviewFactory(Long signingId, String warehouseName, Long warehouseId) { |
|
|
|
|
String brands = "梦天,欧派,志邦,皮阿诺";//可追加
|
|
|
|
|
String brands = "梦天,欧派,志邦,皮阿诺,我乐";//可追加
|
|
|
|
|
log.info(">>>>>>>>>>> 签收推送 对象 {}", "signingId:=" + signingId + "warehouseName:=" + warehouseName + "warehouseId:=" + warehouseId); |
|
|
|
|
//查询签收信息
|
|
|
|
|
DistributionSignforEntity distributionSignforEntity = distributionSignforMapper.selectById(signingId); |
|
|
|
@ -1496,7 +1564,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
//存在订单
|
|
|
|
|
List<Long> orderIds = distributionReservationStockarticleEntities.stream().filter(f -> f.getIsZero().equals(IsOrNoConstant.no.getValue())).map(DistributionReservationStockarticleEntity::getStockArticleId).collect(Collectors.toList()); |
|
|
|
|
|
|
|
|
|
if (ObjectUtils.isNotNull(orderIds) && !orderIds.isEmpty()){ |
|
|
|
|
if (ObjectUtils.isNotNull(orderIds) && !orderIds.isEmpty()) { |
|
|
|
|
log.info(">>>brand 进入 orderIds {} ", orderIds); |
|
|
|
|
|
|
|
|
|
List<DistributionStockArticleEntity> distributionStockArticleEntities = distributionStockArticleService.listByIds(orderIds); |
|
|
|
@ -1618,6 +1686,28 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (Func.isNotEmpty(brand.get("我乐"))) { |
|
|
|
|
List<MtReceiveContentDTO> zb = brand.get("我乐"); |
|
|
|
|
List<Object> contents = new ArrayList<>(); |
|
|
|
|
if (CollUtil.isNotEmpty(zb)) { |
|
|
|
|
for (MtReceiveContentDTO mtReceiveContentDTO : zb) { |
|
|
|
|
PushData pushData = PushData.builder() |
|
|
|
|
.packageCode(mtReceiveContentDTO.getUnitNo()) |
|
|
|
|
.orderCode(mtReceiveContentDTO.getOrderCode()) |
|
|
|
|
.warehouseName(warehouseName) |
|
|
|
|
.waybillNumber(mtReceiveContentDTO.getWaybillNumber()).build(); |
|
|
|
|
contents.add(pushData); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
NodePushMsg msg = new NodePushMsg(); |
|
|
|
|
msg.setNode(WorkNodeEnums.CLERK_REVIEW); |
|
|
|
|
msg.setBrand(BrandEnums.OLO); |
|
|
|
|
msg.setOperator(distributionSignforEntity.getDeliveryDriverName()); |
|
|
|
|
msg.setOperatorTime(new Date()); |
|
|
|
|
msg.setContent(contents); |
|
|
|
|
log.info("推送工厂数据:{}", JSONUtil.toJsonStr(msg)); |
|
|
|
|
factoryDataMessageSender.sendNodeDataByBrand(msg); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//....工厂
|
|
|
|
|
} catch (Exception e) { |
|
|
|
@ -1764,7 +1854,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
//统计已装车数量
|
|
|
|
|
WarehouseWaybillEntity byWaybillNo = waybillClient.findByWaybillNo(k); |
|
|
|
|
AddWaybillTrackDTO addWaybillTrackDTO = new AddWaybillTrackDTO(); |
|
|
|
|
if(ObjectUtils.isNotNull(byWaybillNo)){ |
|
|
|
|
if (ObjectUtils.isNotNull(byWaybillNo)) { |
|
|
|
|
addWaybillTrackDTO.setWaybillId(byWaybillNo.getId()); |
|
|
|
|
addWaybillTrackDTO.setWaybillNo(byWaybillNo.getWaybillNo()); |
|
|
|
|
} |
|
|
|
@ -2073,6 +2163,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
mtReceiveContentDTO.setUnitNo(distributionParcelListEntity.getOrderPackageCode());//
|
|
|
|
|
mtReceiveContentDTO.setOperateDate(signingTime);//操作时间
|
|
|
|
|
mtReceiveContentDTO.setInvoiceOrderCode(deliveryCode);//发货编号
|
|
|
|
|
mtReceiveContentDTO.setWaybillNumber(distributionParcelListEntity.getWaybillNumber()); |
|
|
|
|
mtReceiveContentDTOS.add(mtReceiveContentDTO); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -2829,6 +2920,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
} |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ChangeAsync() |
|
|
|
|
@Override |
|
|
|
|
public void saveOtherData(String tenantId, List<WarehouseWaybillEntity> waybillBilllByWaybillNos, List<TrunklineAdvanceDetailVO> trunklineAdvanceDetailEntities, List<TrunklineAdvanceEntity> trunklineAdvanceEntities, List<TrunklineWaybillPackageEntity> trunklineWaybillPackageEntities, List<TrunklineWaybillOrderEntity> trunklineWaybillOrderEntities, List<WarehouseWayBillDetail> warehouseWayBillDetails, List<DistributionParcelListEntity> distributionParcelListEntities, String mallName) { |
|
|
|
@ -2861,7 +2953,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
waybillBilllByWaybillNo.setDepartureWarehouseId(null); |
|
|
|
|
|
|
|
|
|
// 目的仓
|
|
|
|
|
if(basicdataWarehouseEntity!=null){ |
|
|
|
|
if (basicdataWarehouseEntity != null) { |
|
|
|
|
waybillBilllByWaybillNo.setDestinationWarehouseId(basicdataWarehouseEntity.getId()); |
|
|
|
|
waybillBilllByWaybillNo.setDestinationWarehouseName(basicdataWarehouseEntity.getName()); |
|
|
|
|
} |
|
|
|
@ -2870,10 +2962,10 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
waybillBilllByWaybillNo.setTenantId(tenant.getTenantId()); |
|
|
|
|
|
|
|
|
|
WarehouseWaybillEntity byWaybillNo = warehouseWaybillClient.findByWaybillNo(waybillBilllByWaybillNo.getWaybillNo()); |
|
|
|
|
if(byWaybillNo==null){ |
|
|
|
|
if (byWaybillNo == null) { |
|
|
|
|
Long l = warehouseWaybillClient.addEnntity(waybillBilllByWaybillNo); |
|
|
|
|
waybillBilllByWaybillNo.setId(l); |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
waybillBilllByWaybillNo.setId(byWaybillNo.getId()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2884,14 +2976,14 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
warehouseWayBillDetail.setId(null); |
|
|
|
|
for (WarehouseWayBillDetail wayBillDetail : byWaybillId) { |
|
|
|
|
|
|
|
|
|
if(wayBillDetail.getProductName().equals(warehouseWayBillDetail.getProductName())){ |
|
|
|
|
if (wayBillDetail.getProductName().equals(warehouseWayBillDetail.getProductName())) { |
|
|
|
|
// 不执行
|
|
|
|
|
warehouseWayBillDetail.setId(wayBillDetail.getId()); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(warehouseWayBillDetail.getId()==null){ |
|
|
|
|
if (warehouseWayBillDetail.getId() == null) { |
|
|
|
|
warehouseWayBillDetail.setWaybillId(waybillBilllByWaybillNo.getId()); |
|
|
|
|
warehouseWaybillDetailClient.addEntity(warehouseWayBillDetail); |
|
|
|
|
} |
|
|
|
@ -2927,12 +3019,12 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
|
|
|
|
|
for (TrunklineWaybillOrderEntity waybillOrderEntity : listByWaybillNo) { |
|
|
|
|
|
|
|
|
|
if(waybillOrderEntity.getOrderCode().equals(trunklineWaybillOrderEntity.getOrderCode())){ |
|
|
|
|
if (waybillOrderEntity.getOrderCode().equals(trunklineWaybillOrderEntity.getOrderCode())) { |
|
|
|
|
trunklineWaybillOrderEntity.setId(waybillOrderEntity.getId()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
if(trunklineWaybillOrderEntity.getId()==null){ |
|
|
|
|
if (trunklineWaybillOrderEntity.getId() == null) { |
|
|
|
|
|
|
|
|
|
Long l1 = trunklineWaybillOrderClient.addEntityReturnId(trunklineWaybillOrderEntity); |
|
|
|
|
|
|
|
|
@ -2940,7 +3032,6 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<Long> ids = Arrays.asList(waybillBilllByWaybillNo.getId()); |
|
|
|
|
List<TrunklineWaybillPackageEntity> listByWaybillIds = trunklineWaybillPackageClient.findListByWaybillIds(ids); |
|
|
|
|
|
|
|
|
@ -2963,15 +3054,15 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
|
|
|
|
|
for (TrunklineWaybillPackageEntity listByWaybillId : listByWaybillIds) { |
|
|
|
|
|
|
|
|
|
if(listByWaybillId.getWaybillId().equals(trunklineWaybillPackageEntity.getWaybillId())){ |
|
|
|
|
if(listByWaybillId.getOrderPackageCode().equals(trunklineWaybillPackageEntity.getOrderPackageCode())){ |
|
|
|
|
if (listByWaybillId.getWaybillId().equals(trunklineWaybillPackageEntity.getWaybillId())) { |
|
|
|
|
if (listByWaybillId.getOrderPackageCode().equals(trunklineWaybillPackageEntity.getOrderPackageCode())) { |
|
|
|
|
trunklineWaybillPackageEntity.setId(listByWaybillId.getId()); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
if(trunklineWaybillPackageEntity.getId()==null){ |
|
|
|
|
if (trunklineWaybillPackageEntity.getId() == null) { |
|
|
|
|
trunklineWaybillPackageClient.addEntity(trunklineWaybillPackageEntity); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2983,11 +3074,11 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private BasicdataWarehouseEntity getBasicdataWarehouseEntity(String mallName) { |
|
|
|
|
String cacheName =mallName +"仓"; |
|
|
|
|
String cacheName = mallName + "仓"; |
|
|
|
|
BasicdataWarehouseEntity basicdataWarehouseEntity = bladeRedis.get(cacheName); |
|
|
|
|
if(basicdataWarehouseEntity==null){ |
|
|
|
|
basicdataWarehouseEntity = warehouseClient.findByName(mallName +"仓"); |
|
|
|
|
bladeRedis.setEx(cacheName,basicdataWarehouseEntity,60*60*24L); |
|
|
|
|
if (basicdataWarehouseEntity == null) { |
|
|
|
|
basicdataWarehouseEntity = warehouseClient.findByName(mallName + "仓"); |
|
|
|
|
bladeRedis.setEx(cacheName, basicdataWarehouseEntity, 60 * 60 * 24L); |
|
|
|
|
} |
|
|
|
|
return basicdataWarehouseEntity; |
|
|
|
|
} |
|
|
|
@ -2996,7 +3087,6 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
Tenant tenant = changeDataBase(mallName); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<Long> ids = Arrays.asList(trunklineAdvanceEntity.getId()); |
|
|
|
|
|
|
|
|
|
List<TrunklineAdvanceDetailVO> listByAdvanceIds = trunklineAdvanceDetailClient.findListByAdvanceIds(ids); |
|
|
|
@ -3007,7 +3097,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
|
|
|
|
|
// 检测 保存的对象是否已经存在
|
|
|
|
|
for (TrunklineAdvanceDetailVO listByAdvanceId : listByAdvanceIds) { |
|
|
|
|
if(listByAdvanceId.getOrderPackageCode().equals(trunklineAdvanceDetailEntity.getOrderPackageCode())){ |
|
|
|
|
if (listByAdvanceId.getOrderPackageCode().equals(trunklineAdvanceDetailEntity.getOrderPackageCode())) { |
|
|
|
|
trunklineAdvanceDetailEntity.setId(listByAdvanceId.getId()); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
@ -3020,7 +3110,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
trunklineAdvanceDetailEntity.setIncomingWarehouseId(null); |
|
|
|
|
trunklineAdvanceDetailEntity.setIncomingWarehouseName(null); |
|
|
|
|
BasicdataWarehouseEntity basicdataWarehouseEntity = getBasicdataWarehouseEntity(mallName); |
|
|
|
|
if(basicdataWarehouseEntity!=null){ |
|
|
|
|
if (basicdataWarehouseEntity != null) { |
|
|
|
|
trunklineAdvanceDetailEntity.setWarehouseId(basicdataWarehouseEntity.getId()); |
|
|
|
|
trunklineAdvanceDetailEntity.setWarehouseName(basicdataWarehouseEntity.getName()); |
|
|
|
|
} |
|
|
|
@ -3039,7 +3129,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
if (ObjectUtil.isEmpty(trunklineAdvanceEntity1)) { |
|
|
|
|
|
|
|
|
|
// 保存对象
|
|
|
|
|
if(basicdataWarehouseEntity!=null){ |
|
|
|
|
if (basicdataWarehouseEntity != null) { |
|
|
|
|
trunklineAdvanceEntity.setWarehouseId(basicdataWarehouseEntity.getId()); |
|
|
|
|
trunklineAdvanceEntity.setWarehouseName(basicdataWarehouseEntity.getName()); |
|
|
|
|
} |
|
|
|
|