This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
namespace AyaNova.Biz
|
||||
{
|
||||
internal static class FilterOptionsFromObjectKey
|
||||
internal static class DEPRECATED_FilterOptionsFromObjectKey
|
||||
{
|
||||
internal static FilterOptions Get(string listKey)
|
||||
internal static DEPRECATED_FilterOptions Get(string listKey)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(listKey))
|
||||
return null;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.Biz
|
||||
{
|
||||
public static class FilterSqlCriteriaBuilder
|
||||
{
|
||||
public static string DataFilterToSQLCriteria(AyaNova.Models.DataFilter dataFilter, FilterOptions filterOptions, long userId)
|
||||
public static string DataFilterToSQLCriteria(AyaNova.Models.DataFilter dataFilter, List<ObjectField> objectFields, long userId)
|
||||
{
|
||||
|
||||
if (string.IsNullOrWhiteSpace(dataFilter.Filter))
|
||||
@@ -38,7 +38,7 @@ namespace AyaNova.Biz
|
||||
tagList = filterItem["value"].ToObject<List<String>>();
|
||||
}
|
||||
|
||||
var dataType = filterOptions.Flds.Find(x => x.Fld == fld).Type;
|
||||
var dataType = objectFields.Find(x => x.Key == fld).DataType;
|
||||
sb.Append("(");
|
||||
sb.Append(DataFilterToColumnCriteria(fld, dataType, opType, val, tagList, userId));
|
||||
if (i < FilterArray.Count - 1)
|
||||
|
||||
Reference in New Issue
Block a user