|
|
|
@ -31,6 +31,7 @@ import com.logpm.trunkline.feign.ITrunklineAdvanceDetailClient;
|
|
|
|
|
import com.logpm.warehouse.feign.IWarehouseTrayTypeClient; |
|
|
|
|
import com.logpm.warehouse.vo.TrayTypeDataVO; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.jetbrains.annotations.Nullable; |
|
|
|
|
import org.springblade.common.annotations.ChangeAsync; |
|
|
|
|
import org.springblade.common.constant.IncomingTypeEnum; |
|
|
|
@ -52,6 +53,7 @@ import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
@Service |
|
|
|
|
@AllArgsConstructor |
|
|
|
|
@Slf4j |
|
|
|
|
public class BusinessPreOrderServiceImpl extends BaseServiceImpl<BusinessPreOrderMapper, BusinessPreOrderEntity> implements IBusinessPreOrderService { |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -407,6 +409,8 @@ public class BusinessPreOrderServiceImpl extends BaseServiceImpl<BusinessPreOrde
|
|
|
|
|
|
|
|
|
|
BusinessPreOrderEntity selectD = null; |
|
|
|
|
// 检查包件是否入库
|
|
|
|
|
log.info("list:{}", list); |
|
|
|
|
log.info("orderPackageCode:{}", orderPackageCode); |
|
|
|
|
for (BusinessPreOrderEntity distributionBusinessPreOrderEntity : list) { |
|
|
|
|
|
|
|
|
|
if (distributionBusinessPreOrderEntity.getOrderPackageCode().equals(orderPackageCode)) { |
|
|
|
@ -415,6 +419,7 @@ public class BusinessPreOrderServiceImpl extends BaseServiceImpl<BusinessPreOrde
|
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
log.info("selectD1:{}", selectD); |
|
|
|
|
// 全仓查询
|
|
|
|
|
if (selectD == null) { |
|
|
|
|
LambdaQueryWrapper<BusinessPreOrderEntity> queryWrapper2 = new LambdaQueryWrapper<>(); |
|
|
|
@ -437,7 +442,7 @@ public class BusinessPreOrderServiceImpl extends BaseServiceImpl<BusinessPreOrde
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
log.info("selectD2:{}", selectD); |
|
|
|
|
if (selectD == null) { |
|
|
|
|
// 暂存单查询
|
|
|
|
|
TrunklineAdvanceDetailEntity entityByOrderPackageCode = trunklineAdvanceDetailClient.findEntityByOrderPackageCode(orderPackageCode); |
|
|
|
|