1、合并查询节点信息接口区分租户
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user