|  |  |  | 
|---|
|  |  |  | public ISqlSugarClient Db => BaseDal.Db; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private PropertyInfo[] _propertyInfo { get; set; } = null; | 
|---|
|  |  |  | private PropertyInfo[] TProperties | 
|---|
|  |  |  | public PropertyInfo[] TProperties | 
|---|
|  |  |  | { | 
|---|
|  |  |  | get | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  | if (string.IsNullOrEmpty(where)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | // 针对字符串类型的字段使用模糊查询 | 
|---|
|  |  |  | where += $"{searchParametersList[i].Name} like '%{searchParametersList[i].Value}%'"; | 
|---|
|  |  |  | //where += $"{searchParametersList[i].Name} like '%{searchParametersList[i].Value}%'"; | 
|---|
|  |  |  | if (searchParametersList[i].Value.ToLower() == "true" || searchParametersList[i].Value.ToLower() == "false") | 
|---|
|  |  |  | { | 
|---|
|  |  |  | where += $" {searchParametersList[i].Name} = '{searchParametersList[i].Value.ToLower()}'"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | where += $"{searchParametersList[i].Name} like '%{searchParametersList[i].Value}%'"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  | /// <param name="pageData"></param> | 
|---|
|  |  |  | /// <param name="propertyInfo"></param> | 
|---|
|  |  |  | /// <returns></returns> | 
|---|
|  |  |  | private Dictionary<string, OrderByType> GetPageDataSort(PageDataOptions pageData, PropertyInfo[] propertyInfo) | 
|---|
|  |  |  | public Dictionary<string, OrderByType> GetPageDataSort(PageDataOptions pageData, PropertyInfo[] propertyInfo) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | if (!string.IsNullOrEmpty(pageData.Sort)) | 
|---|
|  |  |  | { | 
|---|