update - 添加分类黑白名单配置,不允许添加重复的数据
This commit is contained in:
parent
e74bbf288d
commit
6dd71933ab
@ -52,7 +52,8 @@ public class CategoryConfigServiceImpl extends ServiceImpl<ExtAxDictConfMapper,
|
|||||||
List<CategoryConfigItemVO> list = configSearch(searchDTO).getList();
|
List<CategoryConfigItemVO> list = configSearch(searchDTO).getList();
|
||||||
if (!list.isEmpty()) {
|
if (!list.isEmpty()) {
|
||||||
ExtAxDict extAxDict = dictMapper.selectById(dto.getDictId());
|
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 -> {
|
dto.getWorkspaceIds().forEach(workspaceId -> {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user