mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 04:59:34 +08:00
Query decimal to enum bug
This commit is contained in:
parent
b26928407c
commit
03ad0c66c6
@ -346,6 +346,10 @@ namespace SqlSugar
|
||||
{
|
||||
addValue = Convert.ToInt64(addValue);
|
||||
}
|
||||
else if (UtilMethods.GetUnderType(item.PropertyType).IsEnum()&& addValue is decimal)
|
||||
{
|
||||
addValue = Convert.ToInt64(addValue);
|
||||
}
|
||||
result.Add(name, addValue);
|
||||
}
|
||||
}
|
||||
@ -442,6 +446,10 @@ namespace SqlSugar
|
||||
{
|
||||
addItem = addItem.ObjToInt();
|
||||
}
|
||||
else if (prop.PropertyType.IsEnum()&&addItem is decimal)
|
||||
{
|
||||
addItem = Convert.ToInt64(addItem);
|
||||
}
|
||||
result.Add(name, addItem);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user