基于javaweb的SpringBoot医院预约挂号系统(java+springboot+thymeleaf+html+maven+layui+mysql)

运行环境

Java≥8、MySQL≥5.7

开发工具

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

适用

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

功能说明

140023092402

150023092402

160023092402

170023092402

基于javaweb的SpringBoot医院预约挂号系统(java+springboot+thymeleaf+html+maven+layui+mysql)

一、项目简述功能包括: 用户分为患者,医生,管理员,患者可进行注册选择医生挂号,选择日期,选择号源,医生可进行接诊,管理员可对用户,医生信息的维护等等功能。

二、项目运行环境配置:

Jdk1.8 + mysql + Eclispe(IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持)

项目技术:

JSP +Spring + SpringBoot + MyBatis + html+ css + JavaScript + JQuery + Ajax + layui+ maven等等  

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

}

*//**
*用户列表
* @return
*//*
@RequestMapping("/userList")
public String userList(Model model) {
List<User> userlist = usertService.selectFull(null);
model.addAttribute("userlist",userlist);
return "behind/admin/userList";
}


*//**
*用户删除
* @return
*//*
@RequestMapping("/userDel")
public String userDel(Model model,Integer id) {
if(id != null){
usertService.deleteByPrimaryKey(id);
}

return "redirect:/admin/userList";
}

*//**
*修改密码
* @return
*//*
@RequestMapping("/adminUptatePassword")
public String adminUptatePassword(Model model,Admin admin,HttpServletRequest request) {
HttpSession session = request.getSession();
Admin ad = (Admin) session.getAttribute("ADMIN");
if(ad != null && admin.getPassword() != null){
admin.setId(ad.getId());
adminService.updateByPrimaryKeySelective(admin);
}
return "redirect:/admin/index";
}
*/

}
package com.hos.hospital.controller;


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
      model.addAttribute("section",section);
return "admin/sectionList";
}

/**
* 科室详情下级列表
*/
@RequestMapping("/sectionBelowList")
public String sectionBelowList(Model model, Section section, Integer id) {
if(section == null) {
section = new Section();
}
section.setType(2);// 2 科室详情
section.setPid(id);
Section se = sectionService.selectByPrimaryKey(id);
List<Section> list = sectionService.selectByExample(section);
model.addAttribute("sectionList",list);
model.addAttribute("section",section);
model.addAttribute("se",se);
return "admin/sectionBelow";
}


/**
* 跳转添加科室界面
*/
@RequestMapping("/sectionAddPage")
public String zuopinList() {
return "admin/sectionAdd";
}

/**
* 跳转添加科室下级界面
*/
@RequestMapping("/sectionAddBelowPage")
public String zuopinList(Model model,Integer id) {
if(id != null) {
Section se = sectionService.selectByPrimaryKey(id);
model.addAttribute("se",se);
}
return "admin/sectionAddBelow";
}



/**
* 跳转修改科室下级界面
*/
@RequestMapping("/sectionBelowUptatePage")
public String sectionBelowUptatePage(Model model,Integer id) {
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
53
  


/**
*查询科室
*/
@RequestMapping(value = "/sectioNameList")
@ResponseBody
public List<Section> sectioNameList(String name) {
Section se = new Section();
se.setName(name);
se.setType(2);
List<Section> sectionlist = sectionService.selectByExample(se);
if(sectionlist.size() > 0) {
//查询全部科室
se.setName(null);
se.setPid(sectionlist.get(0).getPid());
se.setType(2);
sectionlist = sectionService.selectByExample(se);
}
return sectionlist;
}
/**
* 坐诊时间yuyue
*/
@RequestMapping("/doctorTimePage")
public String doctorTimePage(Integer id,Model model) {
if(id != null) {
Doctor doctor = doctorService.selectByPrimaryKey(id);
model.addAttribute("doctor",doctor);
}
return "patient/doctorTime";
}

/**
*医生列表查询
*/
@RequestMapping(value = "/doctorList")
@ResponseBody
public List<Doctor> doctorList(Integer sid) {
Doctor doctor = new Doctor();
doctor.setSid(sid);
List<Doctor> selectDoctor = doctorService.selectDoctor(doctor);
return selectDoctor;
}


/**
*医生列表查询
*/
@RequestMapping(value = "/doctorLike")
@ResponseBody
public List<Doctor> doctorLike(String name) {
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
	
return pageInfo.getList();
}


/**
* @throws ParseException
*/
@RequestMapping(value = "/datatimeGua")
@ResponseBody
public Integer datatimeGua(@RequestParam("datetime")String datetime,@RequestParam("did")Integer did) throws ParseException {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date parse = sdf.parse(datetime);
Messages message = new Messages();
message.setTime(parse);
message.setDid(did);
message.setType(-1);
List<Messages> list = messagesService.selectMessages(message);
return list.size();
}

}
package com.hos.hospital.controller;




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
        session.invalidate();   //session销毁
return "behind/login";
}


*//**
* 管理员修改密码界面
* @return
*//*
@RequestMapping("/adminUptatePage")
public String adminUptatePage(Model model) {

return "behind/admin/adminUptate";
}


*//**
* 商户修改密码界面
* @return
*//*
@RequestMapping("/merchantUptate")
public String merchantUptate(Model model) {
return "behind/merchant/merchantUptate";
}
*/

}
package com.hos.hospital.controller;





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