源码获取:博客首页 "资源" 里下载!

功能介绍:

基于ssm+layui框架的小型医院后台管理系统。简单实现了病人管理、病床管理、员工管理、部门管理、药品管理、仪器管理等基础功能。
整个项目通过maven方式搭建用到的jar包通过maven导入,前端使用搭建好的Layui框架,拿来即用。后端使用SSM+MySQL,后台逻辑实现了分页、级联、多表查询。目前项目基本完成,可重构与扩展

技术栈:

- SSM框架
- Layui框架
- MySQL 5.7 数据库
- Maven搭建
- MD5加密

实现功能:

- 管理员的登录、退出与切换
- 管理员、仪器、药品、部门、员工、病床、病人各模块增删改查
- 个别模块关联查询
- 各个模块数据导出Excel

医生管理控制层:

@Controller
public class DoctorController {@AutowiredDoctorService doctorService;@AutowiredAppointmentService appointmentService;@AutowiredPatientService patientService;@AutowiredDrugsService drugsService;@AutowiredHospitalizationService hospitalizationService;@AutowiredMedicalhistoryService medicalhistoryService;@RequestMapping("/admin/doctorManage")public String doctorManage(HttpServletRequest request,@RequestParam(value="name",required = false) String name,@RequestParam(value="certId",required = false) String certId){request.setAttribute("doctors",doctorService.getAllDoctor(name,certId));return "admin/doctorManage";}@RequestMapping(value = "/admin/doctor/{id}",method = RequestMethod.DELETE)@ResponseBodypublic JSONObject delDoctor(@PathVariable Integer id){JSONObject json=new JSONObject();json.put("message",doctorService.delDoctor(id));return json;}@RequestMapping(value = "/admin/doctor/{id}",method = RequestMethod.GET)public String doctorInfo(@PathVariable Integer id,HttpServletRequest request){request.setAttribute("doctor",doctorService.getDoctor(id));return "admin/info/doctorinfo";}@RequestMapping(value = "/admin/doctor",method = RequestMethod.POST)@ResponseBodypublic JSONObject AddDoctor(@RequestBody Doctor doctor){JSONObject json=new JSONObject();json.put("message",doctorService.addDoctor(doctor));return json;}@RequestMapping(value = "/admin/doctor",method = RequestMethod.PUT)@ResponseBodypublic JSONObject updateDoctor(@RequestBody Doctor doctor){JSONObject json=new JSONObject();json.put("message",doctorService.upDoctor(doctor));return json;}@RequestMapping("/admin/doctorAdd")public String doctorAddPage(){return "admin/add/doctoradd";}@RequestMapping("/doctor/seekMedicalAdvice")public String seekMedicalAdvice(HttpServletRequest request, HttpSession session,@RequestParam(value = "patientname",required = false)String patientname,@RequestParam(value = "time",required = false)String time){Login login=(Login)session.getAttribute("login");Doctor doctor=doctorService.getDoctorByLoginId(login.getId());request.setAttribute("appointments" ,appointmentService.selectByDoctorId(doctor.getId(),patientname,time));return "doctor/seekMedicalAdvice";}@RequestMapping("/doctor/seek/{id}")public String seek(@PathVariable Integer id,HttpServletRequest request){request.setAttribute("patient",patientService.getPatient(id));request.setAttribute("drugs",drugsService.getAllDrugs());return "doctor/seek";}@RequestMapping(value = "/doctor/drug",method = RequestMethod.PUT)@ResponseBodypublic JSONObject drug(@RequestBody Map map){JSONObject json=new JSONObject();Patient patient=new Patient();System.out.println(map);patient.setDrugsids(DrugsUtils.vaild(map));patient.setId(Integer.parseInt((String)map.get("patientid")));json.put("message",patientService.seek(patient));return json;}@RequestMapping(value = "/doctor/zation",method = RequestMethod.POST)@ResponseBodypublic JSONObject zation(@RequestBody Hospitalization hospitalization){JSONObject json=new JSONObject();json.put("message",hospitalizationService.AddHospitalization(hospitalization));return json;}@RequestMapping(value = "/doctor/medicalhistory/{id}")public String medicalhistory(@PathVariable Integer id,HttpServletRequest request){request.setAttribute("medicalhistorys",medicalhistoryService.getMedicalhistoryByPatientId(id));return "doctor/medicalhistory";}@RequestMapping( value = "/doctor/{department}",method = RequestMethod.GET)@ResponseBodypublic JSONObject getDoctorByDepartment(@PathVariable String department){JSONObject json=new JSONObject();json.put("doctors",doctorService.getDoctorByDepartment(department));return json;}}

病人管理控制层:

@Controller
public class PatientController {@AutowiredPatientService patientService;@AutowiredDoctorService doctorService;@AutowiredAppointmentService appointmentService;@AutowiredHospitalizationService hospitalizationService;@AutowiredMedicalhistoryService medicalhistoryService;@RequestMapping("/admin/patientManage")public String patientlist(HttpServletRequest request,@RequestParam(value="name",required = false) String name,@RequestParam(value="certId",required = false) String certId){request.setAttribute("patients",patientService.getAllPatients(name,certId));return "admin/patientManage";}@RequestMapping(value = "/admin/patient/{id}",method = RequestMethod.DELETE)@ResponseBodypublic JSONObject delPatient(@PathVariable Integer id){JSONObject json=new JSONObject();json.put("message",patientService.delPatient(id));return json;}@RequestMapping(value = "/admin/patient/{id}",method = RequestMethod.GET)public String patientInfo(@PathVariable Integer id,HttpServletRequest request){request.setAttribute("patient",patientService.getPatient(id));request.setAttribute("appointments",appointmentService.getPatientMessage(id));request.setAttribute("hospitalizations",hospitalizationService.getPatientMessage(id));request.setAttribute("doctors",doctorService.getAllDoctor());return "admin/info/patientinfo";}@RequestMapping(value = "/admin/patientAdd",method = RequestMethod.GET)public String patientAddPage(){return "admin/add/patientadd";}@RequestMapping(value = "/admin/patient",method = RequestMethod.PUT)@ResponseBodypublic JSONObject patientInfo(@RequestBody Patient patient){JSONObject json=new JSONObject();json.put("message",patientService.updatePatient(patient));return json;}@RequestMapping(value = "/admin/patient",method = RequestMethod.POST)@ResponseBodypublic JSONObject delPatient(@RequestBody Patient patient){JSONObject json=new JSONObject();json.put("message",patientService.addPatient(patient));return json;}@RequestMapping(value = "/patient/medicalhistory")public String medicalhistory(HttpSession session,HttpServletRequest request){Login login=(Login)session.getAttribute("login");Patient patient=patientService.findPatientByLoginId(login.getId());request.setAttribute("medicalhistorys",medicalhistoryService.getMedicalhistoryByPatientId(patient.getId()));return "patient/medicalhistory";}@RequestMapping(value = "/patient/hospitalization")public String hospitalization(HttpSession session,HttpServletRequest request){Login login=(Login)session.getAttribute("login");Patient patient=patientService.findPatientByLoginId(login.getId());request.setAttribute("theLast",hospitalizationService.findTheLastHospitalization(patient.getHospitalizationid()));Hospitalization hospitalization=new Hospitalization();hospitalization.setPatientid(patient.getId());hospitalization.setId(patient.getHospitalizationid());request.setAttribute("others",hospitalizationService.findOtherHospitalization(hospitalization));return "patient/hospitalization";}@RequestMapping(value = "/patient/appointment")public String appointmentInfo(HttpServletRequest request,HttpSession session){Login login=(Login)session.getAttribute("login");Patient patient=patientService.findPatientByLoginId(login.getId());request.setAttribute("patientid",patient.getId());request.setAttribute("doctors",doctorService.getAllDoctor());return "patient/appointment";}@RequestMapping(value = "/patient/appointment",method = RequestMethod.POST)@ResponseBodypublic JSONObject appointment(@RequestBody Appointment appointment){JSONObject json=new JSONObject();Patient patient=new Patient();String message=appointmentService.addAppointment(appointment);patient.setAppointmentid(appointmentService.selectTheLastAppointment(appointment.getPatientid()));patient.setId(appointment.getPatientid());patientService.updateAppointMent(patient);json.put("message",message);return json;}@RequestMapping(value="/patient/search",method=RequestMethod.GET)public String search(){return "patient/search";}
}

药品管理控制层:

@Controller
public class DrugsController {@AutowiredDrugsService drugsService;@RequestMapping("admin/drugsManage")public String drugsManage(HttpServletRequest request,@RequestParam(value="name",required = false) String name,@RequestParam(value="type",required = false) Integer type){Drugs drugs=new Drugs();drugs.setName(name);drugs.setType(type);request.setAttribute("drugs",drugsService.getAllDrugs(drugs));return "/admin/drugsManage";}@RequestMapping(value = "/admin/drug/{id}",method = RequestMethod.DELETE)@ResponseBodypublic JSONObject delDrug(@PathVariable Integer id){JSONObject json=new JSONObject();json.put("message",drugsService.delDrug(id));return json;}@RequestMapping(value = "/admin/drug",method = RequestMethod.POST)@ResponseBodypublic JSONObject addDrug(@RequestBody Drugs drugs){JSONObject json=new JSONObject();json.put("message",drugsService.addDrug(drugs));return json;}@RequestMapping("/admin/drugAdd")public String drugAddPage(){return  "/admin/add/drugadd";}@RequestMapping(value = "/admin/drug/{id}",method = RequestMethod.GET)public String drugInfo(HttpServletRequest request,@PathVariable Integer id) {request.setAttribute("drug",drugsService.getDrug(id));return  "/admin/info/drugsinfo";}@RequestMapping(value = "/admin/drug",method = RequestMethod.PUT)@ResponseBodypublic JSONObject updateDrug(@RequestBody Drugs drugs) {JSONObject json=new JSONObject();json.put("message",drugsService.updateDrug(drugs));return  json;}
}

源码获取:博客首页 "资源" 里下载!

Java项目:医院管理系统(java+SSM+layui+maven+mysql)相关推荐

  1. Java项目:医院管理系统(java+SpringBoot+Layui+Freemaker+maven+mysql)

    源码获取:博客首页 "资源" 里下载! 项目介绍 医院管理系统,分为管理员.医生.病人三种角色: 管理员主要功能包括: 首页.系统管理:医生管理.患者管理.药品管理:预约管理:病史 ...

  2. Java项目:医院管理系统(java+Springboot+ssm+mysql+maven)

    源码获取:博客首页 "资源" 里下载! 一.项目简述 功能:该项目是用springboot+layui+shiro写的医院管理系 统,该系统的业务比较复杂,数据库一共有36张表. ...

  3. Java项目:医院管理系统(java+Springboot+Maven+Mybatis+Vue+Mysql)

    源码获取:博客首页 "资源" 里下载! 一.项目简述 本系统功能包括:医院挂号,退号,缴费,退费,检查申请单开立,科室管理,医生开单,挂号级别,检验项目开立,检查项目开立,医生接诊 ...

  4. Java项目:医院管理系统(java+javaweb+jdbc+Mysql+lw)

    源码获取:博客首页 "资源" 里下载! 功能介绍: 登录.注册.用户/管理员(角色).用户信息管理.科系信息管理.查看所有科系.新增科系信息.删除指定科系.修改科系信息.病房信息管 ...

  5. JAVA毕设项目后勤管理系统(Vue+Mybatis+Maven+Mysql+sprnig+SpringMVC)

    JAVA毕设项目后勤管理系统(Vue+Mybatis+Maven+Mysql+sprnig+SpringMVC) 项目运行 环境配置: Jdk1.8 + Tomcat8.5 + Mysql + HBu ...

  6. JAVA毕设项目固定资产管理系统(Vue+Mybatis+Maven+Mysql+sprnig+SpringMVC)

    JAVA毕设项目固定资产管理系统(Vue+Mybatis+Maven+Mysql+sprnig+SpringMVC) 项目运行 环境配置: Jdk1.8 + Tomcat8.5 + Mysql + H ...

  7. Springboot毕设项目理财管理系统mnl7cjava+VUE+Mybatis+Maven+Mysql+sprnig)

    Springboot毕设项目理财管理系统mnl7cjava+VUE+Mybatis+Maven+Mysql+sprnig) 项目运行 环境配置: Jdk1.8 + Tomcat8.5 + Mysql ...

  8. Springboot毕设项目出租车管理系统qlk13java+VUE+Mybatis+Maven+Mysql+sprnig)

    Springboot毕设项目出租车管理系统qlk13java+VUE+Mybatis+Maven+Mysql+sprnig) 项目运行 环境配置: Jdk1.8 + Tomcat8.5 + Mysql ...

  9. Springboot毕设项目便利店管理系统72ub5java+VUE+Mybatis+Maven+Mysql+sprnig)

    Springboot毕设项目便利店管理系统72ub5java+VUE+Mybatis+Maven+Mysql+sprnig) 项目运行 环境配置: Jdk1.8 + Tomcat8.5 + Mysql ...

最新文章

  1. 系统更新链接服务器超时,Win10系统更新后Dr.com连接认证服务器一直超时如何解决?...
  2. 张亚勤:对于产业来讲,深度学习的黄金时代刚刚开始
  3. 暖通空调系统计量表选型与应用
  4. php join a.id b.id,mysql,sql_MySQL A left join B on B.cid=A.id 左链接查询失败,求解,mysql,sql - phpStudy...
  5. 完美图解教程 Linux环境VNC服务安装、配置与使用
  6. 比较难发音的英语音标音符_音素_英语发音
  7. linux-centos7 常用的基本命令--文件内容查看、硬链接和软链接
  8. GRE over IPSec 隧道配置案例
  9. 防止开源的加拉帕戈斯综合症,系统软件和开源都是手段不是目的
  10. CAN总线基础知识(二)
  11. js中数组常用的方法总结,包括ES6
  12. 关于动态规划,你该了解这些!
  13. alize blue_逆战歌曲大全_2016逆战大厅背景音乐汇总一览_快吧游戏
  14. C++的简单FTP客户端实现(二)编程
  15. Win11家庭版没有本地组策略编辑器怎么办?
  16. cocos creator麻将教程系列(九)—— 幼麟棋牌代码讲解
  17. 常见apn类型说明及配置
  18. 苹果登陆代理方法didCompleteWithAuthorization没有调用,didCompleteWithError没有走
  19. 通过聚合数据API实现快递数据查询-短信验证码-企业核名
  20. Bat调用/弹出文件或文件夹选择对话框

热门文章

  1. Python nose测试大法
  2. Android之ContentProvider
  3. 学生学分信息管理系统-C语言
  4. Excel中插入Word文档图片链接
  5. [openstack swift]0 swift介绍
  6. centos7设置开机为命令行启动
  7. 牛客网数据开发题库_牛客网刷题笔记--数据库
  8. mysql创建三个表相互关联_mysql – 在三个表之间创建关系
  9. MATLAB数据预处理之缺失值插补
  10. autograd-自动求导系统