|
@@ -228,7 +228,7 @@ namespace GxPress.Service.Implement.Topic
|
|
|
}
|
|
|
public async Task<string> GetTopicPageSqlAsync(TopicPageSearchRequest request)
|
|
|
{
|
|
|
- var topicTypeValue = GxPress.EnumConst.AllTypeConst.Note.GetHashCode();
|
|
|
+ var topicTypeValue = GxPress.EnumConst.AllTypeConst.TopicNote.GetHashCode();
|
|
|
var sql = $@"SELECT
|
|
|
a.Id,a.Title,a.UserId,a.Content,a.CreatedDate,a.IsTopic,c.ParentId,
|
|
|
(SELECT
|
|
@@ -569,7 +569,7 @@ namespace GxPress.Service.Implement.Topic
|
|
|
var query = Q.NewQuery();
|
|
|
query.Where(nameof(Entity.Middle.Middle.UserId), request.UserId);
|
|
|
query.Where(nameof(Entity.Middle.Middle.AttributeValue), 2);
|
|
|
- query.Where(nameof(Entity.Middle.Middle.FolderType), AllTypeConst.Note.GetHashCode());
|
|
|
+ query.Where(nameof(Entity.Middle.Middle.FolderType), AllTypeConst.TopicNote.GetHashCode());
|
|
|
query.Where(nameof(Entity.Middle.Middle.IsSystemDefault), true);
|
|
|
var isExists = await _middleRepository.ExistsAsync(query);
|
|
|
if (!isExists)
|
|
@@ -581,7 +581,7 @@ namespace GxPress.Service.Implement.Topic
|
|
|
FolderName = "公开",
|
|
|
AttributeValue = 2,
|
|
|
UserId = request.UserId,
|
|
|
- FolderType = AllTypeConst.Note.GetHashCode(),
|
|
|
+ FolderType = AllTypeConst.TopicNote.GetHashCode(),
|
|
|
RoleId = 1,
|
|
|
IsSystemDefault = true
|
|
|
});
|