Browse Source

修复关注列表会显示咨询师(但是如果一个客户又是咨询师又是专家则还有问题)

anderx 8 years ago
parent
commit
b03bb0ddc2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/com/goafanti/common/mapper/DemandMapper.xml

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

@@ -1632,7 +1632,8 @@
   	select y.uid as id,y.username as name ,t.create_time as createTime
 	from user_interest t
 	left join  user_identity y on t.to_uid=y.uid
-	where  from_uid=#{uid,jdbcType=VARCHAR}
+	where expert=1  
+	and from_uid=#{uid,jdbcType=VARCHAR}
   	<if test="page_sql!=null">
 		${page_sql}
 	</if>