添加项目文件。

This commit is contained in:
Zel
2025-01-22 23:31:03 +08:00
parent 1b8ba6771f
commit 2ae76476fb
894 changed files with 774558 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
SELECT
PC.Id,
PC.PageId,
PC.CreatedDate,
PC.UserId,
PC.Body,
U.AccountName as UserName,
U.AccountName as UserNavigation,
P.[Name] as PageName,
@PageSize as PaginationPageSize,
(
SELECT
(Round(Count(0) / (@PageSize + 0.0) + 0.999))
FROM
[Page] as iP
INNER JOIN PageComment as iPC
ON iPC.PageId = iP.Id
WHERE
iP.Navigation = @Navigation
) as PaginationPageCount
FROM
[Page] as P
INNER JOIN PageComment as PC
ON PC.PageId = P.Id
LEFT OUTER JOIN users_db.Profile as U
ON U.UserId = PC.UserId
WHERE
P.Navigation = @Navigation
ORDER BY
PC.CreatedDate DESC
LIMIT @PageSize
OFFSET (@PageNumber - 1) * @PageSize