|
|
@@ -24,8 +24,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="getPointActivityOverviewByActivityId"
|
|
|
resultType="com.ylx.point.domain.vo.PointActivityOverviewVO">
|
|
|
SELECT
|
|
|
- COUNT(DISTINCT utc.user_id) AS totalParticipants,
|
|
|
- COUNT(DISTINCT CASE WHEN utc.completed_count > 0 THEN utc.user_id END) AS totalCompleted,
|
|
|
+ COUNT(DISTINCT utc.open_id) AS totalParticipants,
|
|
|
+ COUNT(DISTINCT CASE WHEN utc.completed_count > 0 THEN utc.open_id END) AS totalCompleted,
|
|
|
COALESCE(SUM(utc.completed_count), 0) AS totalTaskTimes,
|
|
|
COALESCE(SUM(ul.points), 0) AS totalPoints
|
|
|
FROM `point_user_activity_task_completion` utc
|