| | |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Reflection; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Core.Const; |
| | | using WIDESEA_Core.Enums; |
| | | using WIDESEA_Core.Helper; |
| | |
| | | public int Total { get; set; } |
| | | public string TableName { get; set; } |
| | | public string Sort { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 排序方式 |
| | | /// </summary> |
| | | public string Order { get; set; } |
| | | |
| | | public string Wheres { get; set; } |
| | | public bool Export { get; set; } |
| | | public object Value { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 查询条件 |
| | | /// </summary> |
| | | public List<SearchParameters> Filter { get; set; } |
| | | |
| | | |
| | | |
| | | public string ValidatePageOptions(PropertyInfo[] entityProperties) |
| | | { |
| | |
| | | return where; |
| | | } |
| | | |
| | | |
| | | public Dictionary<string, OrderByType> GetPageDataSort(PropertyInfo[] propertyInfo) |
| | | { |
| | | if (!string.IsNullOrEmpty(Sort)) |
| | |
| | | return new Dictionary<string, OrderByType> { { "CreateDate", Order?.ToLower() == OrderByType.Asc.ToString() ? OrderByType.Asc : OrderByType.Desc } }; |
| | | } |
| | | } |
| | | |
| | | public class SearchParameters |
| | | { |
| | | public string Name { get; set; } |
| | | public string Value { get; set; } |
| | | |
| | | //查询类型:LinqExpressionType |
| | | public string DisplayType { get; set; } |
| | | } |
| | | } |
| | | } |