张延森 5 anni fa
parent
commit
2892f17cf6

+ 7
- 4
src/main/resources/mapper/statistic/TaActivityStaticMapper.xml Vedi File

@@ -1517,8 +1517,9 @@
1517 1517
         ) as person
1518 1518
 
1519 1519
         left join (
1520
-            select count(*) as shareNum, temp.person_id, temp.create_date from (
1521
-                SELECT t.person_id, t.create_date
1520
+<!--            select count(*) as shareNum, temp.person_id, temp.create_date from (-->
1521
+                SELECT t.person_id, count(*) as shareNum
1522
+<!--        t.create_date-->
1522 1523
                 FROM ta_share_count t
1523 1524
                 LEFT JOIN ta_help_activity a ON t.be_share = a.help_activity_id
1524 1525
                 LEFT JOIN ta_share_activity b ON t.be_share = b.share_id
@@ -1537,8 +1538,10 @@
1537 1538
                     and (case when #{activityType} = 'live' then t.tagert_type in ('liveApp', 'livePost') else t.tagert_type = #{activityType}
1538 1539
                     end)
1539 1540
                 </if>
1540
-                order by t.create_date desc limit 999999
1541
-            ) as temp group by temp.person_id order by temp.create_date desc
1541
+
1542
+                group by t.person_id
1543
+<!--                order by t.create_date desc limit 999999-->
1544
+<!--            ) as temp group by temp.person_id order by temp.create_date desc-->
1542 1545
         ) as shareNum on person.person_id = shareNum.person_id
1543 1546
 
1544 1547
         left join (