mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 05:12:07 +08:00
待选部件转加工部件提示错误修正
This commit is contained in:
+3
-2
@@ -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>()
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user