基于javaweb的SpringBoot蓝天幼儿园管理系统(java+springboot+thymeleaf+html+maven+mysql)

运行环境

Java≥8、MySQL≥5.7

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

适用

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

功能说明

350023222402

360023222402

370023222402

380023222402

390023222402

400023222402

410023222402

基于javaweb的SpringBoot蓝天幼儿园管理系统(java+springboot+thymeleaf+html+maven+mysql)

项目介绍

蓝天幼儿园管理系统,共分为三种角色,管理员、家长、教师。

管理员角色具有功能:

系统管理-用户管理、页面管理、角色管理,

校园管理-老师管理、工资管理、物资管理、菜谱管理、班级管理

班级管理-学生管理、公告管理、课程管理

考勤管理-老师考勤、学生考勤、老师考勤统计、学生考勤统计、签到签退

技术栈

  1. Springboot

  2. html+thymeleaf

环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。

2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;

3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;

4.数据库:MySql 8.0版本;

使用说明

运行项目,输入localhost:8081 登录

管理员账户admin 密码123456

教师账号wangjianlin 密码123456

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
	return JSON.toJSONString(xy);
}

@RequestMapping(value = "/wd")
public Object wd(String userId) {
User u = null;

if(userId==null || userId.equals("null")) {
return JSON.toJSONString(u);
}
u = jiaZhangService.getJiaZhang(userId);
return JSON.toJSONString(u);
}

@RequestMapping(value = "/upwd")
public Object upwd(User user) {
user.setUserBirthday(MyUtils.getStringDate(user.getCsrq()));
String result = jiaZhangService.upWd(user);
if(result.equals("1")) {
return "SUCC";
}else {
return "ERR";
}
}

@RequestMapping(value = "/sub")
public Object sub(String userId) {
//获取孩子信息
List<Children> childres = jiaZhangService.getChildren(userId);

if(userId==null || userId.equals("null")) {
return JSON.toJSONString(new Children());
}

if(childres.size()>0) {
return JSON.toJSONString(childres.get(0));
}
return new Children();
}

@RequestMapping(value = "/upsub")
public Object upsub(Children child) {
child.setBirthday(MyUtils.getStringDate(child.getCsrq()));
String result = jiaZhangService.upChild(child);
if(result.equals("1")) {
return "SUCC";
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
private UserRoleService userRoleService;

@Autowired
public UserController(ResultMap resultMap) {
this.resultMap = resultMap;
}

@RequestMapping(value = "/getMessage", method = RequestMethod.GET)
public ResultMap getMessage() {
return resultMap.success().message("您拥有用户权限,可以获得该接口的信息!");
}

@RequestMapping(value = "/editUserPage")
public String editUserPage(String userId, Model model) {
model.addAttribute("manageUser", userId);
if (null != userId) {
User user = userService.selectByPrimaryKey(userId);
model.addAttribute("manageUser", user);
}
return "user/userEdit";
}

@ResponseBody
@RequestMapping("/updateUser")
public String updateUser(User user) {
return userService.updateUser(user);
}

// 任务

/**
* Description: 查询所有管理员 <BR>
*
* @return List<Project>
*/
@ResponseBody
@RequestMapping(value = "/getAdmins")
public List<User> getAdmins() {
return userService.getAdmins();
}

/**
* Description: 查询所有授权用户<BR>
*
* @return List<User>
*/
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
		logger.error("根据班级id删除异常", e);
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
return "ERROR";
}
}



//教师管理

/**
* Method name: teacherPage <BR>
* Description: 教师管理页面 <BR>
*
* @return String<BR>
*/
@RequestMapping(value = "/teaMG")
public String teaMG() {
return "sa/claTea";
}

/**
* Method name: getAllTeacherByLimit <BR>
* Description: 根据条件获取所有教师 <BR>
*
* @param userParameter
* @return Object<BR>
*/
@RequestMapping("/getAllTeacherByLimit")
@ResponseBody
public Object getAllTeacherByLimit(ClaTea teaParameter) {
return teaService.getAllTeaByLimit(teaParameter);
}

/**
* Method name: addTeaPage <BR>
* Description: 增加教师界面 <BR>
*
* @return String<BR>
*/
@RequestMapping(value = "/addTeaPage")
public String addTeaPage(Integer id, Model model) {
model.addAttribute("manageTea", id);
if (null != id) {
ClaTea clatea = teaService.selectByPrimaryKey(id);
model.addAttribute("manageTea", clatea);
}
List<Classes> classes=classService.selectAllClasses();
model.addAttribute("cla", classes);
List<User> teacher=userService.selectAllTea();
model.addAttribute("tea", teacher);
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

/**
* Method name: addTeaPage <BR>
* Description: 增加教师界面 <BR>
*
* @return String<BR>
*/
@RequestMapping(value = "/addTeaPage")
public String addTeaPage(Integer id, Model model) {
model.addAttribute("manageTea", id);
if (null != id) {
ClaTea clatea = teaService.selectByPrimaryKey(id);
model.addAttribute("manageTea", clatea);
}
List<Classes> classes=classService.selectAllClasses();
model.addAttribute("cla", classes);
List<User> teacher=userService.selectAllTea();
model.addAttribute("tea", teacher);
return "sa/claTeaAdd";
}

/**
* Method name: addTea <BR>
* Description: 教师添加 <BR>
*
* @param user
* @return String<BR>
*/
@ResponseBody
@RequestMapping("/addTea")
public String addTea(ClaTea clatea) {
try {

teaService.addClaTea(clatea);
return "SUCCESS";
} catch (Exception e) {
return "ERR";
}
}

/**
* Method name: updateClaTea <BR>
* Description: 更新教师 <BR>
*
* @param user
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

@Controller
@RequestMapping(value = "/jz")
@ResponseBody
public class JiaZhangController {
@Autowired
NoticeService noticeService;
@Autowired
JiaZhangService jiaZhangService;
@Autowired
SignService signService;

@RequestMapping(value = "/notices")
public Object notices() {
List<Notice> notices = new ArrayList<>();
notices = noticeService.getAllNotice();
return JSON.toJSONString(notices);
}

@RequestMapping(value = "/xy")
public Object xy(String userId) {
XiaoYuan xy = new XiaoYuan();

if(userId==null || userId.equals("null")) {
return JSON.toJSONString(xy);
}

//获取当天食物
Foot foot = jiaZhangService.getFoot();

//获取孩子信息
List<Children> childres = jiaZhangService.getChildren(userId);

//获取课程
Course course = null;
Sign qd = null;
Sign qt = null;
User bzr = null;
Classes cl = null;
if(childres.size()!=0) {
course = jiaZhangService.getCourse(childres.get(0).getClassId());
//签到记录
qd = jiaZhangService.getSign(1, childres.get(0).getId()+"");
qt = jiaZhangService.getSign(2, childres.get(0).getId()+"");

//获取班主任信息


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