——————————DescriptionStart——————————
运行环境
Java≥8、MySQL≥5.7
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明






基于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等等
——————————CodeStart——————————
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>(); tableData.put("code", 0); tableData.put("msg", ""); 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.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"; }
@RequestMapping("toDoctor") public String toDoctor() { return "view/center/doctor"; }
@RequestMapping("toDepartments") public String toDepartments() { return "view/center/departments"; }
@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>(); tableData.put("code", 0); tableData.put("msg", ""); 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
| drugstoresData.put("code", 0); drugstoresData.put("msg", ""); 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>();
|
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=271422272105200ay
https://javayms.pages.dev?id=271422272105200ay