基于SSM的医院门诊预约系统

大家好,今天给大家分享一个医院门诊预约系统,2020年4月做的一个项目,基于SSM整合开发。主要分为四个角色:管理员,医院收费人员,医生,病人。

主要有一下功能:注册,登陆、病人信息管理、医生信息管理、收费人员信息管理、处方管理、收费管理、预约、公告管理等。

**

  • 登录页面

**
在这里插入图片描述
**

  • 管理员首页(收费人员、医生、患者是不同的)

**
在这里插入图片描述

**

  • 患者管理,主要看患者信息

**
在这里插入图片描述
**

  • 医生管理

**

在这里插入图片描述

**

  • 预约 可以预约医生看病

**

在这里插入图片描述

**

  • 受理,医生进行受理

**

在这里插入图片描述
**

  • 添加处方,医生看病开药

**
在这里插入图片描述
**

  • 项目采用SSM框架,下面是项目结构

**

在这里插入图片描述
**

  • 数据库分为6张表,管理人员在admin中,患者在user中

**
在这里插入图片描述
**

- springMVC的相关配置

**

<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:mvc="http://www.springframework.org/schema/mvc"
  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:tx="http://www.springframework.org/schema/tx"
  xsi:schemaLocation="http://www.springframework.org/schema/beans 
  http://www.springframework.org/schema/beans/spring-beans-4.3.xsd 
  http://www.springframework.org/schema/mvc 
  http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd 
  http://www.springframework.org/schema/context 
  http://www.springframework.org/schema/context/spring-context-4.3.xsd">
	<!-- 配置包扫描器,扫描@Controller注解的类 -->
	<context:component-scan base-package="com.ssm.mty.controller" />
	<!-- 加载注解驱动 -->
	<mvc:annotation-driven />

	<!--配置静态资源的访问映射,此配置中的文件,将不被前端控制器拦截 -->
	<mvc:resources location="/js/" mapping="/js/**"/>
	<mvc:resources location="/css/" mapping="/css/**"/>
	<mvc:resources location="/fonts/" mapping="/fonts/**"/>
	<mvc:resources location="/images/" mapping="/images/**"/>
	<mvc:resources location="/lib/" mapping="/lib/**"/>
	<mvc:resources location="/layui_exts/" mapping="/layui_exts/**"/>

	<!-- 配置视图解析器 -->
	<bean class=
    "org.springframework.web.servlet.view.InternalResourceViewResolver">
		<property name="prefix" value="/WEB-INF/jsp/" />
		<property name="suffix" value=".jsp" />
	</bean>
</beans>

**

  • 项目采用的分页是pagehelper

**

    /**
     * 分页查询
     * pageIndex 当前页码
     * pageSize  显示条数
     */
    @RequestMapping(value = "/findBook")
    public String findBook(Integer pageIndex, Integer pageSize, Model model,HttpServletRequest request) {
    
    
        HttpSession session = request.getSession();
        if(session.getAttribute("ad") == null){
    
    
            session.setAttribute("msg", "对不起,请登录!");
            return "login";
        }
        PageInfo<Book> pageList = bookService.findPageInfo(pageIndex,pageSize);
        List<Admin> admin = adminService.getAll();
        List<Admin> docList = new ArrayList<Admin>();
        for(int i = 0 ;i<admin.size();i++){
    
    
            if("03".equals(admin.get(i).getType()) ){
    
    
                docList.add(admin.get(i));
            }
        }
        model.addAttribute("pageList",pageList);
        model.addAttribute("docList",docList);
        return "BookList";
    }

好了,上面就是医院预约系统的实现,如果大家有什么问题,可以私信交流学习,我们看到后会尽快回复。

猜你喜欢

转载自blog.csdn.net/mtyedu/article/details/113057837