Przeglądaj źródła

update 聊天室更新用户头像

18339543638 3 lat temu
rodzic
commit
aa7818143d

+ 3 - 1
nb-im/src/main/java/com/nb/im/service/dto/ImRoomResult.java

@@ -34,6 +34,9 @@ public class ImRoomResult implements Serializable {
     @ApiModelProperty("病人id")
     private String patientId;
 
+    @ApiModelProperty("病人名称备注")
+    private String patientNamePs;
+
     @ApiModelProperty("病人名称")
     private String patientName;
 
@@ -85,7 +88,6 @@ public class ImRoomResult implements Serializable {
     @ApiModelProperty(value = "更新时间")
     private Date updateTime;
 
-
     @ApiModelProperty(value = "看护人头像")
     private String assistAvatar;
 

+ 3 - 1
nb-im/src/main/resources/mapper/im/ImRoomMapper.xml

@@ -18,6 +18,7 @@
         <result column="payload" property="payload"/>
         <result column="operation_type" property="operationType"/>
         <result column="msg_type" property="msgType"/>
+        <result column="patient_name_ps" property="patientNamePs"/>
         <result column="doctorNickname" property="doctorNickname"/>
         <result column="doctorId" property="doctorId"/>
         <result column="assist_avatar" property="assistAvatar"/>
@@ -32,6 +33,7 @@
         r.id as id,
         r.patient_code as patient_code,
         r.patient_age as patient_age,
+        r.patient_name_ps as patient_name_ps,
         r.patient_name as patient_name,
         r.patient_sex as patient_sex,
         r.manage_type as manage_type,
@@ -96,7 +98,7 @@
     </select>
 
 
-    <select id="maxSort" resultType="Long">
+    <select id="maxSort" resultType="java.lang.Long">
                 SELECT
         MAX( sort )
         FROM