|
@@ -105,7 +105,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,
|
|
|
|
|
|
|
+ bqg.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,
|
|
@@ -122,6 +122,7 @@
|
|
|
left join ( SELECT *, ROW_NUMBER() OVER (PARTITION BY clinic_id ORDER BY answer_time DESC) as rn FROM biz_question_answer ) as bqa
|
|
left join ( SELECT *, ROW_NUMBER() OVER (PARTITION BY clinic_id ORDER BY answer_time DESC) as rn FROM biz_question_answer ) as bqa
|
|
|
on bqa.clinic_id = bcr.id and rn = 1
|
|
on bqa.clinic_id = bcr.id and rn = 1
|
|
|
left join biz_dept as bd on bd.id=bcr.dept_id
|
|
left join biz_dept as bd on bd.id=bcr.dept_id
|
|
|
|
|
+ left join biz_question_group as bqg on bqg.id=bd.group_id
|
|
|
left join (select * from im_group_user where user_id= #{query.userId,jdbcType=VARCHAR}) as igu on igu.group_id=bcr.id
|
|
left join (select * from im_group_user where user_id= #{query.userId,jdbcType=VARCHAR}) as igu on igu.group_id=bcr.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}
|