由于APP软件在开发以及运营上面所需成本较高,而用户手机需要安装各种APP软件,因此占用用户过多的手机存储空间,导致用户手机运行缓慢,体验度比较差,进而导致用户会卸载非必要的APP,倒逼管理者必须改变运营策略。随着微信小程序的出现,解决了用户非独立APP不可访问内容的痛点,所以很多APP软件都转向微信小程序。本次课题就运用了微信小程序技术开发一个基于微信小程序的校友会系统。
基于微信小程序的校友会系统借助微信开发者工具开发用户前端,使用SSM框架和Java语言开发管理员后台,使用Mysql创建数据表保存本系统产生的数据。系统可以提供信息显示和相应服务,其管理员管理校友,用户,管理校友生活模块,校友表白墙,校友论坛,审核兼职信息。用户查看兼职信息,发布帖子,查看校园新闻,登记表白墙信息,查询和查看校友信息。校友查看表白墙,在生活模块查看校友的生活动态并发布评论,查看兼职信息和校园新闻,在校园论坛查看帖子和评论帖子。
总之,基于微信小程序的校友会系统使得校友之间可以互相分享生活动态,还能参与信息交流与讨论,同时还可以查看本校校友以及表白墙信息。
关键词:基于微信小程序的校友会系统;微信开发者工具;SSM框架
基于微信小程序的校友会系统+ssm后端源码和论文weixin111
演示视频:
基于微信小程序的校友会系统+ssm后端源码和论文
Abstract
Due to the high cost of APP software development and operation, and the user's mobile phone needs to install various APP software, it takes up too much mobile phone storage space of the user, causing the user's mobile phone to run slowly, the experience is relatively poor, and the user will uninstall Non-essential APPs force managers to change their operating strategies. With the emergence of WeChat mini-programs, the pain point that users cannot access content from non-independent APPs has been solved, so many APP software have turned to WeChat mini-programs. This project used WeChat applet technology to develop an alumni association system based on WeChat applet.
The alumni association system based on WeChat applet uses WeChat developer tools to develop the user front end, uses the SSM framework and Java language to develop the administrator backend, and uses Mysql to create data tables to save the data generated by the system. The system can provide information display and corresponding services. Its administrator manages alumni, users, manages alumni life module, alumni confession wall, alumni forum, and reviews part-time information. Users view part-time job information, post posts, view campus news, register for confession wall information, and query and view alumni information. Alumni check the confession wall, check alumni’s life dynamics and post comments in the life module, check part-time job information and campus news, and check posts and comment posts on campus forums.
In short, the alumni association system based on the WeChat applet allows alumni to share life dynamics with each other, participate in information exchanges and discussions, and view information on the school’s alumni and the confession wall.
Key Words:Alumni Association System Based on WeChat Mini Program; WeChat Developer Tool; SSM Framework
文章来源:https://www.toymoban.com/news/detail-781989.html
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.JianzhixinxiEntity;
import com.entity.view.JianzhixinxiView;
import com.service.JianzhixinxiService;
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-08 21:36:12
*/
@RestController
@RequestMapping("/jianzhixinxi")
public class JianzhixinxiController {
@Autowired
private JianzhixinxiService jianzhixinxiService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,JianzhixinxiEntity jianzhixinxi,
HttpServletRequest request){
EntityWrapper<JianzhixinxiEntity> ew = new EntityWrapper<JianzhixinxiEntity>();
PageUtils page = jianzhixinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jianzhixinxi), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,JianzhixinxiEntity jianzhixinxi, HttpServletRequest request){
EntityWrapper<JianzhixinxiEntity> ew = new EntityWrapper<JianzhixinxiEntity>();
PageUtils page = jianzhixinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jianzhixinxi), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( JianzhixinxiEntity jianzhixinxi){
EntityWrapper<JianzhixinxiEntity> ew = new EntityWrapper<JianzhixinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( jianzhixinxi, "jianzhixinxi"));
return R.ok().put("data", jianzhixinxiService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(JianzhixinxiEntity jianzhixinxi){
EntityWrapper< JianzhixinxiEntity> ew = new EntityWrapper< JianzhixinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( jianzhixinxi, "jianzhixinxi"));
JianzhixinxiView jianzhixinxiView = jianzhixinxiService.selectView(ew);
return R.ok("查询兼职信息成功").put("data", jianzhixinxiView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
JianzhixinxiEntity jianzhixinxi = jianzhixinxiService.selectById(id);
return R.ok().put("data", jianzhixinxi);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
JianzhixinxiEntity jianzhixinxi = jianzhixinxiService.selectById(id);
return R.ok().put("data", jianzhixinxi);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody JianzhixinxiEntity jianzhixinxi, HttpServletRequest request){
jianzhixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(jianzhixinxi);
jianzhixinxiService.insert(jianzhixinxi);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody JianzhixinxiEntity jianzhixinxi, HttpServletRequest request){
jianzhixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(jianzhixinxi);
jianzhixinxiService.insert(jianzhixinxi);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody JianzhixinxiEntity jianzhixinxi, HttpServletRequest request){
//ValidatorUtils.validateEntity(jianzhixinxi);
jianzhixinxiService.updateById(jianzhixinxi);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
jianzhixinxiService.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<JianzhixinxiEntity> wrapper = new EntityWrapper<JianzhixinxiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = jianzhixinxiService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
文章来源地址https://www.toymoban.com/news/detail-781989.html
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.BiaobaiqiangEntity;
import com.entity.view.BiaobaiqiangView;
import com.service.BiaobaiqiangService;
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-08 21:36:12
*/
@RestController
@RequestMapping("/biaobaiqiang")
public class BiaobaiqiangController {
@Autowired
private BiaobaiqiangService biaobaiqiangService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,BiaobaiqiangEntity biaobaiqiang,
HttpServletRequest request){
EntityWrapper<BiaobaiqiangEntity> ew = new EntityWrapper<BiaobaiqiangEntity>();
PageUtils page = biaobaiqiangService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, biaobaiqiang), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,BiaobaiqiangEntity biaobaiqiang, HttpServletRequest request){
EntityWrapper<BiaobaiqiangEntity> ew = new EntityWrapper<BiaobaiqiangEntity>();
PageUtils page = biaobaiqiangService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, biaobaiqiang), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( BiaobaiqiangEntity biaobaiqiang){
EntityWrapper<BiaobaiqiangEntity> ew = new EntityWrapper<BiaobaiqiangEntity>();
ew.allEq(MPUtil.allEQMapPre( biaobaiqiang, "biaobaiqiang"));
return R.ok().put("data", biaobaiqiangService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(BiaobaiqiangEntity biaobaiqiang){
EntityWrapper< BiaobaiqiangEntity> ew = new EntityWrapper< BiaobaiqiangEntity>();
ew.allEq(MPUtil.allEQMapPre( biaobaiqiang, "biaobaiqiang"));
BiaobaiqiangView biaobaiqiangView = biaobaiqiangService.selectView(ew);
return R.ok("查询表白墙成功").put("data", biaobaiqiangView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
BiaobaiqiangEntity biaobaiqiang = biaobaiqiangService.selectById(id);
return R.ok().put("data", biaobaiqiang);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
BiaobaiqiangEntity biaobaiqiang = biaobaiqiangService.selectById(id);
return R.ok().put("data", biaobaiqiang);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody BiaobaiqiangEntity biaobaiqiang, HttpServletRequest request){
biaobaiqiang.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(biaobaiqiang);
biaobaiqiangService.insert(biaobaiqiang);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody BiaobaiqiangEntity biaobaiqiang, HttpServletRequest request){
biaobaiqiang.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(biaobaiqiang);
biaobaiqiangService.insert(biaobaiqiang);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody BiaobaiqiangEntity biaobaiqiang, HttpServletRequest request){
//ValidatorUtils.validateEntity(biaobaiqiang);
biaobaiqiangService.updateById(biaobaiqiang);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
biaobaiqiangService.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<BiaobaiqiangEntity> wrapper = new EntityWrapper<BiaobaiqiangEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = biaobaiqiangService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
到了这里,关于基于微信小程序的校友会系统+ssm后端源码和论文的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!