调整菜单

This commit is contained in:
huxin02 2025-04-30 18:07:57 +08:00
parent c9269ea201
commit b663062542
2 changed files with 1 additions and 10 deletions

View File

@ -1,13 +1,7 @@
{
"gzt": [],
"zhzf": [
{
"gncdbh": 0,
"name": "首页",
"icon": "zyyy_rzzx",
"path": "/svi/index",
"router": true
},
{
"gncdbh": 2,
"name": "执法对象管理",

View File

@ -45,9 +45,6 @@ MenuService {
@Transactional
public Menu addMenu(@NonNull @Validated(value = Menu.Add.class) Menu menu) {
menu.setMenuId(null);
if (StringUtils.isEmpty(menu.getMenuCode())) {
throw new BusinessError("菜单代码不能为空");
}
if (menuRepo.countByMenuCode(menu.getMenuCode()) > 0) {
throw new BusinessError("菜单代码已经存在");
}