基于SSM+SpringBoot+MySQL+Vue的高校毕业设计管理系统

登陆

课题审批

学校选课

文档管理

疑问管理

用户管理

菜单管理

学院管理

学校课题

我的课题

成绩管理

文档管理

学生管理

我的课题

学校课题

提问管理

技术描述

开发工具: Idea/Eclipse
数据库: mysql
Jar包仓库: Maven
前段框架: vue/ElementUI
后端框架: Spring+SpringMVC+Mybatis+SpringBoot

资料说明

基于SSM+SpringBoot+MySQL+Vue的高校毕业设计管理系统,分为管理员,学生,教师三个角色。整体功能包含,选题管理,成绩查看,文档管理,提问管理,学生管理,文档管理,课题管理,用户管理,角色管理,菜单管理,学院管理,岗位管理。

@RestController
@RequestMapping("/student/allStuTopices")
public class AllStuTopicesController extends BaseController
{
    @Autowired
    private IAllStuTopicesService allStuTopicesService;

    /**
     * 查询选题信息表列表
     */
    @PreAuthorize("@ss.hasPermi('student:allStuTopices:list')")
    @GetMapping("/list")
    public TableDataInfo list(AllStuTopices allStuTopices)
    {
        startPage();
        List<AllStuTopices> list = allStuTopicesService.selectAllStuTopicesList(allStuTopices);
        return getDataTable(list);
    }

    /**
     * 导出选题信息表列表
     */
    @PreAuthorize("@ss.hasPermi('student:allStuTopices:export')")
    @Log(title = "选题信息表", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, AllStuTopices allStuTopices)
    {
        List<AllStuTopices> list = allStuTopicesService.selectAllStuTopicesList(allStuTopices);
        ExcelUtil<AllStuTopices> util = new ExcelUtil<AllStuTopices>(AllStuTopices.class);
        util.exportExcel(response, list, "选题信息表数据");
    }

    /**
     * 获取选题信息表详细信息
     */
    @PreAuthorize("@ss.hasPermi('student:allStuTopices:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
        return AjaxResult.success(allStuTopicesService.selectAllStuTopicesById(id));
    }

    /**
     * 新增选题信息表
     */
//    @PreAuthorize("@ss.hasPermi('student:allStuTopices:add')")
//    @Log(title = "选题信息表", businessType = BusinessType.INSERT)
//    @PostMapping
//    public AjaxResult add(@RequestBody AllStuTopices allStuTopices)
//    {
//        return toAjax(allStuTopicesService.insertAllStuTopices(allStuTopices));
//    }

    /**
     * 修改选题信息表
     */
    @PreAuthorize("@ss.hasPermi('student:allStuTopices:edit')")
    @Log(title = "选题信息表", businessType = BusinessType.UPDATE)
    @PutMapping(value = "/edit")
    public AjaxResult edit(@RequestBody AllStuTopices allStuTopices)
    {
        if (allStuTopicesService.selCurrentTopicStatus(allStuTopices.getId())) {
            System.out.println(allStuTopicesService.selCurrentTopicStatus(allStuTopices.getId()));

            return AjaxResult.error("课题:'" + allStuTopices.getThesisName() + "'已不可选");
        }

        if (allStuTopicesService.selStuTopicinfo(allStuTopices.getStudentNo()))
        {
            return AjaxResult.error("你已选择其他课题");
        }

        return toAjax(allStuTopicesService.updateAllStuTopices(allStuTopices));
    }

    /**
     * 删除选题信息表
     */
    @PreAuthorize("@ss.hasPermi('student:allStuTopices:remove')")
    @Log(title = "选题信息表", businessType = BusinessType.DELETE)
	@DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
        return toAjax(allStuTopicesService.deleteAllStuTopicesByIds(ids));
    }
}
@RestController
@RequestMapping("/student/myTopic")
public class MyTopicController extends BaseController
{
    @Autowired
    private IMyTopicService myTopicService;

    /**
     * 查询选题信息表列表
     */
    @PreAuthorize("@ss.hasPermi('student:myTopic:list')")
    @GetMapping("/list")
    public TableDataInfo list(MyTopic myTopic)
    {
        startPage();
        List<MyTopic> list = myTopicService.selectMyTopicList(myTopic);
        System.out.println(list + "**********************");
        return getDataTable(list);
    }

    /**
     * 导出选题信息表列表
     */
    @PreAuthorize("@ss.hasPermi('student:myTopic:export')")
    @Log(title = "选题信息表", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, MyTopic myTopic)
    {
        List<MyTopic> list = myTopicService.selectMyTopicList(myTopic);
        ExcelUtil<MyTopic> util = new ExcelUtil<MyTopic>(MyTopic.class);
        util.exportExcel(response, list, "选题信息表数据");
    }

    /**
     * 查询当前用户的选题状态
     */
    @PreAuthorize("@ss.hasPermi('student:myTopic:query')")
    public String selectMyTopicByStatus(String studentNo){
        return myTopicService.selectMyTopicByStatus(studentNo);
    }

    /**
     * 获取选题信息表详细信息
     */
    @PreAuthorize("@ss.hasPermi('student:myTopic:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
        return AjaxResult.success(myTopicService.selectMyTopicById(id));
    }

    /**
     * 新增选题信息表
     */
    @PreAuthorize("@ss.hasPermi('student:myTopic:add')")
    @Log(title = "选题信息表", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody MyTopic myTopic)
    {
        return toAjax(myTopicService.insertMyTopic(myTopic));
    }

    /**
     * 修改选题信息表
     */
    @PreAuthorize("@ss.hasPermi('student:myTopic:edit')")
    @Log(title = "选题信息表", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody MyTopic myTopic)
    {
        return toAjax(myTopicService.updateMyTopic(myTopic));
    }

    /**
     * 删除选题信息表
     */
    @PreAuthorize("@ss.hasPermi('student:myTopic:remove')")
    @Log(title = "选题信息表", businessType = BusinessType.DELETE)
	@DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
        return toAjax(myTopicService.deleteMyTopicByIds(ids));
    }
}

猜你喜欢

转载自blog.csdn.net/qq_36155000/article/details/125579345