|
|
@@ -419,7 +419,7 @@
|
|
|
left join district_glossory dg2 on d.location_city = dg2.id left join district_glossory dg3 on d.location_area = dg3.id
|
|
|
left join (select aid,uid,max(lock_time) last_sign_time from user_lock_release group by aid,uid) t0 on a.id=t0.uid and a.aid=t0.aid
|
|
|
left join (select uid,aid,max(create_time) last_follow_time from user_follow group by aid,uid)t1 on a.id=t1.uid and a.aid=t1.aid
|
|
|
- where a.share_type=0 and source !=0
|
|
|
+ where a.type= 1 and a.share_type=0 and source !=0
|
|
|
<if test="power ==0">
|
|
|
and a.aid = #{aid,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -470,7 +470,7 @@
|
|
|
left join district_glossory dg2 on d.location_city = dg2.id left join district_glossory dg3 on d.location_area = dg3.id
|
|
|
left join (select aid,uid,max(lock_time) last_sign_time from user_lock_release group by aid,uid) t0 on a.id=t0.uid and a.aid=t0.aid
|
|
|
left join (select uid,aid,max(create_time) last_follow_time from user_follow group by aid,uid)t1 on a.id=t1.uid and a.aid=t1.aid
|
|
|
- where a.share_type=0 and source !=0
|
|
|
+ where a.type= 1 and a.share_type=0 and source !=0
|
|
|
<if test="power ==0">
|
|
|
and a.aid = #{aid,jdbcType=VARCHAR}
|
|
|
</if>
|