|
@@ -26,6 +26,7 @@
|
|
|
<result property="doctorNickname" column="doctor_nickname"/>
|
|
<result property="doctorNickname" column="doctor_nickname"/>
|
|
|
<result property="lastPainAssessmentTime" column="last_pain_assessment_time"/>
|
|
<result property="lastPainAssessmentTime" column="last_pain_assessment_time"/>
|
|
|
<result property="lastAfterQuestionTime" column="last_after_question_time"/>
|
|
<result property="lastAfterQuestionTime" column="last_after_question_time"/>
|
|
|
|
|
+ <result property="postQuestionGroupId" column="post_question_group_id"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<resultMap id="roomAndPatient" type="cn.tr.module.smart.app.controller.vo.DoctorClinicRoomVO">
|
|
<resultMap id="roomAndPatient" type="cn.tr.module.smart.app.controller.vo.DoctorClinicRoomVO">
|
|
@@ -84,6 +85,7 @@
|
|
|
bqa.answer_time as last_modify_question_time,
|
|
bqa.answer_time as last_modify_question_time,
|
|
|
su.id as doctor_id,
|
|
su.id as doctor_id,
|
|
|
su.nickname as doctor_nickname,
|
|
su.nickname as doctor_nickname,
|
|
|
|
|
+ bd.group_id as post_question_group_id,
|
|
|
bcr.image_url as image_url,
|
|
bcr.image_url as image_url,
|
|
|
bp.new_human as new_human,
|
|
bp.new_human as new_human,
|
|
|
bp.card_no as card_no,
|
|
bp.card_no as card_no,
|
|
@@ -96,6 +98,7 @@
|
|
|
left join biz_clinic_room_doctor_user as bcrmu on bcrmu.clinic_room_id = bcr.id
|
|
left join biz_clinic_room_doctor_user as bcrmu on bcrmu.clinic_room_id = bcr.id
|
|
|
left join sys_user as su on bcrmu.user_id = su.id
|
|
left join sys_user as su on bcrmu.user_id = su.id
|
|
|
left join biz_question_answer as bqa on bqa.clinic_id = bcr.id
|
|
left join biz_question_answer as bqa on bqa.clinic_id = bcr.id
|
|
|
|
|
+ left join biz_dept as bd on bd.id=bcr.dept_id
|
|
|
<where>
|
|
<where>
|
|
|
and bcr.deleted=0 and bcrwu.wx_user_id = #{query.userId}
|
|
and bcr.deleted=0 and bcrwu.wx_user_id = #{query.userId}
|
|
|
<if test="query.patientCode != null and query.patientCode != ''">
|
|
<if test="query.patientCode != null and query.patientCode != ''">
|