组态bug修改,从无锡同步过来的

This commit is contained in:
hzj
2025-11-13 16:18:51 +08:00
parent e320685af1
commit 340ba18f99

View File

@@ -72,7 +72,7 @@ public class CsConfigurationServiceImpl extends ServiceImpl<CsConfigurationMappe
String name = csConfigurationPO.getName(); String name = csConfigurationPO.getName();
Integer count = this.lambdaQuery().eq(CsConfigurationPO::getName, name).eq(CsConfigurationPO::getStatus, "1").count(); Integer count = this.lambdaQuery().eq(CsConfigurationPO::getName, name).eq(CsConfigurationPO::getStatus, "1").count();
if(count>1){ if(count>1){
throw new BusinessException("存在相同的组态项目名称"); throw new BusinessException("存在相同的组态项目名称在其他工程项目中,无法新建");
} }
return save; return save;
} }