Bladeren bron

签单客户更换条件显示BUG处理

anderx 7 jaren geleden
bovenliggende
commit
faa198a88a
1 gewijzigde bestanden met toevoegingen van 8 en 8 verwijderingen
  1. 8 8
      src/main/java/com/goafanti/common/mapper/UserMapperExt.xml

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

@@ -245,7 +245,7 @@
 		from
 			(select uid,aid,max(lock_time) as update_time
 		from user_lock_release
-		where  aid= #{aid,jdbcType=VARCHAR}
+		where type=1 and 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
@@ -288,9 +288,9 @@
 		select 
 			count(0)
 		from
-			(select uid,aid,max(update_time) as update_time
-		from user_business 
-		where follow_situation=5 and aid=1
+			(select uid,aid,max(lock_time) as update_time
+		from user_lock_release
+		where type=1 and aid= #{aid,jdbcType=VARCHAR}
 		group by uid)t0
 			<!-- (select uid,max(lock_time) from user_lock_release where aid = #{aid} and type = 1 and status = 0 group by uid)t0 -->
 		inner join
@@ -577,7 +577,7 @@
 		from
 			(select uid,aid,max(lock_time) as update_time
 		from user_lock_release
-		where  aid= #{aid,jdbcType=VARCHAR} 
+		where type=1 and  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
@@ -624,9 +624,9 @@
 		select 
 			count(0)
 		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 type=1 and  aid= #{aid,jdbcType=VARCHAR} 
 		group by uid)t0
 		inner join
 			(select id,aid,share_type,society_tag,identify_name,transfer_time from user where type = 1)t2