app患者获取接口

master
zhangcl 2 years ago
parent fce83bbcec
commit ac704bb9cd

@ -38,23 +38,7 @@
<!-- 依赖声明 --> <!-- 依赖声明 -->
<dependencyManagement> <dependencyManagement>
<dependencies> <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的依赖配置--> <!-- SpringBoot的依赖配置-->
<dependency> <dependency>

@ -100,7 +100,7 @@ public class AppController extends BaseController
* @param appPatientHospitalDoctor * @param appPatientHospitalDoctor
* @return {@code AjaxResult} * @return {@code AjaxResult}
*/ */
@ApiOperation("患者预约") @ApiOperation("小程序患者预约")
@Log(title = "小程序患者预约", businessType = BusinessType.INSERT) @Log(title = "小程序患者预约", businessType = BusinessType.INSERT)
@GetMapping("/patient/makeAnAppointment") @GetMapping("/patient/makeAnAppointment")
public AjaxResult patientsToMakeAnAppointment(AppPatientHospitalDoctor appPatientHospitalDoctor) public AjaxResult patientsToMakeAnAppointment(AppPatientHospitalDoctor appPatientHospitalDoctor)
@ -208,6 +208,14 @@ public class AppController extends BaseController
return AjaxResult.success(tPatientService.updateTPatient(tPatient)); 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)); return getDataTable(tRecordService.selectTRecordListWithoutResult(recordResultReq));
} }
@ApiOperation("获取患者详细信息") @ApiOperation("小程序获取患者详细信息")
@GetMapping ("/patient/info") @GetMapping ("/patient/info")
public AjaxResult getPatientInfo() { public AjaxResult getPatientInfo() {
return AjaxResult.success(tPatientService.selectTPatientById(getUserId())); return AjaxResult.success(tPatientService.selectTPatientById(getUserId()));

@ -2,7 +2,7 @@
spring: spring:
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.jdbc.Driver driverClassName: com.mysql.cj.jdbc.Driver
druid: druid:
# 主库数据源 # 主库数据源
master: master:

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

Loading…
Cancel
Save