|
@@ -337,12 +337,12 @@ namespace GxPress.Service.Implement.Notice
|
|
|
var result = await _noticeRepository.GetNoticeListPageAsync(request);
|
|
|
foreach (var item in result.Items)
|
|
|
{
|
|
|
- if (item.UserId == request.UserId)
|
|
|
- item.IsAdmin = true;
|
|
|
+ item.IsAdmin = item.UserId == request.UserId;
|
|
|
var typeValueIds = new List<int>{AllTypeConst.MyChecked.GetHashCode()
|
|
|
,AllTypeConst.MyCc.GetHashCode(),AllTypeConst.MySubmitted.GetHashCode()};
|
|
|
if (typeValueIds.Contains(item.TypeValue))
|
|
|
{
|
|
|
+ item.IsAdmin = item.IsFlowAdmin;
|
|
|
item.TodoId = item.SonId;
|
|
|
item.MiddleId = item.SourceId;
|
|
|
//item.UserName = item.SendUserName;
|