diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java b/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java
index ae1c3ec..01bbd41 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java
@@ -65,7 +65,7 @@ public class SwaggerConfig
/* 设置安全模式,swagger可以设置访问token */
.securitySchemes(securitySchemes())
.securityContexts(securityContexts())
- .pathMapping(pathMapping);
+ .pathMapping("");
}
/**
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/TDoctor.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TDoctor.java
index a56f960..8f4bf06 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/TDoctor.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TDoctor.java
@@ -22,6 +22,10 @@ public class TDoctor extends BaseEntity
@Excel(name = "腾讯openid")
private String openId;
+ /** 用户ID */
+ @Excel(name = "用户ID")
+ private Long userId;
+
/** 编号 */
@Excel(name = "编号")
private String identifier;
@@ -58,6 +62,10 @@ public class TDoctor extends BaseEntity
@Excel(name = "简介")
private String introduction;
+ /** 职业医师照片路径 */
+ @Excel(name = "职业医师照片路径")
+ private String medicalLicense;
+
/** 医院 */
@Excel(name = "医院")
private Long hospitalId;
@@ -83,6 +91,15 @@ public class TDoctor extends BaseEntity
{
return openId;
}
+ public void setUserId(Long userId)
+ {
+ this.userId = userId;
+ }
+
+ public Long getUserId()
+ {
+ return userId;
+ }
public void setIdentifier(String identifier)
{
this.identifier = identifier;
@@ -164,6 +181,15 @@ public class TDoctor extends BaseEntity
{
return introduction;
}
+ public void setMedicalLicense(String medicalLicense)
+ {
+ this.medicalLicense = medicalLicense;
+ }
+
+ public String getMedicalLicense()
+ {
+ return medicalLicense;
+ }
public void setHospitalId(Long hospitalId)
{
this.hospitalId = hospitalId;
@@ -188,6 +214,7 @@ public class TDoctor extends BaseEntity
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("openId", getOpenId())
+ .append("userId", getUserId())
.append("identifier", getIdentifier())
.append("name", getName())
.append("phone", getPhone())
@@ -197,6 +224,7 @@ public class TDoctor extends BaseEntity
.append("title", getTitle())
.append("speciality", getSpeciality())
.append("introduction", getIntroduction())
+ .append("medicalLicense", getMedicalLicense())
.append("hospitalId", getHospitalId())
.append("delFlag", getDelFlag())
.append("createTime", getCreateTime())
diff --git a/ruoyi-system/src/main/resources/mapper/system/TDoctorMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TDoctorMapper.xml
index b62ee06..ba4addb 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TDoctorMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TDoctorMapper.xml
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+
@@ -16,6 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+
@@ -23,13 +25,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- select id, open_id, identifier, name, phone, sex, age, marriage, title, speciality, introduction, hospital_id, del_flag, create_time, update_time from t_doctor
+ select id, open_id, user_id, identifier, name, phone, sex, age, marriage, title, speciality, introduction, medical_license, hospital_id, del_flag, create_time, update_time from t_doctor
@@ -52,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
insert into t_doctor
open_id,
+ user_id,
identifier,
name,
phone,
@@ -61,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
title,
speciality,
introduction,
+ medical_license,
hospital_id,
del_flag,
create_time,
@@ -68,6 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{openId},
+ #{userId},
#{identifier},
#{name},
#{phone},
@@ -77,6 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{title},
#{speciality},
#{introduction},
+ #{medicalLicense},
#{hospitalId},
#{delFlag},
#{createTime},
@@ -88,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update t_doctor
open_id = #{openId},
+ user_id = #{userId},
identifier = #{identifier},
name = #{name},
phone = #{phone},
@@ -97,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
title = #{title},
speciality = #{speciality},
introduction = #{introduction},
+ medical_license = #{medicalLicense},
hospital_id = #{hospitalId},
del_flag = #{delFlag},
create_time = #{createTime},