大家好!我是岛上程序猿,感谢您阅读本文,欢迎一键三连哦。
💞当前专栏:微信小程序毕业设计
精彩专栏推荐👇🏻👇🏻👇🏻
开发运行环境
①前端:微信小程序开发工具
② 后端:Java
- 框架:ssm
- JDK版本:JDK1.8
- 服务器:tomcat7
- 数据库:mysql 5.7
- 数据库工具:Navicat12
- 开发软件:eclipse/myeclipse/idea
- Maven包:Maven3.3.9
- 浏览器:谷歌浏览器
演示视频
前端:
weixin133学生活动管理系统-微信端
后端:
weixin133学生活动管理系统-服务端
原版高清演示视频-编号:133
https://pan.quark.cn/s/c0c9519df9d4
源码下载地址:
https://download.csdn.net/download/m0_46388260/89086934
论文目录
【如需全文请按文末获取联系】
目录
一、项目简介
基于微信小程序的学生活动管理系统设置了管理员权限,其用例图见下图。管理员审核学生提交的活动报名信息,管理活动和学生留言,管理学生。
基于微信小程序的学生活动管理系统设置了学生权限,其用例图见下图。学生查看活动,参与活动报名,查看活动报名信息以及活动公告信息。
二、系统设计
2.1软件功能模块设计
设计的管理员的详细功能见下图,管理员审核学生提交的活动报名信息,管理活动和学生留言,管理学生。
设计的学生的详细功能见下图,学生查看活动,参与活动报名,查看活动报名信息以及活动公告信息。
2.2数据库设计
(1)设计的活动报名实体,其具备的属性见下图。
(2)设计的活动实体,其具备的属性见下图。
(3)设计的学生实体,其具备的属性见下图。
三、系统项目部分截图
3.1管理员功能实现
活动信息管理
管理员权限中的活动信息管理,其运行效果见下图。管理员负责活动信息的修改,活动信息的删除,活动信息的新增等内容,同时,学生评论活动的信息也能让管理员查看。
活动报名管理
管理员权限中的活动报名管理,其运行效果见下图。学生报名参加活动,管理员就负责在当前页面审核学生报名参加的活动信息。
学生管理
管理员权限中的学生管理,其运行效果见下图。管理员可以在本页面修改,删除学生资料。
3.2学生功能实现
活动信息
学生权限中的活动信息,其运行效果见下图。学生在本页面除了查看活动介绍之外,还能够收藏活动,对该活动进行报名。
活动报名
学生权限中的活动报名,其运行效果见下图。学生报名参加活动之后,需要在本模块查看报名信息,修改报名信息,删除活动报名信息,同时,学生点击活动图片或活动名称进入其详细页面查看学生提交的报名信息是否通过管理员的审核。
活动公告
学生权限中的活动公告,其运行效果见下图。学生通过标题搜索活动公告信息,学生点击活动公告标题以及图片即可查看活动公告的内容。
四、部分核心代码
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.HuodongxinxiEntity;
import com.entity.view.HuodongxinxiView;
import com.service.HuodongxinxiService;
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-21 10:50:40
*/
@RestController
@RequestMapping("/huodongxinxi")
public class HuodongxinxiController {
@Autowired
private HuodongxinxiService huodongxinxiService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,HuodongxinxiEntity huodongxinxi,
HttpServletRequest request){
EntityWrapper<HuodongxinxiEntity> ew = new EntityWrapper<HuodongxinxiEntity>();
PageUtils page = huodongxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, huodongxinxi), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,HuodongxinxiEntity huodongxinxi,
HttpServletRequest request){
EntityWrapper<HuodongxinxiEntity> ew = new EntityWrapper<HuodongxinxiEntity>();
PageUtils page = huodongxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, huodongxinxi), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( HuodongxinxiEntity huodongxinxi){
EntityWrapper<HuodongxinxiEntity> ew = new EntityWrapper<HuodongxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( huodongxinxi, "huodongxinxi"));
return R.ok().put("data", huodongxinxiService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(HuodongxinxiEntity huodongxinxi){
EntityWrapper< HuodongxinxiEntity> ew = new EntityWrapper< HuodongxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( huodongxinxi, "huodongxinxi"));
HuodongxinxiView huodongxinxiView = huodongxinxiService.selectView(ew);
return R.ok("查询活动信息成功").put("data", huodongxinxiView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
HuodongxinxiEntity huodongxinxi = huodongxinxiService.selectById(id);
huodongxinxi.setClicknum(huodongxinxi.getClicknum()+1);
huodongxinxi.setClicktime(new Date());
huodongxinxiService.updateById(huodongxinxi);
return R.ok().put("data", huodongxinxi);
}
/**
* 前端详情
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
HuodongxinxiEntity huodongxinxi = huodongxinxiService.selectById(id);
huodongxinxi.setClicknum(huodongxinxi.getClicknum()+1);
huodongxinxi.setClicktime(new Date());
huodongxinxiService.updateById(huodongxinxi);
return R.ok().put("data", huodongxinxi);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody HuodongxinxiEntity huodongxinxi, HttpServletRequest request){
huodongxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(huodongxinxi);
huodongxinxiService.insert(huodongxinxi);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody HuodongxinxiEntity huodongxinxi, HttpServletRequest request){
huodongxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(huodongxinxi);
huodongxinxiService.insert(huodongxinxi);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody HuodongxinxiEntity huodongxinxi, HttpServletRequest request){
//ValidatorUtils.validateEntity(huodongxinxi);
huodongxinxiService.updateById(huodongxinxi);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
huodongxinxiService.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<HuodongxinxiEntity> wrapper = new EntityWrapper<HuodongxinxiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = huodongxinxiService.selectCount(wrapper);
return R.ok().put("count", count);
}
/**
* 前端智能排序
*/
@IgnoreAuth
@RequestMapping("/autoSort")
public R autoSort(@RequestParam Map<String, Object> params,HuodongxinxiEntity huodongxinxi, HttpServletRequest request,String pre){
EntityWrapper<HuodongxinxiEntity> ew = new EntityWrapper<HuodongxinxiEntity>();
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", "clicknum");
params.put("order", "desc");
PageUtils page = huodongxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, huodongxinxi), params), params));
return R.ok().put("data", page);
}
}
获取源码或论文
如需对应的论文或源码,以及其他定制需求,也可以下方微信联系我。