diff --git a/pom.xml b/pom.xml index edccf7e..6ee3fd5 100644 --- a/pom.xml +++ b/pom.xml @@ -38,23 +38,7 @@ - - - mysql - mysql-connector-java - 5.1.30 - - - - org.mybatis - mybatis - 3.4.5 - - - org.mybatis - mybatis-spring - 1.3.1 - + diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index 2faac88..14be112 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -100,7 +100,7 @@ public class AppController extends BaseController * @param appPatientHospitalDoctor 应用病人医院医生 * @return {@code AjaxResult} */ - @ApiOperation("患者预约") + @ApiOperation("小程序患者预约") @Log(title = "小程序患者预约", businessType = BusinessType.INSERT) @GetMapping("/patient/makeAnAppointment") public AjaxResult patientsToMakeAnAppointment(AppPatientHospitalDoctor appPatientHospitalDoctor) @@ -208,6 +208,14 @@ public class AppController extends BaseController return AjaxResult.success(tPatientService.updateTPatient(tPatient)); } + @ApiOperation("获取患者详细信息") + @GetMapping ("/patient/info/{id}") + public AjaxResult getPatientInfo2(@PathVariable("id") Long id) { + + return AjaxResult.success(tPatientService.selectTPatientById(id)); + } + + /** * 诊断记录列表 * @@ -263,7 +271,7 @@ public class AppController extends BaseController return getDataTable(tRecordService.selectTRecordListWithoutResult(recordResultReq)); } - @ApiOperation("获取患者详细信息") + @ApiOperation("小程序获取患者详细信息") @GetMapping ("/patient/info") public AjaxResult getPatientInfo() { return AjaxResult.success(tPatientService.selectTPatientById(getUserId())); diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml index 18b78db..16a3154 100644 --- a/ruoyi-admin/src/main/resources/application-druid.yml +++ b/ruoyi-admin/src/main/resources/application-druid.yml @@ -2,7 +2,7 @@ spring: datasource: type: com.alibaba.druid.pool.DruidDataSource - driverClassName: com.mysql.jdbc.Driver + driverClassName: com.mysql.cj.jdbc.Driver druid: # 主库数据源 master: @@ -13,9 +13,9 @@ spring: slave: # 从数据源开关/默认关闭 enabled: false - url: - username: - password: + url: + username: + password: # 初始连接数 initialSize: 5 # 最小连接池数量 @@ -35,7 +35,7 @@ spring: testWhileIdle: true testOnBorrow: false testOnReturn: false - webStatFilter: + webStatFilter: enabled: true statViewServlet: enabled: true diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 32a9e8e..391f19e 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -18,7 +18,7 @@ ruoyi: # 开发环境配置 server: # 服务器的HTTP端口,默认为8080 - port: 8081 + port: 8091 servlet: # 应用的访问路径 context-path: /