张延森 vor 5 Jahren
Ursprung
Commit
0c451284f8
1 geänderte Dateien mit 4 neuen und 7 gelöschten Zeilen
  1. 4
    7
      src/main/resources/mapper/statistic/TaActivityStaticMapper.xml

+ 4
- 7
src/main/resources/mapper/statistic/TaActivityStaticMapper.xml Datei anzeigen

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