mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
refactor: 允许不同组织前资源同名
This commit is contained in:
@@ -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("当前名称已经存在");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user