|
|
@@ -1702,11 +1702,17 @@
|
|
|
on b.location_province=c.id left join district_glossory c1
|
|
|
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 ==1">
|
|
|
+ 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}
|
|
|
<if test="type !=null and type!=''">
|
|
|
and a.`type`=#{type,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
+ <if test="follow ==1">
|
|
|
+ and e.contact_type=0
|
|
|
+ </if>
|
|
|
<if test="name!=null and name!=''">
|
|
|
and a.nickname like concat('%',#{name,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
@@ -1750,10 +1756,16 @@
|
|
|
select count(0)
|
|
|
from user a left join organization_identity b
|
|
|
on a.id=b.uid
|
|
|
+ <if test="follow ==1">
|
|
|
+ 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}
|
|
|
<if test="type !=null and type!=''">
|
|
|
and a.`type`=#{type,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
+ <if test="follow ==1">
|
|
|
+ and e.contact_type=0
|
|
|
+ </if>
|
|
|
<if test="name!=null and name!=''">
|
|
|
and a.nickname like concat('%',#{name,jdbcType=VARCHAR},'%')
|
|
|
</if>
|