diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionParcelListClient.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionParcelListClient.java index b4d323274..f0d9e8ea2 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionParcelListClient.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionParcelListClient.java @@ -16,6 +16,7 @@ */ package com.logpm.distribution.feign; +import cn.hutool.core.collection.CollUtil; import cn.hutool.json.JSONUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -437,11 +438,19 @@ public class DistributionParcelListClient implements IDistributionParcelListClie @Override public List findListByOrderPackageCodeList(FindParamterDTO findParamterDTO) { - QueryWrapper queryWrapper = new QueryWrapper<>(); - queryWrapper.in("order_package_code", findParamterDTO.getOrderPackageCodeList()) - .eq("warehouse_id", findParamterDTO.getWarehouseId()); + List orderPackageCodeList = findParamterDTO.getOrderPackageCodeList(); + if(CollUtil.isNotEmpty(orderPackageCodeList)){ + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.in("order_package_code", findParamterDTO.getOrderPackageCodeList()) + .eq("warehouse_id", findParamterDTO.getWarehouseId()); + return distributionParcelListService.list(queryWrapper); + }else{ + log.info("############findListByOrderPackageCodeList: 当前包件信息为空 orderPackageCodeList={}",orderPackageCodeList); + return null; + } + + - return distributionParcelListService.list(queryWrapper); } @Override