调整菜单
This commit is contained in:
parent
c9269ea201
commit
b663062542
|
|
@ -1,13 +1,7 @@
|
||||||
{
|
{
|
||||||
"gzt": [],
|
"gzt": [],
|
||||||
"zhzf": [
|
"zhzf": [
|
||||||
{
|
|
||||||
"gncdbh": 0,
|
|
||||||
"name": "首页",
|
|
||||||
"icon": "zyyy_rzzx",
|
|
||||||
"path": "/svi/index",
|
|
||||||
"router": true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"gncdbh": 2,
|
"gncdbh": 2,
|
||||||
"name": "执法对象管理",
|
"name": "执法对象管理",
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,6 @@ MenuService {
|
||||||
@Transactional
|
@Transactional
|
||||||
public Menu addMenu(@NonNull @Validated(value = Menu.Add.class) Menu menu) {
|
public Menu addMenu(@NonNull @Validated(value = Menu.Add.class) Menu menu) {
|
||||||
menu.setMenuId(null);
|
menu.setMenuId(null);
|
||||||
if (StringUtils.isEmpty(menu.getMenuCode())) {
|
|
||||||
throw new BusinessError("菜单代码不能为空");
|
|
||||||
}
|
|
||||||
if (menuRepo.countByMenuCode(menu.getMenuCode()) > 0) {
|
if (menuRepo.countByMenuCode(menu.getMenuCode()) > 0) {
|
||||||
throw new BusinessError("菜单代码已经存在");
|
throw new BusinessError("菜单代码已经存在");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue