lifang 3 hónapja
szülő
commit
1a0cc0e186

+ 2 - 0
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/app/controller/vo/WxDoctorPatientVO.java

@@ -38,5 +38,7 @@ public class WxDoctorPatientVO extends BaseDTO {
     @ApiModelProperty("患者性别")
     private String patientGender;
 
+    @ApiModelProperty("头像链接")
+    private String imageUrl;
 
 }

+ 3 - 1
tr-modules/tr-module-smartFollowUp/src/main/resources/mapper/smart/BizPatientMapper.xml

@@ -16,6 +16,7 @@
         <result property="createBy" column="create_by"/>
         <result property="updateTime" column="update_time"/>
         <result property="updateBy" column="update_by"/>
+        <result property="imageUrl" column="image_url"/>
     </resultMap>
     <select id="selectPatientList" resultMap="PatientAndClinicResult">
         SELECT
@@ -26,6 +27,7 @@
         bcr.patient_name,
         bcr.patient_age,
         bcr.patient_gender,
+        bcr.image_url,
         bp.create_time,
         bp.update_time,
         bp.create_by,
@@ -93,7 +95,7 @@
         bp.update_by as update_by
         FROM
         biz_patient bp
-        LEFT JOIN biz_clinic_room bcr ON bp.current_clinic_id = bcr.ID
+        LEFT JOIN biz_clinic_room bcr ON bp.current_clinic_id = bcr.id
         LEFT JOIN biz_clinic_room_doctor_user bcrmu ON bcr.ID = bcrmu.clinic_room_id
         <where>
             and bp.deleted = 0