当前位置:   article > 正文

Java项目:社区医院管理服务系统(java+SpringBoot+Vue+ElementUI+Layui+Mysql)_医院信息管理javaweb+mysql+jdbc+vue-client+element-ui

医院信息管理javaweb+mysql+jdbc+vue-client+element-ui

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

项目介绍

基于SpringBoot Vue的社区医院管理服务系统

角色:管理员、用户、服务人员

管理员:管理员登录系统后,可以对首页、个人中心、用户管理、医生管理、预约医生管理、就诊信息管理、诊疗方案管理、病历信息管理、健康档案管理、费用信息管理、系统管理等内容,进行详细的操作

用户:用户登录进入系统,可以对首页、个人中心、预约医生管理、就诊信息管理、诊疗方案管理、病历信息管理、健康档案管理、费用信息管理等功能模块进行相应操作

医生:医生登录进入社区医院管理服务系统,可以对首页、个人中心、医生管理、预约医生管理、就诊信息管理、诊疗方案管理、病历信息管理、健康档案管理、费用信息管理等功能进行相应操作


环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。
2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;
3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;
4.数据库:MySql 5.7/8.0版本均可;
5.是否Maven项目:是;


技术栈

后端:SpringBoot+Mybaits

前端:Vue+ElementUI+Layui+HTML+CSS+JS


使用说明

项目运行:
1. 使用Navicat或者其它工具,在mysql中创建对应sql文件名称的数据库,并导入项目的sql文件;
2. 使用IDEA/Eclipse/MyEclipse导入项目,导入成功后请执行maven clean;maven install命令,然后运行;
3. 将项目中application.yml配置文件中的数据库配置改为自己的配置;

文档介绍(课题背景与意义、系统实现功能、课题研究现状、系统相关技术、java技术、B/S架构、Mysql介绍、Mysql环境配置、Springboot框架、系统需求分析、系统功能、可行性研究、经济可行性、技术可行性、运行可行性、事件可行性、系统业务过程分析、系统业务过程分析、系统用例图、系统设计、数据库设计、系统整体设计、系统设计思想、系统流程图、系统详情设计、系统功能模块、系统功能模块、管理员功能模块):

 社区医院首页展示:

 社区医院医生管理页面:

 医生详情介绍页面:

社区医院后台登录页面: 

 

 预约医生列表展示:

 

公告信息管理页面展示:

 

 医院管理控制层:

  1. @Controller
  2. public class HospitalController {
  3. @Autowired
  4. private HospitalService hospitalService;
  5. @Autowired
  6. private OfficeService officeService;
  7. @Autowired
  8. private PageUtils pageUtils;
  9. @Autowired
  10. private FavouriteDao favouriteDao;
  11. /**
  12. * 医院主界面(推荐医院)
  13. *
  14. * @return
  15. */
  16. @RequestMapping(value = "/hosIndex", method = RequestMethod.GET)
  17. public String hosIdex(Model model) {
  18. List<Hospital> hospitalRe = hospitalService.findHosByRe();
  19. model.addAttribute("hospital", hospitalRe);
  20. return "hospital/hosIndex";
  21. }
  22. /**
  23. * 医院详情
  24. *
  25. * @return
  26. */
  27. @RequestMapping(value = "/hosInfoShow/{id}", method = RequestMethod.GET)
  28. public String hosInfoShow(Model model, @PathVariable(value = "id") int id,HttpSession session) {
  29. if(session.getAttribute("userInfo") != null){
  30. //如果用户登录
  31. CommonUser commonUser = (CommonUser) session.getAttribute("userInfo");
  32. int isLike = 0;
  33. if(favouriteDao.findFavByuserIdAndHosId(commonUser.getUserId(), id) !=null){
  34. isLike = favouriteDao.findFavByuserIdAndHosId(commonUser.getUserId(), id).getIsLike();
  35. }
  36. model.addAttribute("isLike", isLike);
  37. }
  38. // 通过传入的id返回医院的详细信息
  39. Hospital hospital = hospitalService.findHosById(id);
  40. // 通过医院的名称返回医院科室信息
  41. List<Office> office = officeService.findOfficeByHosName(hospital.getHospitalName());
  42. // 预留通知查询
  43. model.addAttribute("hos", hospital);
  44. model.addAttribute("office", office);
  45. return "hospital/hosInfoShow";
  46. }
  47. /**
  48. * 全部支持预约的医院
  49. *
  50. * @return
  51. */
  52. @RequestMapping(value = "/orderHos/{page}")
  53. public String orderHos(Model model, @PathVariable("page") int page, @ModelAttribute("province") String province,
  54. @ModelAttribute("city") String city, @ModelAttribute("district") String district, Hospital hosp) {
  55. // 将输入条件传回前台
  56. CommonCondition commonCondition = new CommonCondition();
  57. commonCondition.setProvince(province);
  58. commonCondition.setCity(city);
  59. commonCondition.setDistrict(district);
  60. commonCondition.setHospitalName(hosp.getHospitalName());
  61. commonCondition.setHospitalGrade(hosp.getHospitalGrade());
  62. commonCondition.setHospitalNature(hosp.getHospitalNature());
  63. // 设置页面
  64. pageUtils.setCurrentPage(page);
  65. pageUtils.setTotalRecord(hospitalService.findOrderHosNum(province, city, district, hosp));
  66. int start;
  67. if (pageUtils.getCurrentPage() == 0) {
  68. start = 0;
  69. } else {
  70. start = pageUtils.getPageRecord() * (pageUtils.getCurrentPage() - 1);
  71. }
  72. // 查询医院数据
  73. List<Hospital> hospital = hospitalService.findHosByConditon(province, city, district, hosp, start,
  74. pageUtils.getPageRecord());
  75. // 查询医院等级
  76. List<String> hospGrade = hospitalService.findHosOpenGrade();
  77. // 查询医院类型
  78. List<String> hospNature = hospitalService.findHosOpenNature();
  79. model.addAttribute("hospital", hospital);
  80. model.addAttribute("pages", pageUtils);
  81. model.addAttribute("hospGrade", hospGrade);
  82. model.addAttribute("hospNature", hospNature);
  83. // 查询条件
  84. model.addAttribute("commonCondition", commonCondition);
  85. return "hospital/orderHos";
  86. }
  87. /**
  88. * 全部的医院
  89. *
  90. * @return
  91. */
  92. @RequestMapping(value = "/allHos/{page}")
  93. public String allHos(Model model, @PathVariable("page") int page, @ModelAttribute("province") String province,
  94. @ModelAttribute("city") String city, @ModelAttribute("district") String district, Hospital hosp) {
  95. // 将输入条件传回前台
  96. CommonCondition commonCondition = new CommonCondition();
  97. commonCondition.setProvince(province);
  98. commonCondition.setCity(city);
  99. commonCondition.setDistrict(district);
  100. commonCondition.setHospitalName(hosp.getHospitalName());
  101. commonCondition.setHospitalGrade(hosp.getHospitalGrade());
  102. commonCondition.setHospitalNature(hosp.getHospitalNature());
  103. // 设置页面
  104. pageUtils.setCurrentPage(page);
  105. pageUtils.setTotalRecord(hospitalService.findAllHosNum(province, city, district, hosp));
  106. int start;
  107. if (pageUtils.getCurrentPage() == 0) {
  108. start = 0;
  109. } else {
  110. start = pageUtils.getPageRecord() * (pageUtils.getCurrentPage() - 1);
  111. }
  112. // 查询医院数据
  113. List<Hospital> hospital = hospitalService.findAllHosByConditon(province, city, district, hosp, start,
  114. pageUtils.getPageRecord());
  115. // 查询医院等级
  116. List<String> hospGrade = hospitalService.findHosGrade();
  117. // 查询医院类型
  118. List<String> hospNature = hospitalService.findHosNature();
  119. model.addAttribute("hospital", hospital);
  120. model.addAttribute("pages", pageUtils);
  121. model.addAttribute("hospGrade", hospGrade);
  122. model.addAttribute("hospNature", hospNature);
  123. // 查询条件
  124. model.addAttribute("commonCondition", commonCondition);
  125. return "hospital/allHospital";
  126. }
  127. //关注医院
  128. @ResponseBody
  129. @RequestMapping(value = "/favourite", method = RequestMethod.POST)
  130. public Map<String, Object> favourite(Model model,int hospitalId,HttpSession session ) {
  131. //通过session信息得到userid
  132. CommonUser commonUser = (CommonUser) session.getAttribute("userInfo");
  133. int userId = commonUser.getUserId();
  134. int isLike =hospitalService.favourite(userId, hospitalId);
  135. System.out.println(isLike+"*******************************88");
  136. Map<String, Object> rtnMap = new HashMap<String, Object>();
  137. rtnMap.put("isLike", isLike);
  138. return rtnMap;
  139. }
  140. }

 医生管理控制层:

  1. @Controller
  2. public class DoctorController {
  3. @Autowired
  4. private DoctorService doctorService;
  5. @Autowired
  6. private HospitalService hospitalService;
  7. @Autowired
  8. private PageUtils pageUtils;
  9. /**
  10. * 医生主界面(推荐医生)
  11. *
  12. * @return
  13. */
  14. @RequestMapping(value = "/doctorIndex/{page}")
  15. public String officeIdex(Model model, @PathVariable("page") int page) {
  16. // 查询推荐的医院
  17. List<Hospital> hospitalRe = hospitalService.findHosByRe();
  18. // 设置页面
  19. pageUtils.setCurrentPage(page);
  20. pageUtils.setTotalRecord(doctorService.findDoctorByReNum(hospitalRe));
  21. int start;
  22. if (pageUtils.getCurrentPage() == 0) {
  23. start = 0;
  24. } else {
  25. start = pageUtils.getPageRecord() * (pageUtils.getCurrentPage() - 1);
  26. }
  27. Map<String, Object> doctorMap = new HashMap<String, Object>();
  28. doctorMap.put("list", hospitalRe);
  29. doctorMap.put("start", start);
  30. doctorMap.put("size", pageUtils.getPageRecord());
  31. List<Doctor> doctorRe = doctorService.findDoctorByRe(doctorMap);
  32. model.addAttribute("pages", pageUtils);
  33. model.addAttribute("doctorRe", doctorRe);
  34. return "doctor/doctorIndex";
  35. }
  36. /**
  37. * 医生详情
  38. *
  39. * @return
  40. */
  41. @RequestMapping(value = "/doctorInfoShow/{id}", method = RequestMethod.GET)
  42. public String hosInfoShow(Model model, @PathVariable(value = "id") int id) {
  43. Doctor doctor = doctorService.findDoctorById(id);
  44. Hospital hospital = hospitalService.findHosByName(doctor.getHospitalName());
  45. model.addAttribute("hos", hospital);
  46. model.addAttribute("doctor", doctor);
  47. return "doctor/doctorInfoShow";
  48. }
  49. /**
  50. * 全部医生
  51. *
  52. * @return
  53. */
  54. @RequestMapping(value = "/allDoctor/{page}")
  55. public String orderOffcie(Model model, @PathVariable("page") int page, Doctor doctor) {
  56. // 将输入条件传回前台
  57. CommonCondition commonCondition = new CommonCondition();
  58. commonCondition.setHospitalName(doctor.getHospitalName());
  59. commonCondition.setOfficesName(doctor.getOfficesName());
  60. commonCondition.setDoctorName(doctor.getDoctorName());
  61. commonCondition.setDoctorTitle(doctor.getDoctorTitle());
  62. commonCondition.setDoctorDegree(doctor.getDoctorDegree());
  63. commonCondition.setDoctorAdministrative(doctor.getDoctorAdministrative());
  64. pageUtils.setCurrentPage(page);
  65. pageUtils.setTotalRecord(doctorService.findDoctorNum(doctor));
  66. int start;
  67. if (pageUtils.getCurrentPage() == 0) {
  68. start = 0;
  69. } else {
  70. start = pageUtils.getPageRecord() * (pageUtils.getCurrentPage() - 1);
  71. }
  72. List<Doctor> doctorRe = doctorService.findDoctorByCondition(doctor, start, pageUtils.getPageRecord());
  73. // 查询医生的职位
  74. List<String> doctorTitle = doctorService.findDoctorTitle();
  75. List<String> doctorAdministrative = doctorService.findDoctorAdministrative();
  76. List<String> doctorDegree = doctorService.findDoctorDegree();
  77. model.addAttribute("pages", pageUtils);
  78. model.addAttribute("doctorRe", doctorRe);
  79. // 查询条件
  80. model.addAttribute("commonCondition", commonCondition);
  81. // 将查询的医生职称传到前台
  82. model.addAttribute("doctorTitle", doctorTitle);
  83. model.addAttribute("doctorAdministrative", doctorAdministrative);
  84. model.addAttribute("doctorDegree", doctorDegree);
  85. return "doctor/doctor";
  86. }
  87. }

科室管理控制层:

  1. @Controller
  2. public class OfficeController {
  3. @Autowired
  4. private HospitalService hospitalService;
  5. @Autowired
  6. private OfficeService officeService;
  7. @Autowired
  8. private PageUtils pageUtils;
  9. @Autowired
  10. private DoctorService doctorService;
  11. /**
  12. * 科室主界面(推荐科室)
  13. *
  14. * @return
  15. */
  16. @RequestMapping(value = "/officeIndex/{page}")
  17. public String officeIdex(Model model, @PathVariable("page") int page) {
  18. // 查询推荐的医院
  19. List<Hospital> hospitalRe = hospitalService.findHosByRe();
  20. // 设置页面
  21. pageUtils.setCurrentPage(page);
  22. pageUtils.setTotalRecord(officeService.findOfficeByReNum(hospitalRe));
  23. int start;
  24. if (pageUtils.getCurrentPage() == 0) {
  25. start = 0;
  26. } else {
  27. start = pageUtils.getPageRecord() * (pageUtils.getCurrentPage() - 1);
  28. }
  29. Map<String, Object> officeMap = new HashMap<String, Object>();
  30. officeMap.put("list", hospitalRe);
  31. officeMap.put("start", start);
  32. officeMap.put("size", 20);
  33. List<Office> officeRe = officeService.findOfficeByRe(officeMap);
  34. model.addAttribute("pages", pageUtils);
  35. model.addAttribute("officeRe", officeRe);
  36. return "office/officeIndex";
  37. }
  38. /**
  39. * 科室详情
  40. *
  41. * @return
  42. */
  43. @RequestMapping(value = "/officeInfoShow/{id}", method = RequestMethod.GET)
  44. public String hosInfoShow(Model model, @PathVariable(value = "id") int id) {
  45. Office office = officeService.findOfficeById(id);
  46. Hospital hospital = hospitalService.findHosByName(office.getHospitalName());
  47. List<Doctor> doctor = doctorService.findAreaByHosAndOfficeName(office.getHospitalName(),
  48. office.getOfficesName());
  49. model.addAttribute("office", office);
  50. model.addAttribute("hos", hospital);
  51. model.addAttribute("doctor", doctor);
  52. return "office/officeInfoShow";
  53. }
  54. /**
  55. * 全部科室
  56. *
  57. * @return
  58. */
  59. @RequestMapping(value = "/orderOffice/{page}")
  60. public String orderOffcie(Model model, @PathVariable("page") int page, @ModelAttribute("province") String province,
  61. @ModelAttribute("city") String city, @ModelAttribute("district") String district, Office office) {
  62. // 将输入条件传回前台
  63. CommonCondition commonCondition = new CommonCondition();
  64. commonCondition.setHospitalName(office.getHospitalName());
  65. commonCondition.setOfficesName(office.getOfficesName());
  66. // 设置页面
  67. pageUtils.setCurrentPage(page);
  68. pageUtils.setTotalRecord(officeService.findOrderOfficeNum(office));
  69. int start;
  70. if (pageUtils.getCurrentPage() == 0) {
  71. start = 0;
  72. } else {
  73. start = pageUtils.getPageRecord() * (pageUtils.getCurrentPage() - 1);
  74. }
  75. List<Office> officeRe = officeService.findOfficeByConditon(office, start, 20);
  76. model.addAttribute("pages", pageUtils);
  77. model.addAttribute("officeRe", officeRe);
  78. // 查询条件
  79. model.addAttribute("commonCondition", commonCondition);
  80. return "office/orderOffice";
  81. }
  82. }

公告管理控制层: 

  1. @Controller
  2. public class NoticeController {
  3. @Autowired
  4. private NoticeService noticeService;
  5. @Autowired
  6. private PageUtils pageUtils;
  7. /**
  8. * 公告首页
  9. *
  10. * @return
  11. */
  12. @RequestMapping(value = "/noticeIndex/{page}")
  13. public String noticeIndex(Model model, @PathVariable("page") int page) {
  14. // 设置页面
  15. pageUtils.setCurrentPage(page);
  16. pageUtils.setTotalRecord(noticeService.findNoticeByTypeNum());
  17. int start;
  18. if (pageUtils.getCurrentPage() == 0) {
  19. start = 0;
  20. } else {
  21. start = pageUtils.getPageRecord() * (pageUtils.getCurrentPage() - 1);
  22. }
  23. // 查询所有通知
  24. List<Notice> notice = noticeService.findNoticeByType(start, pageUtils.getPageRecord());
  25. System.out.println("*******************************************");
  26. model.addAttribute("notice", notice);
  27. model.addAttribute("pages", pageUtils);
  28. return "notice/noticeIndex";
  29. }
  30. /**
  31. * 通知详情
  32. *
  33. * @return
  34. */
  35. @RequestMapping(value = "/noticeInfo/{id}", method = RequestMethod.GET)
  36. public String hosInfoShow(Model model, @PathVariable(value = "id") int id) {
  37. Notice notice = noticeService.findNoticeById(id);
  38. model.addAttribute("notice", notice);
  39. return "notice/noticeInfo";
  40. }
  41. }

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/566217
推荐阅读
相关标签
  

闽ICP备14008679号