# Hospital_project **Repository Path**: danyanpiwo/Hospital_project ## Basic Information - **Project Name**: Hospital_project - **Description**: 在线医院问诊系统 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 1 - **Created**: 2020-03-31 - **Last Updated**: 2023-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Hospital_springBoot > 在线医院问诊系统 ## 1.项目开发简介 #### 1.1框架简介 ##### 采用springBoot框架 ##### 采用maven构建项目 ##### 采用IDEA开发工具 #### 1.2数据库设计简介 #### 1.3实现功能简介 - admin超级管理员 - [x] 增删改查 普通用户 医生 - [x] 管理系统 - 普通用户 - [x] 登录 - [ ] 注册 - [x] 查询和修改个人信息 病例 - [ ] 查看就诊记录 - [ ] 与医生会话 - [ ] 按照疾病和相关描述检索医生信息 - [ ] 按科室分类显示医生信息 - [ ] 按照医院查询显示医生信息 - 医生 - [ ] 查询和修改个人信息 - [ ] 与病人建立会话 #### SQL语句 - 查找所有分类 ```mysql SELECT COUNT(DISTINCT(CategoryName)) FROM dis_category,disease WHERE dis_category.CategoryName IN( SELECT dis_category.CategoryName FROM disease,dis_category WHERE disease.Dis_CategoryID = dis_category.Dis_CategoryID and DiseaseName != "" ) ``` - 获取所有分类 ```sql ``` - ```sql UPDATE disease a,dis_category b SET a.Dis_CategoryID = b.Dis_CategoryID WHERE b.CategoryName = a.Sub_Category ``` ## 2.创建项目 #### 2.1配置文件目录 - applicationContext.yaml #### 2.2配置 - poe.xml - junit用于测试 - junit-jupiter-api - Spring容器 - mybatis - mybatis-spring - lombok - jstl - mysql-connector-java - commons-dbcp - javaeee-api ```xml org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-test test org.junit.vintage junit-vintage-engine org.springframework.boot spring-boot-starter-jdbc org.springframework.boot spring-boot-starter-thymeleaf org.springframework.boot spring-boot-starter-security 2.2.5.RELEASE org.thymeleaf thymeleaf org.thymeleaf.extras thymeleaf-extras-java8time org.thymeleaf.extras thymeleaf-extras-springsecurity5 io.springfox springfox-swagger2 2.9.2 io.springfox springfox-swagger-ui 2.9.2 mysql mysql-connector-java org.projectlombok lombok 1.16.10 tk.mybatis mapper-spring-boot-starter 2.1.5 ``` - applicationContext.yaml ```yaml #端口 server.port: 8081 spring: #连接数据库 datasource: username: root password: root url: jdbc:mysql://127.0.0.1:3306/doctor?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC driver-class-name: com.mysql.cj.jdbc.Driver #thymeleaf模板引擎 thymeleaf: cache: false ```