|
|
@ -115,6 +115,8 @@ namespace Shentun.Peis |
|
|
{ |
|
|
{ |
|
|
UptList = (await repository.GetListAsync(o => o.DisplayOrder < entity.DisplayOrder)).OrderByDescending(o => o.DisplayOrder).ToList(); ; |
|
|
UptList = (await repository.GetListAsync(o => o.DisplayOrder < entity.DisplayOrder)).OrderByDescending(o => o.DisplayOrder).ToList(); ; |
|
|
|
|
|
|
|
|
|
|
|
if (UptList.Count > 0) |
|
|
|
|
|
{ |
|
|
int indexnum = entity.DisplayOrder; //原有值
|
|
|
int indexnum = entity.DisplayOrder; //原有值
|
|
|
|
|
|
|
|
|
entity.DisplayOrder = UptList[UptList.Count - 1].DisplayOrder; //修改当前排序值为最小
|
|
|
entity.DisplayOrder = UptList[UptList.Count - 1].DisplayOrder; //修改当前排序值为最小
|
|
|
@ -127,6 +129,7 @@ namespace Shentun.Peis |
|
|
indexnum = dqnum; |
|
|
indexnum = dqnum; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UptList.Add(entity); |
|
|
UptList.Add(entity); |
|
|
@ -603,7 +606,7 @@ namespace Shentun.Peis |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="UserId"></param>
|
|
|
/// <param name="UserId"></param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
private static async Task<string> GetUserNameFromCache( Guid? UserId) |
|
|
|
|
|
|
|
|
private static async Task<string> GetUserNameFromCache(Guid? UserId) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|