From 8d8b21281d649516cc7152324a93d62d196648ae Mon Sep 17 00:00:00 2001 From: zhenggl Date: Fri, 15 Sep 2023 14:37:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=95=B0=E6=8D=AE=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=89=8D=E7=AB=AF=E4=BC=A0=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ptc/service/production/ProductionTaskGetEAIService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionTaskGetEAIService.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionTaskGetEAIService.java index 6d6acfd..44050a4 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionTaskGetEAIService.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionTaskGetEAIService.java @@ -41,6 +41,8 @@ public class ProductionTaskGetEAIService extends AbsEAIService { EAIRequest eaiRequest = EAIRequest.build(messageBody); List productionDetailsEntities = eaiRequest.getObject("get_data", new TypeReference>() {}); + String status = eaiRequest.getString("production_status"); + for (ProductionDetailsEntity productionDetailsEntity : productionDetailsEntities) { if (StringUtils.isEmpty(productionDetailsEntity.getWorkNo())){ throw new DWBusinessException("缺少必填参数"); @@ -50,7 +52,7 @@ public class ProductionTaskGetEAIService extends AbsEAIService { LambdaQueryWrapper lmq = new LambdaQueryWrapper<>(); List woNoList = productionDetailsEntities.stream().map(ProductionDetailsEntity::getWorkNo).collect(Collectors.toList()); lmq.eq(ProductionDetailsEntity::getTenantSid,SecurityUtil.getUserProfile().getTenantSid()); - lmq.eq(ProductionDetailsEntity::getProductionStatus, TabStatusEnums.PENDING.getValue().toString()); + lmq.eq(ProductionDetailsEntity::getProductionStatus, status); lmq.in(ProductionDetailsEntity::getWorkNo,woNoList); List list = productionDetailsService.list(lmq);