|
@@ -177,7 +177,7 @@ namespace GxPress.Repository.Implement.Note
|
|
|
sqlStr = "a.ParentId";
|
|
|
sql =
|
|
|
$@"SELECT a.Id,a.MiddleId,a.RoleId,a.ParentId,a.AttributeValue,a.UserId,
|
|
|
- a.CreatedDate,a.IsTop,a.FolderName,a.FolderType,
|
|
|
+ a.CreatedDate,a.IsTop,a.FolderName,a.FolderType,
|
|
|
(SELECT GROUP_CONCAT(SourceName Separator'、') from tede_user_middle where MiddleType={noteTypeId}
|
|
|
and DataSourceId=a.MiddleSonId) as EnjoyUser,
|
|
|
(SELECT
|
|
@@ -307,7 +307,7 @@ namespace GxPress.Repository.Implement.Note
|
|
|
else
|
|
|
sql += $" and a.ParentId={request.FolderId}";
|
|
|
sql +=
|
|
|
- $@" ORDER BY a.IsSystemDefault desc,a.AttributeValue desc,a.IsTop DESC,a.Sort DESC , a.LastModifiedDate DESC";
|
|
|
+ $@" ORDER BY a.IsSystemDefault desc,a.AttributeValue desc,a.IsTop DESC, a.LastModifiedDate DESC";
|
|
|
if (request.Page > 0)
|
|
|
sql += $@" limit {(request.Page - 1) * request.PerPage},{request.PerPage}";
|
|
|
}
|
|
@@ -425,7 +425,7 @@ namespace GxPress.Repository.Implement.Note
|
|
|
else
|
|
|
sql += $" and a.ParentId={request.FolderId}";
|
|
|
sql +=
|
|
|
- $@" ORDER BY a.AttributeValue desc,a.IsTop DESC,a.Sort DESC , a.LastModifiedDate DESC";
|
|
|
+ $@" ORDER BY a.AttributeValue desc,a.IsTop DESC, a.LastModifiedDate DESC";
|
|
|
if (request.Page > 0)
|
|
|
sql += $@" limit {(request.Page - 1) * request.PerPage},{request.PerPage}";
|
|
|
}
|