基于javaweb的SpringBoot宠物医院预约管理系统设计和实现(java+springboot+mysql+ssm)

运行环境

Java≥8、MySQL≥5.7

开发工具

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

适用

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

功能说明

022124093108

010023312402

020023312402

030023312402

040023312402

050023312402

060023312402

基于javaweb的SpringBoot宠物医院预约管理系统设计和实现(java+springboot+mysql+ssm)

项目使用java SpringMVC、springboot mybatis、layui为核心技术编写

首页登录有可爱的小猫咪:

系统主页主要功能有会员信息、宠物管理、预约管理和统计分析等:

预约列表:

医院管理:

宠物档案管理:

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
52
    model.addAttribute("asCount", asCount);
model.addAttribute("dsCount", dsCount);
System.out.println(pt);
model.addAttribute("pt", pt);
model.addAttribute("ph", ph);
model.addAttribute("pw", pw);
model.addAttribute("pa", pa);

model.addAttribute("mt", mt);
model.addAttribute("mh", mh);
model.addAttribute("mw", mw);
model.addAttribute("ma", ma);
return "tj/assess";
}

/**
* 普通用户预约统计
*/
@RequestMapping("/tjApply")
public String tjApply(Model model) {
Subject subject = SecurityUtils.getSubject();
User user = (User) subject.getPrincipal();
Appointment appointment = new Appointment();
appointment.setUserId(user.getId());
appointment.setPage(1);
appointment.setLimit(99999);
MMGridPageVoBean<Appointment> voBean = (MMGridPageVoBean<Appointment>) appointmentService.getAllByLimit(appointment);
List<Appointment> rows = voBean.getRows();

Integer a1 = 0;
Integer a2 = 0;
Integer a3 = 0;
Integer a4 = 0;
for (Appointment a: rows){
switch (a.getStatus()){
case 1: a1++;break;
case 2: a2++;break;
case 3: a3++;break;
case 4: a4++;break;
}
}
model.addAttribute("a1", a1);
model.addAttribute("a2", a2);
model.addAttribute("a3", a3);
model.addAttribute("a4", a4);

return "tj/tjApply";
}

/**
* 医生预约统计
*/
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
            dest.getParentFile().mkdirs();
}
try {
file.transferTo(dest);
out = response.getWriter();
String filename = "/file/" + fileName;
String s = fileResponse.success(1, fileName, filename, null);
// 返回"图像"选项卡并显示图片 request.getContextPath()为web项目名
out.println(s);
} catch (IOException e) {
String s = fileResponse.error(0, "上传失败!");
// 返回"图像"选项卡并显示图片 request.getContextPath()为web项目名
out.println(s);
}
}
}
package com.demo.controller.user;



/**
* 用户宠物管理
*/
@Controller("UserPetController")
@RequestMapping("/user/pet")
public class UserPetController {
@Autowired
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
        if (t>=tsMin && t<=tsMax){
tsCount.add(" 体温正常");
}else if (t<tsMin){
tsCount.add( " 体温偏低");
}else if (t>tsMax){
tsCount.add( " 体温偏高");
}

if (w>=wsMin && w<=wsMax){
wsCount.add( " 体重正常");
}else if (w<wsMin){
wsCount.add(" 体重偏低");
}else if (w>wsMax){
wsCount.add(" 体重偏高");
}

if (h>=hsMin && h<=hsMax){
hsCount.add(" 身高正常");
}else if (h<hsMin){
hsCount.add( " 身高偏低");
}else if (h>hsMax){
hsCount.add(" 身高偏高");
}

if (a>=asMin && a<=asMax){
asCount.add( " 饭量正常");
}else if (a<asMin){
asCount.add(" 饭量偏低");
}else if (a>asMax){
asCount.add(" 饭量偏高");
}
}
model.addAttribute("pets", rows);
model.addAttribute("tsCount", tsCount);
model.addAttribute("wsCount", wsCount);
model.addAttribute("hsCount", hsCount);
model.addAttribute("asCount", asCount);
model.addAttribute("dsCount", dsCount);
System.out.println(pt);
model.addAttribute("pt", pt);
model.addAttribute("ph", ph);
model.addAttribute("pw", pw);
model.addAttribute("pa", pa);

model.addAttribute("mt", mt);
model.addAttribute("mh", mh);
model.addAttribute("mw", mw);
model.addAttribute("ma", ma);
return "tj/assess";
}

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
	 * Method name: delUserPage <BR>
* Description: 已删除用户列表 <BR>
*
* @return String<BR>
*/
@RequestMapping("/delUserPage")
public String delUserPage() {
return "sa/userDelPage";
}
}
package com.demo.controller.open;




/**
* 登录控制类
*/
@Controller("OpenLogin")
@RequestMapping()
public class LoginController {
@Autowired
private ResultMap resultMap;
@Autowired
private UserService userService;
@Autowired
private PageService pageService;
@Autowired
private UserRoleService userRoleService;

private final Logger logger = LoggerFactory.getLogger(LoginController.class);

/**
* 返回 尚未登陆信息
*/
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
 * Description: 登录页面 <BR>
*
* @return String login.html<BR>
*/
@RequestMapping(value = "/")
public String index(Model model) {
Subject subject = SecurityUtils.getSubject();
User user = (User) subject.getPrincipal();

if (null != user) {
model.addAttribute("user", user);

List<Page> pageList = pageService.getAllRolePageByUserId(user.getId()+"");

model.addAttribute("pageList", pageList);
return "index";
} else {
return "login";
}
}

/**
* Method name: main <BR>
* Description: 进入主页面 <BR>
* index.html
*/
@RequestMapping(value = "/main")
public String main(Model model) {
Subject subject = SecurityUtils.getSubject();
User user = (User) subject.getPrincipal();
if (null != user) {
model.addAttribute("user", user);
} else {
return "login";
}

List<Page> pageList = pageService.getAllRolePageByUserId(user.getId()+"");

model.addAttribute("pageList", pageList);
return "index";
}

/**
* Method name: checkUserPassword <BR>
* Description: 检测旧密码是否正确 <BR>
*


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