update - 添加分类黑白名单配置,不允许添加重复的数据

This commit is contained in:
wangli 2024-01-18 14:44:39 +08:00
parent e74bbf288d
commit 6dd71933ab

View File

@ -52,7 +52,8 @@ public class CategoryConfigServiceImpl extends ServiceImpl<ExtAxDictConfMapper,
List<CategoryConfigItemVO> list = configSearch(searchDTO).getList();
if (!list.isEmpty()) {
ExtAxDict extAxDict = dictMapper.selectById(dto.getDictId());
throw new WorkflowEngineException(CATEGORY_CONFIG_EXISTS, extAxDict.getLabel(), dto.getConfigType());
throw new WorkflowEngineException(CATEGORY_CONFIG_EXISTS, extAxDict.getLabel(),
Objects.equals(dto.getConfigType(), "white") ? "白名单" : "黑名单");
}
dto.getWorkspaceIds().forEach(workspaceId -> {