Commit 635a4855 authored by fangxinjiang's avatar fangxinjiang

项目规则配置-fxj

parent a644cf68
......@@ -271,8 +271,10 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
List<SysAutoDictItem> autoDictItems = entity.getAutoDictItems();
Set<String> repeatItems = new HashSet<>();
for (SysAutoDictItem item:autoDictItems) {
if (Common.isNotNull(repeatItems.contains(item.getLabel()))) {
if (repeatItems.contains(item.getLabel())) {
return R.failed(itemsLabelRepeat);
}else{
repeatItems.add(item.getLabel());
}
}
//新增主表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment