@@ -9,6 +9,7 @@ import com.yunhai.userhome.service.IMenuBarService;
|
||||
import com.yunhai.userhome.service.IUserCurrentRoleService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
@@ -55,6 +56,7 @@ public class MenuBarServiceImpl implements IMenuBarService {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public void saveMenuBar(MenuBar menuBar) {
|
||||
if (menuBar.getId() != null) {
|
||||
Optional<MenuBar> optional = menuBarRepository.findById(menuBar.getId());
|
||||
@@ -76,6 +78,7 @@ public class MenuBarServiceImpl implements IMenuBarService {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public void toggleMenuBarShow(Integer id, Integer schId) {
|
||||
Optional<MenuBar> optionalMenuBar = menuBarRepository.findById(id);
|
||||
if (!optionalMenuBar.isPresent())
|
||||
|
||||
Reference in New Issue
Block a user