修改错误
This commit is contained in:
@ -129,7 +129,7 @@ namespace QYZH.InteractiveMagazine.Repository.Core
|
|||||||
if (entityInfo.PropertyName == "CreatedAt" && (string.IsNullOrWhiteSpace(entityValue) || entityValue == DateTime.MinValue.ToString()))
|
if (entityInfo.PropertyName == "CreatedAt" && (string.IsNullOrWhiteSpace(entityValue) || entityValue == DateTime.MinValue.ToString()))
|
||||||
entityInfo.SetValue(DateTime.Now);//修改CreateTime字段
|
entityInfo.SetValue(DateTime.Now);//修改CreateTime字段
|
||||||
else if (entityInfo.PropertyName == "CreatedBy" && (string.IsNullOrWhiteSpace(entityValue)))
|
else if (entityInfo.PropertyName == "CreatedBy" && (string.IsNullOrWhiteSpace(entityValue)))
|
||||||
entityInfo.SetValue(currnetUserName);//修改创建人字段
|
entityInfo.SetValue(currentUserName);//修改创建人字段
|
||||||
else if (entityInfo.PropertyName == "IsDeleted" && string.IsNullOrWhiteSpace(entityValue))
|
else if (entityInfo.PropertyName == "IsDeleted" && string.IsNullOrWhiteSpace(entityValue))
|
||||||
entityInfo.SetValue("0");//修改CreateTime字段
|
entityInfo.SetValue("0");//修改CreateTime字段
|
||||||
}
|
}
|
||||||
@ -140,7 +140,7 @@ namespace QYZH.InteractiveMagazine.Repository.Core
|
|||||||
if (entityInfo.PropertyName == "UpdatedAt" && (string.IsNullOrWhiteSpace(entityValue) || entityValue == DateTime.MinValue.ToString()))
|
if (entityInfo.PropertyName == "UpdatedAt" && (string.IsNullOrWhiteSpace(entityValue) || entityValue == DateTime.MinValue.ToString()))
|
||||||
entityInfo.SetValue(DateTime.Now);//修改UpdatedTime字段
|
entityInfo.SetValue(DateTime.Now);//修改UpdatedTime字段
|
||||||
else if (entityInfo.PropertyName == "UpdatedBy" && (string.IsNullOrWhiteSpace(entityValue) || entityValue == "0"))
|
else if (entityInfo.PropertyName == "UpdatedBy" && (string.IsNullOrWhiteSpace(entityValue) || entityValue == "0"))
|
||||||
entityInfo.SetValue(currnetUserName);//修改更新人字段
|
entityInfo.SetValue(currentUserName);//修改更新人字段
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return db;
|
return db;
|
||||||
|
|||||||
@ -1751,7 +1751,6 @@ public class UserAnswerTaskService(
|
|||||||
var pagesWithTasks = allTasks
|
var pagesWithTasks = allTasks
|
||||||
.Where(t => secondLevelPageIds.Contains(t.JournalPageId))
|
.Where(t => secondLevelPageIds.Contains(t.JournalPageId))
|
||||||
.Select(t => t.JournalPageId)
|
.Select(t => t.JournalPageId)
|
||||||
.Distinct()
|
|
||||||
.ToHashSet();
|
.ToHashSet();
|
||||||
|
|
||||||
articleCount += pagesWithTasks.Count;
|
articleCount += pagesWithTasks.Count;
|
||||||
|
|||||||
Reference in New Issue
Block a user