app患者获取接口

master
zhangcl 2 years ago
parent fce83bbcec
commit ac704bb9cd

@ -38,23 +38,7 @@
<!-- 依赖声明 -->
<dependencyManagement>
<dependencies>
<!-- 添加MySQL数据库驱动依赖包. -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.30</version>
</dependency>
<!-- 添加mybatis依赖 -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.4.5</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.3.1</version>
</dependency>
<!-- SpringBoot的依赖配置-->
<dependency>

@ -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()));

@ -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

@ -18,7 +18,7 @@ ruoyi:
# 开发环境配置
server:
# 服务器的HTTP端口默认为8080
port: 8081
port: 8091
servlet:
# 应用的访问路径
context-path: /

Loading…
Cancel
Save