lifang 3 kuukautta sitten
vanhempi
commit
9fa89edf3f

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

@@ -82,4 +82,7 @@ public class DoctorClinicRoomVO implements Serializable {
 
     @ApiModelProperty("未读消息数量")
     private Long unreadCount;
+
+    @ApiModelProperty("最后更新信息的人员类型")
+    private String lastModifyUserType;
 }

+ 3 - 0
tr-modules/tr-module-smartFollowUp/src/main/resources/mapper/smart/BizClinicRoomMapper.xml

@@ -37,6 +37,7 @@
         <result property="lastPainAssessmentTime" column="last_pain_assessment_time"/>
         <result property="lastAfterQuestionTime" column="last_after_question_time"/>
         <result property="postQuestionGroupId" column="post_question_group_id"/>
+        <result property="unreadCount" column="unread_count"/>
     </resultMap>
 
     <resultMap id="roomAndPatient" type="cn.tr.module.smart.app.controller.vo.DoctorClinicRoomVO">
@@ -62,6 +63,7 @@
         <result property="warnAnalgesicPoor" column="warn_analgesic_poor"/>
         <result property="warnFlow" column="warn_flow"/>
         <result property="unreadCount" column="unread_count"/>
+        <result property="lastModifyUserType" column="last_modify_user_type"/>
     </resultMap>
 
 
@@ -145,6 +147,7 @@
         bih.warn_will_finished as warn_will_finished,
         bih.warn_flow as warn_flow,
         bih.warn_analgesic_poor as warn_analgesic_poor,
+        bcr.last_modify_user_type as last_modify_user_type,
         GREATEST(COALESCE(igu.unread_count, 0), 0) as unread_count
         FROM biz_clinic_room bcr
         join biz_clinic_room_doctor_user bcrmu on bcr.id = bcrmu.clinic_room_id