diff --git a/blade-service/logpm-factory/src/main/java/com/logpm/factory/pan/service/impl/PanFactoryDataServiceImpl.java b/blade-service/logpm-factory/src/main/java/com/logpm/factory/pan/service/impl/PanFactoryDataServiceImpl.java index 91b9162f1..0cae986ab 100644 --- a/blade-service/logpm-factory/src/main/java/com/logpm/factory/pan/service/impl/PanFactoryDataServiceImpl.java +++ b/blade-service/logpm-factory/src/main/java/com/logpm/factory/pan/service/impl/PanFactoryDataServiceImpl.java @@ -396,8 +396,8 @@ public class PanFactoryDataServiceImpl implements IPanFactoryDataService { QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.eq("order_no",orderNo); - PanFactoryOrder one = factoryOrderService.getOne(queryWrapper); - if(!Objects.isNull(one)){ + List one = factoryOrderService.list(queryWrapper); + if(!Objects.isNull(one)&& one.size() > 0){ //如果订单已存在就去验证订单下面的包件信息 List order_attributes = factoryOrderDTO.getORDER_ATTRIBUTES(); QueryWrapper qw = new QueryWrapper<>();