|
@ -41,6 +41,8 @@ public class ProductionTaskGetEAIService extends AbsEAIService { |
|
|
EAIRequest eaiRequest = EAIRequest.build(messageBody); |
|
|
EAIRequest eaiRequest = EAIRequest.build(messageBody); |
|
|
List<ProductionDetailsEntity> productionDetailsEntities = eaiRequest.getObject("get_data", new TypeReference<List<ProductionDetailsEntity>>() {}); |
|
|
List<ProductionDetailsEntity> productionDetailsEntities = eaiRequest.getObject("get_data", new TypeReference<List<ProductionDetailsEntity>>() {}); |
|
|
|
|
|
|
|
|
|
|
|
String status = eaiRequest.getString("production_status"); |
|
|
|
|
|
|
|
|
for (ProductionDetailsEntity productionDetailsEntity : productionDetailsEntities) { |
|
|
for (ProductionDetailsEntity productionDetailsEntity : productionDetailsEntities) { |
|
|
if (StringUtils.isEmpty(productionDetailsEntity.getWorkNo())){ |
|
|
if (StringUtils.isEmpty(productionDetailsEntity.getWorkNo())){ |
|
|
throw new DWBusinessException("缺少必填参数"); |
|
|
throw new DWBusinessException("缺少必填参数"); |
|
@ -50,7 +52,7 @@ public class ProductionTaskGetEAIService extends AbsEAIService { |
|
|
LambdaQueryWrapper<ProductionDetailsEntity> lmq = new LambdaQueryWrapper<>(); |
|
|
LambdaQueryWrapper<ProductionDetailsEntity> lmq = new LambdaQueryWrapper<>(); |
|
|
List<String> woNoList = productionDetailsEntities.stream().map(ProductionDetailsEntity::getWorkNo).collect(Collectors.toList()); |
|
|
List<String> woNoList = productionDetailsEntities.stream().map(ProductionDetailsEntity::getWorkNo).collect(Collectors.toList()); |
|
|
lmq.eq(ProductionDetailsEntity::getTenantSid,SecurityUtil.getUserProfile().getTenantSid()); |
|
|
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); |
|
|
lmq.in(ProductionDetailsEntity::getWorkNo,woNoList); |
|
|
List<ProductionDetailsEntity> list = productionDetailsService.list(lmq); |
|
|
List<ProductionDetailsEntity> list = productionDetailsService.list(lmq); |
|
|
|
|
|
|
|
|