ssm+vue高校社团管理系统源码和论文

ssm+vue高校社团管理系统源码和论文186

 开发工具:idea 或eclipse
 数据库mysql5.7+
 数据库链接工具:navcat,小海豚等
  技术:ssm 

开题报告内容:(研究现状、目的意义;基本内容、研究方法、参考文献等。) 

1.研究现状

随着现代网络技术发展,对于高校社团管理系统的设计现在正处于发展的阶段,所以对的要求也是比较严格的,要从系统的功能和用户实际需求来进行对系统制定开发的发展方式,依靠网络技术的的快速发展和现代通讯技术的结合为人们带来方便,可以方便用户网上查看,还可以通过这些技术实现在线高校社团管理系统等过程。当今社会互联网急速发展,高校社团管理系统也在国内爆炸式的发展起来。这种网络模式对长期使用互联网社会产生了深远的的影响,在这种社会环境下开发一个适用于用户都可以操作的、简单的、便捷的高校社团管理系统的发展前景是非常好的。

以往的高校社团管理系统相关信息管理,都是工作人员手工统计。这种方式不但时效性低,而且需要查找和变更的时候很不方便。随着科学的进步,技术的成熟,计算机信息化也日新月异的发展,社会也已经深刻的认识,计算机功能非常的强大,计算机已经进入了人类社会发展的各个领域,并且发挥着十分重要的作用。

2.目的意义

本系统利用网络沟通、计算机信息存储管理,有着与传统的方式所无法替代的优点。比如计算检索速度特别快、可靠性特别高、存储容量特别大、保密性特别好、可保存时间特别长、成本特别低等。在工作效率上,能够得到极大地提高,延伸至服务水平也会有好的收获,有了网络,高校社团管理系统的各方面的管理更加科学和系统,更加规范和简便。

3.基本内容

本系统以Java为开发技术,实现高校社团管理系统。高校社团管理系统的主要实现功能包括:管理员:首页、个人中心、学生管理、社团申请信息管理、校园社团管理、社团活动管理、会员管理、活动参与管理、会员申请管理、系统管理,会员;首页、个人中心、社团申请信息管理、校园社团管理、社团活动管理、活动参与管理,学生;首页、个人中心、校园社团管理、社团活动管理、会员申请管理,前台首页;首页、社团申请信息、校园社团、社团活动、活动参与、会员申请、校园资讯、个人中心、后台管理、在线资讯功能,基本上实现了整个高校社团管理系统的过程。

package com.controller;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;

import com.entity.XiaoyuanshetuanEntity;
import com.entity.view.XiaoyuanshetuanView;

import com.service.XiaoyuanshetuanService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;


/**
 * 校园社团
 * 后端接口
 * @author 
 * @email 
 * @date 2021-04-14 12:26:42
 */
@RestController
@RequestMapping("/xiaoyuanshetuan")
public class XiaoyuanshetuanController {
    @Autowired
    private XiaoyuanshetuanService xiaoyuanshetuanService;
    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,XiaoyuanshetuanEntity xiaoyuanshetuan, 
		HttpServletRequest request){

        EntityWrapper<XiaoyuanshetuanEntity> ew = new EntityWrapper<XiaoyuanshetuanEntity>();
		PageUtils page = xiaoyuanshetuanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, xiaoyuanshetuan), params), params));
        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
	@IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,XiaoyuanshetuanEntity xiaoyuanshetuan, HttpServletRequest request){
        EntityWrapper<XiaoyuanshetuanEntity> ew = new EntityWrapper<XiaoyuanshetuanEntity>();
		PageUtils page = xiaoyuanshetuanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, xiaoyuanshetuan), params), params));
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( XiaoyuanshetuanEntity xiaoyuanshetuan){
       	EntityWrapper<XiaoyuanshetuanEntity> ew = new EntityWrapper<XiaoyuanshetuanEntity>();
      	ew.allEq(MPUtil.allEQMapPre( xiaoyuanshetuan, "xiaoyuanshetuan")); 
        return R.ok().put("data", xiaoyuanshetuanService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(XiaoyuanshetuanEntity xiaoyuanshetuan){
        EntityWrapper< XiaoyuanshetuanEntity> ew = new EntityWrapper< XiaoyuanshetuanEntity>();
 		ew.allEq(MPUtil.allEQMapPre( xiaoyuanshetuan, "xiaoyuanshetuan")); 
		XiaoyuanshetuanView xiaoyuanshetuanView =  xiaoyuanshetuanService.selectView(ew);
		return R.ok("查询校园社团成功").put("data", xiaoyuanshetuanView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        XiaoyuanshetuanEntity xiaoyuanshetuan = xiaoyuanshetuanService.selectById(id);
		xiaoyuanshetuan.setClicktime(new Date());
		xiaoyuanshetuanService.updateById(xiaoyuanshetuan);
        return R.ok().put("data", xiaoyuanshetuan);
    }

    /**
     * 前端详情
     */
	@IgnoreAuth
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        XiaoyuanshetuanEntity xiaoyuanshetuan = xiaoyuanshetuanService.selectById(id);
		xiaoyuanshetuan.setClicktime(new Date());
		xiaoyuanshetuanService.updateById(xiaoyuanshetuan);
        return R.ok().put("data", xiaoyuanshetuan);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody XiaoyuanshetuanEntity xiaoyuanshetuan, HttpServletRequest request){
    	xiaoyuanshetuan.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(xiaoyuanshetuan);

        xiaoyuanshetuanService.insert(xiaoyuanshetuan);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody XiaoyuanshetuanEntity xiaoyuanshetuan, HttpServletRequest request){
    	xiaoyuanshetuan.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(xiaoyuanshetuan);

        xiaoyuanshetuanService.insert(xiaoyuanshetuan);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody XiaoyuanshetuanEntity xiaoyuanshetuan, HttpServletRequest request){
        //ValidatorUtils.validateEntity(xiaoyuanshetuan);
        xiaoyuanshetuanService.updateById(xiaoyuanshetuan);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        xiaoyuanshetuanService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
    
    /**
     * 提醒接口
     */
	@RequestMapping("/remind/{columnName}/{type}")
	public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 
						 @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
		map.put("column", columnName);
		map.put("type", type);
		
		if(type.equals("2")) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			Calendar c = Calendar.getInstance();
			Date remindStartDate = null;
			Date remindEndDate = null;
			if(map.get("remindstart")!=null) {
				Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
				c.setTime(new Date()); 
				c.add(Calendar.DAY_OF_MONTH,remindStart);
				remindStartDate = c.getTime();
				map.put("remindstart", sdf.format(remindStartDate));
			}
			if(map.get("remindend")!=null) {
				Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
				c.setTime(new Date());
				c.add(Calendar.DAY_OF_MONTH,remindEnd);
				remindEndDate = c.getTime();
				map.put("remindend", sdf.format(remindEndDate));
			}
		}
		
		Wrapper<XiaoyuanshetuanEntity> wrapper = new EntityWrapper<XiaoyuanshetuanEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}


		int count = xiaoyuanshetuanService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	
	/**
     * 前端智能排序
     */
	@IgnoreAuth
    @RequestMapping("/autoSort")
    public R autoSort(@RequestParam Map<String, Object> params,XiaoyuanshetuanEntity xiaoyuanshetuan, HttpServletRequest request,String pre){
        EntityWrapper<XiaoyuanshetuanEntity> ew = new EntityWrapper<XiaoyuanshetuanEntity>();
        Map<String, Object> newMap = new HashMap<String, Object>();
        Map<String, Object> param = new HashMap<String, Object>();
		Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();
		while (it.hasNext()) {
			Map.Entry<String, Object> entry = it.next();
			String key = entry.getKey();
			String newKey = entry.getKey();
			if (pre.endsWith(".")) {
				newMap.put(pre + newKey, entry.getValue());
			} else if (StringUtils.isEmpty(pre)) {
				newMap.put(newKey, entry.getValue());
			} else {
				newMap.put(pre + "." + newKey, entry.getValue());
			}
		}
		params.put("sort", "clicktime");
        
        params.put("order", "desc");
		PageUtils page = xiaoyuanshetuanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, xiaoyuanshetuan), params), params));
        return R.ok().put("data", page);
    }


}
package com.controller;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;

import com.entity.ShetuanshenqingxinxiEntity;
import com.entity.view.ShetuanshenqingxinxiView;

import com.service.ShetuanshenqingxinxiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;


/**
 * 社团申请信息
 * 后端接口
 * @author 
 * @email 
 * @date 2021-04-14 12:26:42
 */
@RestController
@RequestMapping("/shetuanshenqingxinxi")
public class ShetuanshenqingxinxiController {
    @Autowired
    private ShetuanshenqingxinxiService shetuanshenqingxinxiService;
    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,ShetuanshenqingxinxiEntity shetuanshenqingxinxi, 
		HttpServletRequest request){

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("huiyuan")) {
			shetuanshenqingxinxi.setXuehao((String)request.getSession().getAttribute("username"));
		}
        EntityWrapper<ShetuanshenqingxinxiEntity> ew = new EntityWrapper<ShetuanshenqingxinxiEntity>();
		PageUtils page = shetuanshenqingxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shetuanshenqingxinxi), params), params));
        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
	@IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,ShetuanshenqingxinxiEntity shetuanshenqingxinxi, HttpServletRequest request){

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("huiyuan")) {
			shetuanshenqingxinxi.setXuehao((String)request.getSession().getAttribute("username"));
		}
        EntityWrapper<ShetuanshenqingxinxiEntity> ew = new EntityWrapper<ShetuanshenqingxinxiEntity>();
		PageUtils page = shetuanshenqingxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shetuanshenqingxinxi), params), params));
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( ShetuanshenqingxinxiEntity shetuanshenqingxinxi){
       	EntityWrapper<ShetuanshenqingxinxiEntity> ew = new EntityWrapper<ShetuanshenqingxinxiEntity>();
      	ew.allEq(MPUtil.allEQMapPre( shetuanshenqingxinxi, "shetuanshenqingxinxi")); 
        return R.ok().put("data", shetuanshenqingxinxiService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(ShetuanshenqingxinxiEntity shetuanshenqingxinxi){
        EntityWrapper< ShetuanshenqingxinxiEntity> ew = new EntityWrapper< ShetuanshenqingxinxiEntity>();
 		ew.allEq(MPUtil.allEQMapPre( shetuanshenqingxinxi, "shetuanshenqingxinxi")); 
		ShetuanshenqingxinxiView shetuanshenqingxinxiView =  shetuanshenqingxinxiService.selectView(ew);
		return R.ok("查询社团申请信息成功").put("data", shetuanshenqingxinxiView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        ShetuanshenqingxinxiEntity shetuanshenqingxinxi = shetuanshenqingxinxiService.selectById(id);
        return R.ok().put("data", shetuanshenqingxinxi);
    }

    /**
     * 前端详情
     */
	@IgnoreAuth
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        ShetuanshenqingxinxiEntity shetuanshenqingxinxi = shetuanshenqingxinxiService.selectById(id);
        return R.ok().put("data", shetuanshenqingxinxi);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody ShetuanshenqingxinxiEntity shetuanshenqingxinxi, HttpServletRequest request){
    	shetuanshenqingxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(shetuanshenqingxinxi);

        shetuanshenqingxinxiService.insert(shetuanshenqingxinxi);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody ShetuanshenqingxinxiEntity shetuanshenqingxinxi, HttpServletRequest request){
    	shetuanshenqingxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(shetuanshenqingxinxi);
    	shetuanshenqingxinxi.setUserid((Long)request.getSession().getAttribute("userId"));

        shetuanshenqingxinxiService.insert(shetuanshenqingxinxi);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody ShetuanshenqingxinxiEntity shetuanshenqingxinxi, HttpServletRequest request){
        //ValidatorUtils.validateEntity(shetuanshenqingxinxi);
        shetuanshenqingxinxiService.updateById(shetuanshenqingxinxi);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        shetuanshenqingxinxiService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
    
    /**
     * 提醒接口
     */
	@RequestMapping("/remind/{columnName}/{type}")
	public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 
						 @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
		map.put("column", columnName);
		map.put("type", type);
		
		if(type.equals("2")) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			Calendar c = Calendar.getInstance();
			Date remindStartDate = null;
			Date remindEndDate = null;
			if(map.get("remindstart")!=null) {
				Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
				c.setTime(new Date()); 
				c.add(Calendar.DAY_OF_MONTH,remindStart);
				remindStartDate = c.getTime();
				map.put("remindstart", sdf.format(remindStartDate));
			}
			if(map.get("remindend")!=null) {
				Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
				c.setTime(new Date());
				c.add(Calendar.DAY_OF_MONTH,remindEnd);
				remindEndDate = c.getTime();
				map.put("remindend", sdf.format(remindEndDate));
			}
		}
		
		Wrapper<ShetuanshenqingxinxiEntity> wrapper = new EntityWrapper<ShetuanshenqingxinxiEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("huiyuan")) {
			wrapper.eq("xuehao", (String)request.getSession().getAttribute("username"));
		}

		int count = shetuanshenqingxinxiService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	


}

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

程序猿毕业分享网

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值