待选部件转加工部件提示错误修正

This commit is contained in:
gaoqr
2026-03-04 16:25:33 +08:00
parent 345f962e96
commit cd3e654a5e
4 changed files with 6 additions and 5 deletions
@@ -281,16 +281,17 @@ public class AssemblyConfigServiceImpl implements AssemblyConfigService {
// 1、校验本身
AssemblyConfigDO assemblyConfigDO = getById(configId, organId);
String componentName = assemblyConfigDO.getComponentName();
// 2、校验本身以外是否还有重名的顶级部件设置
boolean exists = assemblyConfigMapper.exists(new LambdaQueryWrapper<AssemblyConfigDO>()
.eq(AssemblyConfigDO::getOrganId, organId)
.eq(AssemblyConfigDO::getComponentName, assemblyConfigDO.getComponentName())
.eq(AssemblyConfigDO::getComponentName, componentName)
.ne(AssemblyConfigDO::getId, configId)
.eq(AssemblyConfigDO::getDeleted, DeletedCodeEnum.NOT_DELETED.getStatus())
.eq(AssemblyConfigDO::getStatus, AssemblyConfigStatusEnum.CONFIGURED.getStatus())
);
AssertUtils.isTrue(exists, ASSEMBLY_CONFIG_DO_CONFIG_EXIST);
AssertUtils.isTrue(exists, ASSEMBLY_CONFIG_DO_CONFIG_EXIST, componentName);
// 3、更新状态
assemblyConfigMapper.update(new LambdaUpdateWrapper<AssemblyConfigDO>()
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long