From f1632b7e1ced7af6ac0c81579c0dec85a0c80689 Mon Sep 17 00:00:00 2001 From: clong <1584238099@qq.com> Date: Mon, 8 May 2023 09:25:55 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/service/order/SalesOrderDetailGetEAIService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailGetEAIService.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailGetEAIService.java index 14aaaad..442bfdb 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailGetEAIService.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailGetEAIService.java @@ -39,6 +39,8 @@ public class SalesOrderDetailGetEAIService extends AbsEAIService { @Override public DWEAIResult execute(Map headers, String messageBody) throws Exception { EAIRequest request = EAIRequest.build(messageBody); + List salesOrderDetailDTOList = request.getObject("sales_order_detail", new TypeReference>(){}); + List idList = salesOrderDetailDTOList.stream().map(SalesOrderDetailEntity::getId).collect(Collectors.toList()); // 两次开窗查询 LambdaQueryWrapper queryWrapper; @@ -48,6 +50,7 @@ public class SalesOrderDetailGetEAIService extends AbsEAIService { }else{ queryWrapper = Wrappers.lambdaQuery() .eq(SalesOrderDetailEntity::getTenantSid,1L) + .in(SalesOrderDetailEntity::getId,idList) .eq(SalesOrderDetailEntity::getStatus,request.getParameter().get(ParameterConstant.STATUS)); }