commit
1ad76857b3
|
|
@ -278,10 +278,6 @@ public class MenuServiceImpl implements MenuService {
|
||||||
if (menu == null) {
|
if (menu == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 如果 id 为空,说明不用比较是否为相同 id 的菜单
|
|
||||||
if (id == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!menu.getId().equals(id)) {
|
if (!menu.getId().equals(id)) {
|
||||||
throw exception(MENU_COMPONENT_NAME_DUPLICATE);
|
throw exception(MENU_COMPONENT_NAME_DUPLICATE);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue