refactor: 允许不同组织前资源同名

This commit is contained in:
wangjiahao
2024-12-12 13:48:04 +08:00
committed by 王嘉豪
parent c4b3ef3527
commit f7bde3adeb

View File

@@ -820,6 +820,9 @@ public class DataVisualizationServer implements DataVisualizationApi {
wrapper.eq("name", request.getName().trim());
wrapper.eq("node_type", request.getNodeType());
wrapper.eq("type", request.getType());
if(AuthUtils.getUser().getDefaultOid() != null){
wrapper.eq("org_id", AuthUtils.getUser().getDefaultOid());
}
if (visualizationInfoMapper.exists(wrapper)) {
DEException.throwException("当前名称已经存在");
}