|
@@ -59,9 +59,9 @@ export class WorkService {
|
|
|
.select([
|
|
.select([
|
|
|
'COUNT(*) as totalCount',
|
|
'COUNT(*) as totalCount',
|
|
|
'SUM(CASE WHEN status = "published" THEN 1 ELSE 0 END) as publishedCount',
|
|
'SUM(CASE WHEN status = "published" THEN 1 ELSE 0 END) as publishedCount',
|
|
|
- 'CAST(SUM(work.playCount) AS SIGNED BIGINT) as totalPlayCount',
|
|
|
|
|
- 'CAST(SUM(work.likeCount) AS SIGNED BIGINT) as totalLikeCount',
|
|
|
|
|
- 'CAST(SUM(work.commentCount) AS SIGNED BIGINT) as totalCommentCount',
|
|
|
|
|
|
|
+ 'CAST(SUM(work.playCount) AS SIGNED) as totalPlayCount',
|
|
|
|
|
+ 'CAST(SUM(work.likeCount) AS SIGNED) as totalLikeCount',
|
|
|
|
|
+ 'CAST(SUM(work.commentCount) AS SIGNED) as totalCommentCount',
|
|
|
])
|
|
])
|
|
|
.where('work.userId = :userId', { userId });
|
|
.where('work.userId = :userId', { userId });
|
|
|
|
|
|