基于javaweb的SpringBoot儿童爱心管理系统(java+springboot+maven+vue+elementui+layui+mysql)

运行环境

Java≥8、MySQL≥5.7、Node.js≥14

开发工具

后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可

❗没学过node.js的不要搞前后端分离项目

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

421424040701

441424040701

451424040701

461424040701

471424040701

481424040701

491424040701

基于javaweb的SpringBoot儿童爱心管理系统(java+springboot+maven+vue+elementui+layui+mysql)

项目介绍

基于SpringBoot Vue的儿童爱心网站

角色:管理员、用户

管理员:管理员登录系统后,可以对首页、个人中心、用户管理、宣传新闻管理、志愿活动管理、爱心捐赠管理、旧物捐赠管理、活动报名管理、系统管理等功能进行相应的操作管理

用户:用户进入系统可以查看首页、个人中心、旧物捐赠管理、活动报名管理等内容,进行详细的操作、系统首页的主要功能展示了首页、宣传新闻、志愿活动、爱心捐赠、个人中心、后台管理等信息

技术栈

后端:SpringBoot+Mybaits

前端:Vue+ElementUI+Layui+HTML+CSS+JS

文档介绍(可行性研究、技术可行性分析、经济可行性分析、运行可行性分析、系统现状分析、功能需求、系统设计规则及相关技术准备、总体设计、设计的原则及目标、系统的主要的功能结构、系统设计、数据表E-R图、数据库的主要表结构、系统的详细设计与实现、系统的功能模块、管理员功能模块、用户功能模块、系统测试与维护、测试内容、管理员登录测试、信息测试):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
       return R.ok().put("data", page);
}

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

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

/**
* 查询
*/
@RequestMapping("/query")
public R query(JiuwujuanzengEntity jiuwujuanzeng){
EntityWrapper< JiuwujuanzengEntity> ew = new EntityWrapper< JiuwujuanzengEntity>();
ew.allEq(MPUtil.allEQMapPre( jiuwujuanzeng, "jiuwujuanzeng"));
JiuwujuanzengView jiuwujuanzengView = jiuwujuanzengService.selectView(ew);
return R.ok("查询旧物捐赠成功").put("data", jiuwujuanzengView);
}

/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
JiuwujuanzengEntity jiuwujuanzeng = jiuwujuanzengService.selectById(id);
return R.ok().put("data", jiuwujuanzeng);
}

/**
* 前端详情
*/
@IgnoreAuth
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42




/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody HuodongbaomingEntity huodongbaoming, HttpServletRequest request){
huodongbaoming.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(huodongbaoming);
huodongbaomingService.insert(huodongbaoming);
return R.ok();
}

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

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


/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
		Wrapper<YonghuEntity> wrapper = new EntityWrapper<YonghuEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}


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








}


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28



/**
* 用户
* 后端接口
* @email
*/
@RestController
@RequestMapping("/yonghu")
public class YonghuController {
@Autowired
private YonghuService yonghuService;



@Autowired
private TokenService tokenService;

/**
* 登录
*/
@IgnoreAuth
@RequestMapping(value = "/login")
public R login(String username, String password, String captcha, HttpServletRequest request) {
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuzhanghao", username));
if(user==null || !user.getMima().equals(password)) {
return R.error("账号或密码不正确");
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
            File file1 = new File(upload.getAbsolutePath()+"/"+face1);
File file2 = new File(upload.getAbsolutePath()+"/"+face2);
String img1 = Base64Util.encode(FileUtil.FileToByte(file1));
String img2 = Base64Util.encode(FileUtil.FileToByte(file2));
MatchRequest req1 = new MatchRequest(img1, "BASE64");
MatchRequest req2 = new MatchRequest(img2, "BASE64");
ArrayList<MatchRequest> requests = new ArrayList<MatchRequest>();
requests.add(req1);
requests.add(req2);
res = client.match(requests);
System.out.println(res.get("result"));
} catch (FileNotFoundException e) {
e.printStackTrace();
return R.error("文件不存在");
} catch (IOException e) {
e.printStackTrace();
}
return R.ok().put("score", com.alibaba.fastjson.JSONObject.parse(res.getJSONObject("result").get("score").toString()));
}
}


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
   
/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,DiscussxuanchuanxinwenEntity discussxuanchuanxinwen,
HttpServletRequest request){
EntityWrapper<DiscussxuanchuanxinwenEntity> ew = new EntityWrapper<DiscussxuanchuanxinwenEntity>();
PageUtils page = discussxuanchuanxinwenService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, discussxuanchuanxinwen), params), params));
return R.ok().put("data", page);
}

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

/**
* 查询
*/
@RequestMapping("/query")
public R query(DiscussxuanchuanxinwenEntity discussxuanchuanxinwen){
EntityWrapper< DiscussxuanchuanxinwenEntity> ew = new EntityWrapper< DiscussxuanchuanxinwenEntity>();
ew.allEq(MPUtil.allEQMapPre( discussxuanchuanxinwen, "discussxuanchuanxinwen"));
DiscussxuanchuanxinwenView discussxuanchuanxinwenView = discussxuanchuanxinwenService.selectView(ew);
return R.ok("查询宣传新闻评论表成功").put("data", discussxuanchuanxinwenView);
}

/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
DiscussxuanchuanxinwenEntity discussxuanchuanxinwen = discussxuanchuanxinwenService.selectById(id);
return R.ok().put("data", discussxuanchuanxinwen);
}

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


项目链接:
https://javayms.github.io?id=391524170701201gr
https://javayms.pages.dev?id=391524170701201gr