| | |
| | | import org.slf4j.LoggerFactory;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.transaction.annotation.Transactional;
|
| | | import com.ruoyi.common.core.constant.Constants;
|
| | | import com.ruoyi.common.core.constant.UserConstants;
|
| | | import com.ruoyi.common.core.exception.ServiceException;
|
| | | import com.ruoyi.common.core.text.Convert;
|
| | | import com.ruoyi.common.core.utils.StringUtils;
|
| | | import com.ruoyi.common.security.utils.SecurityUtils;
|
| | | import com.ruoyi.system.api.domain.SysRole;
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * 保存菜单排序
|
| | | * |
| | | * @param menuIds 菜单ID
|
| | | * @param orderNums 排序ID
|
| | | */
|
| | | @Override
|
| | | @Transactional
|
| | | public void updateMenuSort(String[] menuIds, String[] orderNums)
|
| | | {
|
| | | try
|
| | | {
|
| | | for (int i = 0; i < menuIds.length; i++)
|
| | | {
|
| | | SysMenu menu = new SysMenu();
|
| | | menu.setMenuId(Convert.toLong(menuIds[i]));
|
| | | menu.setOrderNum(Convert.toInt(orderNums[i]));
|
| | | menuMapper.updateMenuSort(menu);
|
| | | }
|
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | throw new ServiceException("保存排序异常,请联系管理员");
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * 删除菜单管理信息
|
| | | *
|
| | | * @param menuId 菜单ID
|