소스 검색

fix 聊天室没有病人性别
add 拉取his时添加忽略his是在在线参数

18339543638 3 년 전
부모
커밋
0037cab94e

+ 4 - 0
nb-service/app-msg/src/main/java/com/nb/app/msg/entity/AppConsultEntity.java

@@ -49,6 +49,10 @@ public class AppConsultEntity  extends GenericEntity<String> {
     @NotNull(message = "咨询医生id不能为空",groups = Insert.class)
     private String doctorId;
 
+    @ApiModelProperty(value = "咨询医生姓名")
+    @TableField(exist = false)
+    private String doctorNickName;
+
     @ApiModelProperty(value = "问题类型",required = true)
     @NotNull(message = "问题类型不能为空",groups = Insert.class)
     private String type;

+ 1 - 0
nb-service/app-msg/src/main/java/com/nb/app/msg/service/LocalAppConsultService.java

@@ -52,6 +52,7 @@ public class LocalAppConsultService extends BaseService<AppConsultMapper, AppCon
                         .patientSex(entity.getPatientSex())
                         .patientAge(entity.getPatientAge())
                         .receiverId(entity.getDoctorId())
+                        .receiverName(entity.getDoctorNickName())
                         .payload(entity.getId())
                         .extend(entity.getId())
                         .build()