Sfoglia il codice sorgente

update

Signed-off-by: anderx <312518615@qq.com>
anderx 5 anni fa
parent
commit
eeb3867ef3

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

@@ -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 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 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
 			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">
 		<if test="power ==0">
 			and a.aid = #{aid,jdbcType=VARCHAR}
 			and a.aid = #{aid,jdbcType=VARCHAR}
 		</if>
 		</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 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 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
 			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">
 		<if test="power ==0">
 			and a.aid = #{aid,jdbcType=VARCHAR}
 			and a.aid = #{aid,jdbcType=VARCHAR}
 		</if>
 		</if>