• (免费分享)基于springboot,vue毕业设计管理系统


    源码获取:关注文末gongzhonghao,输入011领取下载链接

    开发工具IDEA ,数据库mysql5.7 ,前后端分离

    系统分学生、教师、管理员三个角色

     

    1.学生截图
     

     

     

     

     

     

    2.教师截图:

     

     

     

     

     

    3.管理员截图:

     

     

     

     

     

    1. package com.cx.controller;
    2. import cn.dev33.satoken.annotation.SaCheckLogin;
    3. import com.cx.common.Result;
    4. import com.cx.common.ResultCode;
    5. import com.cx.fluentmybatis.entity.KtbgEntity;
    6. import com.cx.service.KtbgService;
    7. import io.swagger.annotations.Api;
    8. import io.swagger.annotations.ApiOperation;
    9. import lombok.extern.slf4j.Slf4j;
    10. import org.springframework.beans.factory.annotation.Autowired;
    11. import org.springframework.web.bind.annotation.*;
    12. @Slf4j
    13. @Api(tags = "KtbgController", description = "开题报告接口")
    14. @RequestMapping("/ktbg")
    15. @RestController
    16. public class KtbgController {
    17. @Autowired
    18. KtbgService ktbgService;
    19. @SaCheckLogin
    20. @ApiOperation(value = "添加开题报告")
    21. @PostMapping("/addktbg")
    22. public Result addKtbg(@RequestBody KtbgEntity ktbg){
    23. if (ktbgService.addKtbg(ktbg)>0){
    24. return Result.success();
    25. }else {
    26. return Result.failure(ResultCode.INSERT_ERROR);
    27. }
    28. }
    29. @SaCheckLogin
    30. @ApiOperation("根据id删除ktbg")
    31. @GetMapping("/remove")
    32. public Result removeKtbg(@RequestParam Integer id){
    33. if (ktbgService.removeKtbg(id)>0){
    34. return Result.success();
    35. }else {
    36. return Result.failure(ResultCode.DELETE_ERROR);
    37. }
    38. }
    39. @SaCheckLogin
    40. @ApiOperation("更新开题报告")
    41. @PostMapping("/update")
    42. public Result updateKtbg(@RequestBody KtbgEntity ktbg){
    43. if (ktbgService.updateKtbg(ktbg)>0) return Result.success();
    44. else return Result.failure(ResultCode.UPDATE_ERROR);
    45. }
    46. @SaCheckLogin
    47. @ApiOperation("通过id获取开题报告")
    48. @GetMapping("/getById")
    49. public Result getKtbgById(@RequestParam Integer id){
    50. return Result.success(ktbgService.getKtbg(id));
    51. }
    52. @SaCheckLogin
    53. @ApiOperation("通过studentId获取开题报告")
    54. @GetMapping("/getByStudentId")
    55. public Result getKtbgByStudentId(@RequestParam String studentId){
    56. return Result.success(ktbgService.getKtbgByStudentId(studentId));
    57. }
    58. }

     

    package com.cx.controller;
    
    import com.cx.common.Result;
    import com.cx.common.ResultCode;
    import com.cx.fluentmybatis.entity.LunwenEntity;
    import com.cx.service.LunwenService;
    import io.swagger.annotations.Api;
    import io.swagger.annotations.ApiOperation;
    import lombok.extern.slf4j.Slf4j;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.web.bind.annotation.*;
    
    @Slf4j
    @Api(tags = "LunwenController", description = "论文接口")
    @RequestMapping("/lunwen")
    @RestController
    public class LunwenController {
    
        @Autowired
        LunwenService lunwenService;
    
        @ApiOperation("新增论文")
        @PostMapping("/add")
        public Result addLunwen(@RequestBody LunwenEntity lunwen) {
            if (lunwenService.addLunwen(lunwen) > 0) return Result.success();
            else return Result.failure(ResultCode.INSERT_ERROR);
        }
    
        @ApiOperation("删除论文")
        @GetMapping("/remove")
        public Result removeLunwen(@RequestParam Integer id) {
            if (lunwenService.removeLunwen(id) > 0) return Result.success();
            else return Result.failure(ResultCode.DELETE_ERROR);
        }
    
        @ApiOperation("更新论文")
        @PostMapping("/update")
        public Result updateLunwen(@RequestBody LunwenEntity lunwen){
            if (lunwenService.updateLunwen(lunwen)>0) return Result.success();
            else return Result.failure(ResultCode.UPDATE_ERROR);
        }
    
        @ApiOperation("通过id获取论文")
        @GetMapping("/getById")
        public Result getLunwenById(@RequestParam Integer id) {
            return Result.success(lunwenService.getLunwen(id));
        }
    
        @ApiOperation("通过studentid获取论文")
        @GetMapping("/getByStudentId")
        public Result getLunwenById(@RequestParam String studentId) {
            return Result.success(lunwenService.getLunwenByStudentId(studentId));
        }
    }
    
  • 相关阅读:
    Day25 Python的文件操作和异常处理
    数字化门店| 运动场馆管理系统| 智慧门店小程序
    限制用户上传文件类型
    jspm基于ssm的乐聘网人才招聘系统
    修改git tag的描述信息
    Java学习笔记5.4.2 Map接口 - TreeMap类
    【VR】【Unity】如何调整Quest2的隐藏系统时间日期
    Redis 笔记
    java-php-python-南京传媒学院门户网计算机毕业设计
    Linux平台编译WebRTC
  • 原文地址:https://blog.csdn.net/weixin_42899150/article/details/127913938