基于javaweb的SpringBoot医院管理系统(java+springboot+ssm+mysql+maven+thymeleaf+html)

运行环境

Java≥8、MySQL≥5.7

开发工具

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

适用

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

功能说明

340023122402

350023122402

360023122402

370023122402

390023122402

400023122402

基于javaweb的SpringBoot医院管理系统(java+springboot+ssm+mysql+maven+thymeleaf+html)

一、项目简述

功能:该项目是用springboot+layui+shiro写的医院管理系 统,该系统的业务比较复杂,数据库一共有36张表。

项目分为门诊管理、住院管理、系统管理、统计管理、数 据中心、排班管理、仓库管理、药房管理

本系统重点是门诊和住院管理 填写患者的详细信息,如姓名,年龄、手机号、性别、身 份证号、选择科室挂号类型医生、会出来相对的挂号费, 点击提交的时候会判断你输入的各项信息是否正确,如果 该手机号或者该身份证号正在就诊,则会提示该手机号或 者该身份证号正在就诊。挂号页面会根据单选按钮来查询 全部的挂号,当天的挂号和预细勺挂号,并且可以针对当 天的挂号去给用户进行一系列操作,如转入住院,如果该 病人有正在进行的项目则不能转入住院,需要把相关费用 交完后才能转入住院

门诊管理的功能: 用户挂号、处方划价、项目划价、项目缴费、项目检查、 药品缴费、门诊患者库

住院管理的功能: 入院登记、缴费管理、药品记账、项目记账、出院结算

系统管理功能: 菜单管理、角色管理、用户管理、图标管理、数据源监控 管理,其中数据源的登陆账号和密码是:admin/admin

统计管理: 门诊月度统计、住院月度统计、门诊年度统计、住院年度 统计、医生统计、门诊当天统计 数据中心

科室中心管理、医生列表管理、药品产地管理、项目大类 管理、挂号类型管理、仓库管理、经办人管理、供货商管 理、药品分类管理、药品字典管理

排班: 医生排班U里 仓库管理: 入库单管理、库存查询、出库单管理、操作记录管理等

药房管理: 药房详情管理、门诊取药管理、住院取药管理

二、项目运行 

环境配置: Jdk1.8 + mysql + Eclispe (IntelliJ IDEA,Eclispe,MyEclispe,Sts 都支持)

项目技术: JSP +Springboot+ SpringMVC + 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
    public Object selcha(Integer page,Integer limit,Integer perid){
PageHelper.startPage(page, limit);
List<CCashier> selcha = cXiangmuPayService.selcha(perid);
PageInfo pageInfo = new PageInfo(selcha);
Map<String, Object> tableData = new HashMap<String, Object>();
//这是layui要求返回的json数据格式,如果后台没有加上这句话的话需要在前台页面手动设置
tableData.put("code", 0);
tableData.put("msg", "");
//将全部数据的条数作为count传给前台(一共多少条)
tableData.put("count", pageInfo.getTotal());
//将分页后的数据返回(每页要显示的数据)
tableData.put("data", pageInfo.getList());
return tableData;
}
//添加用户项目的检查结果
@RequestMapping("addbing")
@ResponseBody
public Object addbing(CCashier cCashier,Integer reid,String bing,Integer cashier){
cCashier.setReportId(reid);
cCashier.setJie(bing);
cCashier.setCashier(cashier);
Integer addjie = cXiangmuPayService.addjie(cCashier);
return addjie;
}
}
package com.aaa.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


@Controller
@RequestMapping("cao")
public class CreportController {
@Autowired
private CreportService creportService;
//查询所有数据
@RequestMapping("index")
public Object toreport(ReportVo reportVo, Model model, String params, Integer cc, HttpServletRequest request){
reportVo.setCc(cc);
HttpSession session = request.getSession();
//将数据存储到session中
session.setAttribute("ban",cc);
creportService.upddang();
String reportName=params;
reportVo.setReportName(reportName);
List<ReportVo> sel = creportService.sel(reportVo);
model.addAttribute("report",sel);
return "cao/report";
}
//查询所有的科室
@RequestMapping("seldep")
@ResponseBody
public Object seldep(){
List<CDepartments> seldep = creportService.seldep();
return seldep;
}
//查询所有的挂号类型
@RequestMapping("/selreg")
@ResponseBody
public Object selreg(){
List<CRegisteredtype> selreg = creportService.selreg();
return selreg;
}
//查询医生信息
@RequestMapping("seldoctor")
@ResponseBody
public Object seldoctor(CDoctor cDoctor){
Calendar calendar = Calendar.getInstance();
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
public String toMenuLeft() {
return "view/menu/menuLeft";
}

/*
* 跳转加载菜单管理左边的增删改
* */
@RequestMapping("toMenuRight")
public String toMenuRight() {
return "view/menu/menuRight";
}
/*
* 跳转加载角色
* */
@RequestMapping("toLoadAllRole")
public String toLoadAllRole() {
return "view/role/roleManager";
}
/*
* 跳转加载用户
* */
@RequestMapping("toLoadAllUser")
public String toLoadAllUser() {
return "view/user/userManager";
}

/*
* 跳转加载doctor.html
* */
@RequestMapping("toDoctor")
public String toDoctor() {
return "view/center/doctor";
}
/*
* 跳转加载departments.html
* */
@RequestMapping("toDepartments")
public String toDepartments() {
return "view/center/departments";
}
/*
* 跳转加载registeredtype.html
* */
@RequestMapping("toRegisteredType")
public String toRegisteredtype() {
return "view/center/registeredType";
}

/*
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


@Controller
@RequestMapping("prjectType")
public class PrjectTypeController {
@Autowired
private PrjectTypeService prjectTypeService;
/*
* 查询生产项目大类
* */
@RequestMapping("findAllProjecttype")
@ResponseBody
public Object ProjecttypeList(Projecttype projecttype, Integer page, Integer limit){

PageHelper.startPage(page, limit);
List<Projecttype> listAll = prjectTypeService.findAllProjecttype(projecttype);
PageInfo pageInfo = new PageInfo(listAll);
Map<String, Object> tableData = new HashMap<String, Object>();
//这是layui要求返回的json数据格式
tableData.put("code", 0);
tableData.put("msg", "");
//将全部数据的条数作为count传给前台(一共多少条)
tableData.put("count", pageInfo.getTotal());
//将分页后的数据返回(每页要显示的数据)
tableData.put("data", pageInfo.getList());

return tableData;
}
/*
* 添加生产项目大类
* */
@RequestMapping("addProjecttype")
@ResponseBody
public Object addProjecttype(Projecttype projecttype){
int i1 = prjectTypeService.count1(projecttype);
if(i1==0){
int i = prjectTypeService.addProjecttype(projecttype);
if(i==1){
return "添加成功";
}else{
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
    //这是layui要求返回的json数据格式
drugstoresData.put("code", 0);
drugstoresData.put("msg", "");
//将全部数据的条数作为count传给前台(一共多少条)
drugstoresData.put("count", pageInfo.getTotal());
//将分页后的数据返回(每页要显示的数据)
drugstoresData.put("data", pageInfo.getList());
return drugstoresData;
}
//添加一条药品采到报缺单
@RequestMapping("addbaoque")
@ResponseBody
public Integer addbaoque( Baoque baoque) {
Integer selbaoqueName = pharmacyService.selbaoqueName(baoque);//查询报缺单是否已经有此条药品
if(selbaoqueName==0){
int addbaoque =pharmacyService.addbaoque(baoque);//添加药品
return addbaoque;
}else {
int upbaoquenum = pharmacyService.upbaoquenum(baoque);//修改药品数量
return upbaoquenum;
}

}
@RequestMapping("delpharymary")
@ResponseBody
public Integer delpharymary(Ypharmacy ypharmacy,Huishou huishou){
//删除药房此药(回收给库房)
System.out.println("进入回收");
int delpharymacy = pharmacyService.delpharymacy(ypharmacy);
if(delpharymacy==1){
pharmacyService.addhuishou(huishou);
}
System.out.println(delpharymacy);
return delpharymacy;

}
//查询药品仓库
@RequestMapping("selecthuishou")
@ResponseBody
public Object selecthuishou(Huishou huishou, Integer page, Integer limit) {
System.out.print("进去查询药房方法");
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


@Controller
@RequestMapping("liao")
public class LdrugController {
@Autowired
private LdrugService ldrugService;

//跳转药品登记页面
@RequestMapping("/drug")
public String admin(){
return "liao/drug";
}
//跳转取药页面
@RequestMapping("/pharmacy")
public String pharmacy(){
return "liao/pharmacy";
}

//查询药品信息
@RequestMapping("/selDrug")
@ResponseBody
public Object selDrug(Integer page, Integer limit,Lpharmacy lpharmacy){
PageHelper.startPage(page, limit);
List<Lpharmacy> listAll =ldrugService.selDrug(lpharmacy);
PageInfo pageInfo = new PageInfo(listAll);
Map<String, Object> tableData = new HashMap<String, Object>();


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