瀏覽代碼

专家详情关注BUG修改

anderx 7 年之前
父節點
當前提交
50f540df00
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/goafanti/common/mapper/UserIdentityMapper.xml

+ 2 - 2
src/main/java/com/goafanti/common/mapper/UserIdentityMapper.xml

@@ -1231,7 +1231,7 @@ from
 		a.order_no = b.order_no group by b.seller_id
 		a.order_no = b.order_no group by b.seller_id
 		) x on u.id = x.uid 
 		) x on u.id = x.uid 
 	left join( select count(*) as count, to_uid from user_interest group by to_uid) a 
 	left join( select count(*) as count, to_uid from user_interest group by to_uid) a 
-	on u.id = a.to_uid left join( select to_uid from user_interest where from_uid =#{uid,jdbcType=VARCHAR} ) b
+	on u.id = a.to_uid left join( select to_uid from user_interest where from_uid =#{uid,jdbcType=VARCHAR} GROUP by to_uid) b
 	on u.id = b.to_uid 
 	on u.id = b.to_uid 
 	where u.status = 0 and u.source = 1 
 	where u.status = 0 and u.source = 1 
 	and ui.expert = 1 and ui.audit_status = 2
 	and ui.expert = 1 and ui.audit_status = 2
@@ -1276,7 +1276,7 @@ select a.id as uid,a.nickname as username,a.head_portrait_url as personPortraitU
 			left join jt_consult_order b on a.order_no=b.order_no
 			left join jt_consult_order b on a.order_no=b.order_no
 			group by b.seller_id)x on a.id=x.uid
 			group by b.seller_id)x on a.id=x.uid
 		left join (select count(*) as count,to_uid from  user_interest group by to_uid)c on a.id=c.to_uid
 		left join (select count(*) as count,to_uid from  user_interest group by to_uid)c on a.id=c.to_uid
-left join (select to_uid from  user_interest where from_uid='1')d on a.id=d.to_uid
+left join (select to_uid from  user_interest where from_uid= #{uid,jdbcType=VARCHAR} group by to_uid)d on a.id=d.to_uid
 where a.id=#{id,jdbcType=VARCHAR}
 where a.id=#{id,jdbcType=VARCHAR}
 </select>
 </select>
 <select id="appConsultantList" resultType="com.goafanti.app.bo.ExpertsListBo">
 <select id="appConsultantList" resultType="com.goafanti.app.bo.ExpertsListBo">