|
|
@ -171,6 +171,9 @@ public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IM |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean submit(Menu menu) { |
|
|
|
public boolean submit(Menu menu) { |
|
|
|
|
|
|
|
if (menu.getParentId() == null && menu.getId() == null) { |
|
|
|
|
|
|
|
menu.setParentId(BladeConstant.TOP_PARENT_ID); |
|
|
|
|
|
|
|
} |
|
|
|
menu.setIsDeleted(BladeConstant.DB_NOT_DELETED); |
|
|
|
menu.setIsDeleted(BladeConstant.DB_NOT_DELETED); |
|
|
|
return saveOrUpdate(menu); |
|
|
|
return saveOrUpdate(menu); |
|
|
|
} |
|
|
|
} |
|
|
|