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);