Browse Source

客户资料显示BUG修复

anderx 7 years ago
parent
commit
e4bf0c2759
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/goafanti/common/mapper/UserMapperExt.xml

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

@@ -1703,7 +1703,7 @@
 			on b.location_city=c1.id left join district_glossory c2 
 			on b.location_area=c2.id left join industry_category d on b.industry = d.id
 			<if test="follow !=null and follow!=''">
-			left join (select aid,uid,contact_type from user_follow where aid= #{aid,jdbcType=VARCHAR} group by uid) e on a.id=e.uid and a.aid=e.aid
+			left join (select aid,uid,contact_type from user_follow where aid= #{aid,jdbcType=VARCHAR} and contact_type=0 GROUP by uid) e on a.id=e.uid and a.aid=e.aid
 			</if>
 			where  a.status=0 
 			and a.information_maintainer = #{aid,jdbcType=VARCHAR}