英语词汇小程序
目录
博主介绍:✌️大厂码农|毕设布道师,阿里云开发社区乘风者计划专家博主,CSDN平台Java领域优质创作者,专注于大学生项目实战开发、讲解和毕业答疑辅导。✌️
主要项目:小程序、SpringBoot、SSM、Vue、Html、Jsp、Nodejs等设计与开发。
🍅文末获取源码联系🍅
基于java的四六级词汇小程序设计与实现
一、前言
四六级词汇小程序,可以实现目标用户群需要的功能,四六级词汇小程序的设计主要是对系统所要实现的功能进行详细考虑,确定所要实现的功能后进行界面的设计,四六级词汇小程序的开发利用现有的成熟技术参考,以源代码为模板,分析功能调整与四六级词汇小程序管理的实际需求相结合,讨论了基于四六级词汇小程序管理的使用。 词汇是英语永恒的话题,单词太多记不住是孩子永远的难题。为方便用户能够可以随时进行四六级词汇小程序的数据信息管理,特开发了基于四六级词汇小程序的管理系统。
二、系统功能设计
三、系统实现
用户登录通过账号、密码行页面,进入到四六级词汇小程序主界面,进入到操作界面,进行相对应操作,如图5-2所示。
图5-2用户登录界面图
用户首页页面可以查看首页、英语词汇、易错词、论坛中心、我的等信息,进行提交操作,如图5-3所示。
图5-3首页界面图
用户进入我的页面可以填写英语词汇、学习笔记、签到打卡、我的收藏、我要发帖、留言板等信息,进行提交操作,如图5-4所示。
图5-4我的界面图
用户进入用户信息页面可以填写用户名、密码、姓名、性别、头像、身份证、手机等信息,进行保存操作,如图5-5-所示。
图5-5用户信息界面图
用户进入英语词汇页面可以填写单词、等级、图片、字母、音标等信息,进行做笔记操作,如图5-6-所示。
图5-6英语词汇界面图
用户进入添加易错词页面可以填写易错单词、字母、发音、发布日期、备注等信息,进行收藏操作,如图5-7-所示。
图5-7易错单词界面图
用户进入学习笔记页面可以填写笔记名称、姓名、日期、用户名、学习进度等信息,进行提交操作,如图5-8-所示。
图5-8学习笔记界面图
管理员进入到易错词管理界面,通过界面的任务大厅,登录成功后进入到系统可以查看易错单词、字母、图片、发音、备注、发布日期等信息,进行相对应操作,如图5-15所示。
图5-15易错词管理界面图
管理员进入到学习笔记管理界面,通过界面的任务大厅,登录成功后进入到系统可以查看笔记名称、日期、学习进度、学习心得、用户名、姓名等信息,进行相对应操作,如图5-16所示。
图5-16学习笔记界面图
四、数据库设计
1、实体ER图
(1)英语词汇的实体,其具备的属性如下图。
表名:yicuoci
功能:易错词
字段名称 | 类型 | 长度 | 字段说明 | 主键 | 默认值 |
id | bigint | 主键 | 主键 | ||
addtime | timestamp | 创建时间 | CURRENT_TIMESTAMP | ||
yicuodanci | varchar | 200 | 易错单词 | ||
zimu | varchar | 200 | 字母 | ||
tupian | varchar | 200 | 图片 | ||
fayin | varchar | 200 | 发音 | ||
beizhu | longtext | 4294967295 | 备注 | ||
faburiqi | date | 发布日期 |
五、核心代码
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.BumenEntity;
import com.entity.view.BumenView;
import com.service.BumenService;
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-05-07 10:42:31
*/
@RestController
@RequestMapping("/bumen")
public class BumenController {
@Autowired
private BumenService bumenService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,BumenEntity bumen,
HttpServletRequest request){
EntityWrapper<BumenEntity> ew = new EntityWrapper<BumenEntity>();
PageUtils page = bumenService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, bumen), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,BumenEntity bumen,
HttpServletRequest request){
EntityWrapper<BumenEntity> ew = new EntityWrapper<BumenEntity>();
PageUtils page = bumenService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, bumen), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( BumenEntity bumen){
EntityWrapper<BumenEntity> ew = new EntityWrapper<BumenEntity>();
ew.allEq(MPUtil.allEQMapPre( bumen, "bumen"));
return R.ok().put("data", bumenService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(BumenEntity bumen){
EntityWrapper< BumenEntity> ew = new EntityWrapper< BumenEntity>();
ew.allEq(MPUtil.allEQMapPre( bumen, "bumen"));
BumenView bumenView = bumenService.selectView(ew);
return R.ok("查询部门成功").put("data", bumenView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
BumenEntity bumen = bumenService.selectById(id);
return R.ok().put("data", bumen);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
BumenEntity bumen = bumenService.selectById(id);
return R.ok().put("data", bumen);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody BumenEntity bumen, HttpServletRequest request){
bumen.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(bumen);
bumenService.insert(bumen);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody BumenEntity bumen, HttpServletRequest request){
bumen.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(bumen);
bumenService.insert(bumen);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody BumenEntity bumen, HttpServletRequest request){
//ValidatorUtils.validateEntity(bumen);
bumenService.updateById(bumen);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
bumenService.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<BumenEntity> wrapper = new EntityWrapper<BumenEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = bumenService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
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.GangweiEntity;
import com.entity.view.GangweiView;
import com.service.GangweiService;
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-05-07 10:42:31
*/
@RestController
@RequestMapping("/gangwei")
public class GangweiController {
@Autowired
private GangweiService gangweiService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,GangweiEntity gangwei,
HttpServletRequest request){
EntityWrapper<GangweiEntity> ew = new EntityWrapper<GangweiEntity>();
PageUtils page = gangweiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, gangwei), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,GangweiEntity gangwei,
HttpServletRequest request){
EntityWrapper<GangweiEntity> ew = new EntityWrapper<GangweiEntity>();
PageUtils page = gangweiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, gangwei), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( GangweiEntity gangwei){
EntityWrapper<GangweiEntity> ew = new EntityWrapper<GangweiEntity>();
ew.allEq(MPUtil.allEQMapPre( gangwei, "gangwei"));
return R.ok().put("data", gangweiService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(GangweiEntity gangwei){
EntityWrapper< GangweiEntity> ew = new EntityWrapper< GangweiEntity>();
ew.allEq(MPUtil.allEQMapPre( gangwei, "gangwei"));
GangweiView gangweiView = gangweiService.selectView(ew);
return R.ok("查询岗位成功").put("data", gangweiView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
GangweiEntity gangwei = gangweiService.selectById(id);
return R.ok().put("data", gangwei);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
GangweiEntity gangwei = gangweiService.selectById(id);
return R.ok().put("data", gangwei);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody GangweiEntity gangwei, HttpServletRequest request){
gangwei.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(gangwei);
gangweiService.insert(gangwei);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody GangweiEntity gangwei, HttpServletRequest request){
gangwei.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(gangwei);
gangweiService.insert(gangwei);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody GangweiEntity gangwei, HttpServletRequest request){
//ValidatorUtils.validateEntity(gangwei);
gangweiService.updateById(gangwei);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
gangweiService.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<GangweiEntity> wrapper = new EntityWrapper<GangweiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = gangweiService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
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.JixiaokaoheEntity;
import com.entity.view.JixiaokaoheView;
import com.service.JixiaokaoheService;
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-05-07 10:42:31
*/
@RestController
@RequestMapping("/jixiaokaohe")
public class JixiaokaoheController {
@Autowired
private JixiaokaoheService jixiaokaoheService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,JixiaokaoheEntity jixiaokaohe,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yuangong")) {
jixiaokaohe.setYuangonggonghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<JixiaokaoheEntity> ew = new EntityWrapper<JixiaokaoheEntity>();
PageUtils page = jixiaokaoheService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jixiaokaohe), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,JixiaokaoheEntity jixiaokaohe,
HttpServletRequest request){
EntityWrapper<JixiaokaoheEntity> ew = new EntityWrapper<JixiaokaoheEntity>();
PageUtils page = jixiaokaoheService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jixiaokaohe), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( JixiaokaoheEntity jixiaokaohe){
EntityWrapper<JixiaokaoheEntity> ew = new EntityWrapper<JixiaokaoheEntity>();
ew.allEq(MPUtil.allEQMapPre( jixiaokaohe, "jixiaokaohe"));
return R.ok().put("data", jixiaokaoheService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(JixiaokaoheEntity jixiaokaohe){
EntityWrapper< JixiaokaoheEntity> ew = new EntityWrapper< JixiaokaoheEntity>();
ew.allEq(MPUtil.allEQMapPre( jixiaokaohe, "jixiaokaohe"));
JixiaokaoheView jixiaokaoheView = jixiaokaoheService.selectView(ew);
return R.ok("查询绩效考核成功").put("data", jixiaokaoheView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
JixiaokaoheEntity jixiaokaohe = jixiaokaoheService.selectById(id);
return R.ok().put("data", jixiaokaohe);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
JixiaokaoheEntity jixiaokaohe = jixiaokaoheService.selectById(id);
return R.ok().put("data", jixiaokaohe);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody JixiaokaoheEntity jixiaokaohe, HttpServletRequest request){
jixiaokaohe.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(jixiaokaohe);
jixiaokaoheService.insert(jixiaokaohe);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody JixiaokaoheEntity jixiaokaohe, HttpServletRequest request){
jixiaokaohe.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(jixiaokaohe);
jixiaokaoheService.insert(jixiaokaohe);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody JixiaokaoheEntity jixiaokaohe, HttpServletRequest request){
//ValidatorUtils.validateEntity(jixiaokaohe);
jixiaokaoheService.updateById(jixiaokaohe);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
jixiaokaoheService.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<JixiaokaoheEntity> wrapper = new EntityWrapper<JixiaokaoheEntity>();
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("yuangong")) {
wrapper.eq("yuangonggonghao", (String)request.getSession().getAttribute("username"));
}
int count = jixiaokaoheService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
六、论文参考
七、最新计算机毕设选题推荐
八、源码获取:
大家点赞、收藏、关注、评论啦 、👇🏻获取联系方式在文章末尾👇🏻