czt
2025-11-26 37758b759bce63f0ed20d6c9c95b7ee9dda5224e
fzzy-igdss-web/src/main/java/com/fzzy/sys/controller/SysIndexController.java
@@ -14,11 +14,11 @@
import com.ruoyi.framework.shiro.service.SysPasswordService;
import com.ruoyi.system.service.ISysConfigService;
import com.ruoyi.system.service.ISysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
@@ -28,15 +28,14 @@
/**
 * 首页 业务处理
 *
 * @author ruoyi
 */
@Controller
public class SysIndexController extends BaseController {
    @Autowired
    @Resource
    private ISysMenuService menuService;
    @Autowired
    @Resource
    private ISysConfigService configService;
    @Autowired
    @Resource
    private SysPasswordService passwordService;
    // 系统首页
@@ -46,6 +45,7 @@
        // 取身份信息
        SysUser user = getSysUser();
        mmap.put("user", user);
        mmap.put("sysName", FrameworkConfig.getName());
        // 根据用户id取出菜单
        List<SysMenu> menus = menuService.selectMenusByUser(user);