当前位置:   article > 正文

毕业设计|基于SpringBoot+Vue实现的社团管理系统

毕业设计|基于SpringBoot+Vue实现的社团管理系统

作者简介:Java领域优质创作者、CSDN博客专家 、CSDN内容合伙人、掘金特邀作者、阿里云博客专家、51CTO特邀作者、多年架构师设计经验、腾讯课堂常驻讲师

主要内容:Java项目、Python项目、前端项目、人工智能与大数据、简历模板、学习资料、面试题库、技术互助

收藏点赞不迷路  关注作者有好处

文末获取源码 

项目编号:L-BS-GX-12

一,环境介绍

语言环境:Java:  jdk1.8

数据库:Mysql: mysql5.7

应用服务器:Tomcat:  tomcat8.5.31

开发工具:IDEA或eclipse

二,项目简介

基于SpringBoot+Vue实现的社团管理系统是为高校学生打造的一款在线管理平台,它可以实时完成信息处理,还缩短社团信息信息管理流程,使其系统化和规范化。

系统功能说明

1、系统共有管理员、社团社长、学生三个角色,管理员拥有所有系统最高权限。

2、社团社长可以审核入团申请、发布社团活动、发起社团收费、发布并管理社团通知、管理社团成员

3、用户可以申请社团、查看系统、社团通知,查看并修改个人信息

三,系统展示

四,核心代码展示

  1. @Service("teamsService")
  2. public class TeamsServiceImpl implements TeamsService {
  3. @Autowired
  4. private UsersDao usersDao;
  5. @Autowired
  6. private TeamTypesDao teamTypesDao;
  7. @Autowired
  8. private TeamsDao teamsDao;
  9. @Autowired
  10. private MembersDao membersDao;
  11. @Autowired
  12. private NoticesDao noticesDao;
  13. @Autowired
  14. private ActivitiesDao activitiesDao;
  15. @Autowired
  16. private ActiveLogsDao activeLogsDao;
  17. @Autowired
  18. private ApplyLogsDao applyLogsDao;
  19. @Autowired
  20. private PayLogsDao payLogsDao;
  21. @Override
  22. @Transactional
  23. public void add(Teams teams) {
  24. teamsDao.insert(teams);
  25. Members member = new Members();
  26. member.setId(IDUtils.makeIDByCurrent());
  27. member.setUserId(teams.getManager());
  28. member.setTeamId(teams.getId());
  29. member.setCreateTime(DateUtils.getNowDate());
  30. membersDao.insert(member);
  31. Users user = usersDao.selectById(teams.getManager());
  32. user.setType(1);
  33. usersDao.updateById(user);
  34. }
  35. @Override
  36. @Transactional
  37. public void update(Teams teams) {
  38. teamsDao.updateById(teams);
  39. }
  40. @Override
  41. @Transactional
  42. public void delete(Teams teams) {
  43. QueryWrapper<Notices> qw_notice = new QueryWrapper<Notices>();
  44. qw_notice.eq("team_id", teams.getId());
  45. noticesDao.delete(qw_notice);
  46. QueryWrapper<PayLogs> qw_pay = new QueryWrapper<PayLogs>();
  47. qw_pay.eq("team_id", teams.getId());
  48. payLogsDao.delete(qw_pay);
  49. QueryWrapper<ApplyLogs> qw_apply = new QueryWrapper<ApplyLogs>();
  50. qw_apply.eq("team_id", teams.getId());
  51. applyLogsDao.delete(qw_apply);
  52. QueryWrapper<Members> qw_members = new QueryWrapper<Members>();
  53. qw_members.eq("team_id", teams.getId());
  54. membersDao.delete(qw_members);
  55. QueryWrapper<Activities> qw_active = new QueryWrapper<Activities>();
  56. qw_active.eq("team_id", teams.getId());
  57. for(Activities activitie : activitiesDao.selectList(qw_active)){
  58. QueryWrapper<ActiveLogs> qw_active_log = new QueryWrapper<ActiveLogs>();
  59. qw_active_log.eq("active_id", activitie.getId());
  60. activeLogsDao.delete(qw_active_log);
  61. }
  62. activitiesDao.delete(qw_active);
  63. teamsDao.deleteById(teams);
  64. QueryWrapper<Teams> qw_team = new QueryWrapper<Teams>();
  65. qw_team.eq("manager", teams.getManager());
  66. if(teamsDao.selectCount(qw_team) <= 0){
  67. Users user = usersDao.selectById(teams.getManager());
  68. user.setType(2);
  69. usersDao.updateById(user);
  70. }
  71. }
  72. @Override
  73. @Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
  74. public Teams getOne(String id) {
  75. Teams teams = teamsDao.selectById(id);
  76. return teams;
  77. }
  78. @Override
  79. @Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
  80. public List<Teams> getAll(){
  81. QueryWrapper<Teams> qw = new QueryWrapper<Teams>();
  82. qw.orderByDesc("create_time");
  83. List<Teams> list = teamsDao.selectList(qw);
  84. return list;
  85. }
  86. @Override
  87. @Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
  88. public List<Teams> getListByManId(String manId){
  89. QueryWrapper<Teams> qw = new QueryWrapper<Teams>();
  90. qw.eq("manager", manId);
  91. qw.orderByDesc("create_time");
  92. List<Teams> list = teamsDao.selectList(qw);
  93. return list;
  94. }
  95. @Override
  96. @Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
  97. public PageData getPageInfo(Long pageIndex, Long pageSize, Teams teams) {
  98. QueryWrapper<Teams> qw = new QueryWrapper<Teams>();
  99. if(StringUtils.isNotNullOrEmpty(teams.getName())){
  100. qw.like("name", teams.getName());
  101. }
  102. if(StringUtils.isNotNullOrEmpty(teams.getTypeId())){
  103. qw.eq("type_id", teams.getTypeId());
  104. }
  105. if(StringUtils.isNotNullOrEmpty(teams.getManager())){
  106. qw.eq("manager", teams.getManager());
  107. }
  108. qw.orderByDesc("create_time");
  109. Page<Teams> page =
  110. teamsDao.selectPage(new Page<Teams>(pageIndex, pageSize), qw);
  111. return parsePage(page);
  112. }
  113. /**
  114. * 转化分页查询的结果
  115. */
  116. public PageData parsePage(Page<Teams> p) {
  117. List<Map<String, Object>> resl = new ArrayList<Map<String, Object>>();
  118. for (Teams teams : p.getRecords()) {
  119. Map<String, Object> temp = new HashMap<String, Object>();
  120. temp.put("id", teams.getId());
  121. temp.put("name", teams.getName());
  122. temp.put("createTime", teams.getCreateTime());
  123. temp.put("total", teams.getTotal());
  124. Users user = usersDao.selectById(teams.getManager());
  125. temp.put("manager", teams.getManager());
  126. temp.put("managerName", user.getName());
  127. temp.put("managerPhone", user.getPhone());
  128. temp.put("managerAddress", user.getAddress());
  129. TeamTypes teamType = teamTypesDao.selectById(teams.getTypeId());
  130. temp.put("typeId", teams.getTypeId());
  131. temp.put("typeName", teamType.getName());
  132. resl.add(temp);
  133. }
  134. PageData pageData = new PageData(p.getCurrent(), p.getSize(), p.getTotal(), resl);
  135. return pageData;
  136. }
  137. }

五,相关作品展示

基于Java开发、Python开发、PHP开发、C#开发等相关语言开发的实战项目

基于Nodejs、Vue等前端技术开发的前端实战项目

基于微信小程序和安卓APP应用开发的相关作品

基于51单片机等嵌入式物联网开发应用

基于各类算法实现的AI智能应用

基于大数据实现的各类数据管理和推荐系统

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/435604
推荐阅读
相关标签
  

闽ICP备14008679号