1、合并查询节点信息接口区分租户

This commit is contained in:
2026-03-14 13:54:43 +08:00
parent 20af4cb568
commit e4e45707d1

View File

@@ -4815,7 +4815,9 @@ public class TaskServiceImpl implements ITaskService {
if (StringUtils.isBlank(nodeType)) {
return SdmResponse.failed("系统中没有当前节点类型:{}",type);
}
List<SimulationNode> nodeList = nodeService.lambdaQuery().eq(SimulationNode::getNodeType, nodeType).list();
Long tenantId = ThreadLocalContext.getTenantId();
List<SimulationNode> nodeList = nodeService.lambdaQuery().eq(SimulationNode::getNodeType, nodeType)
.eq(SimulationNode::getTenantId,tenantId).list();
if (CollectionUtils.isEmpty(nodeList)) {
return SdmResponse.success(Collections.emptyList());
}