|
|
@@ -243,9 +243,9 @@
|
|
|
c.name as industry,
|
|
|
d.name as adminName
|
|
|
from
|
|
|
- (select uid,aid,max(update_time) as update_time
|
|
|
- from user_business
|
|
|
- where follow_situation=5 and aid=#{aid,jdbcType=VARCHAR}
|
|
|
+ (select uid,aid,max(lock_time) as update_time
|
|
|
+ from user_lock_release
|
|
|
+ where aid= #{aid,jdbcType=VARCHAR}
|
|
|
group by uid)t0
|
|
|
left join
|
|
|
(select uid,aid,max(create_time) as last_follow_time from user_follow where aid =#{aid,jdbcType=VARCHAR} group by uid)t1
|
|
|
@@ -415,7 +415,7 @@
|
|
|
left join
|
|
|
(select uid,aid,max(create_time) as last_follow_time from user_follow where aid = #{aid} group by uid)t1
|
|
|
on t0.id = t1.uid left join
|
|
|
- (select aid,uid,max(lock_time) as last_sign_time from user_lock_release where aid = '1' group by uid)t2
|
|
|
+ (select aid,uid,max(lock_time) as last_sign_time from user_lock_release where aid = #{aid} group by uid)t2
|
|
|
on t0.id = t2.uid
|
|
|
left join organization_identity b on t0.id = b.uid
|
|
|
left join district_glossory dg1 on b.location_province = dg1.id
|
|
|
@@ -575,9 +575,9 @@
|
|
|
c.name as industry,
|
|
|
d.name as adminName
|
|
|
from
|
|
|
- (select uid,aid,max(update_time) as update_time
|
|
|
- from user_business
|
|
|
- where follow_situation=5 and aid= #{aid,jdbcType=VARCHAR}
|
|
|
+ (select uid,aid,max(lock_time) as update_time
|
|
|
+ from user_lock_release
|
|
|
+ where aid= #{aid,jdbcType=VARCHAR}
|
|
|
group by uid)t0
|
|
|
left join
|
|
|
(select uid,aid,max(create_time) as last_follow_time from user_follow where aid = #{aid,jdbcType=VARCHAR} group by uid)t1
|
|
|
@@ -585,7 +585,7 @@
|
|
|
inner join
|
|
|
(select id,aid,share_type,society_tag,identify_name,transfer_time from user where type = 1)t2
|
|
|
on t0.uid = t2.id
|
|
|
- left join (select aid,uid,max(lock_time) as last_sign_time from user_lock_release where aid = '1' group by uid)t3
|
|
|
+ left join (select aid,uid,max(lock_time) as last_sign_time from user_lock_release where aid = #{aid,jdbcType=VARCHAR} group by uid)t3
|
|
|
on t0.uid = t3.uid
|
|
|
left join organization_identity b on t0.uid = b.uid
|
|
|
left join district_glossory dg1 on b.location_province = dg1.id
|