update 修改区域排序
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using Ewide.Core.Service.Area.Dto;
|
using Ewide.Core.Extension;
|
||||||
|
using Ewide.Core.Service.Area.Dto;
|
||||||
using Furion.DatabaseAccessor;
|
using Furion.DatabaseAccessor;
|
||||||
using Furion.DatabaseAccessor.Extensions;
|
using Furion.DatabaseAccessor.Extensions;
|
||||||
using Furion.DependencyInjection;
|
using Furion.DependencyInjection;
|
||||||
@@ -94,11 +95,11 @@ namespace Ewide.Core.Service.Area
|
|||||||
public async Task<dynamic> QueryAreaCodePageList(AreaCodeInput input)
|
public async Task<dynamic> QueryAreaCodePageList(AreaCodeInput input)
|
||||||
{
|
{
|
||||||
var AreaCodes = await _areaCodeRep.DetachedEntities
|
var AreaCodes = await _areaCodeRep.DetachedEntities
|
||||||
.Where(input.LevelType.HasValue ,a=>a.LevelType == input.LevelType)
|
.Where(input.LevelType.HasValue, a => a.LevelType == input.LevelType)
|
||||||
.Where(!string.IsNullOrEmpty(input.Code),a=>a.Code.StartsWith(input.Code))
|
.Where(!string.IsNullOrEmpty(input.Code), a => a.Code.StartsWith(input.Code))
|
||||||
.Where(!string.IsNullOrEmpty(input.ShowCode),a =>a.ShowCode.StartsWith(input.ShowCode))
|
.Where(!string.IsNullOrEmpty(input.ShowCode), a => a.ShowCode.StartsWith(input.ShowCode))
|
||||||
.Where(!string.IsNullOrEmpty(input.Name),a =>a.Name.StartsWith(input.Name))
|
.Where(!string.IsNullOrEmpty(input.Name), a => a.Name.StartsWith(input.Name))
|
||||||
.Select(p => p.Adapt<SysAreaCode>()).ToPagedListAsync(input.PageNo, input.PageSize);
|
.ToPageData(input);
|
||||||
return XnPageResult<SysAreaCode>.PageResult(AreaCodes);
|
return XnPageResult<SysAreaCode>.PageResult(AreaCodes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user