|
|
|
@ -180,15 +180,28 @@ namespace VOL.Core.BaseProvider
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (searchparam == HtmlElementType.like) item.Value = $"%{item.Value}%";
|
|
|
|
|
|
|
|
|
|
if (searchparam == HtmlElementType.like)
|
|
|
|
|
{
|
|
|
|
|
item.Value = $"%{item.Value}%";
|
|
|
|
|
QuerySql += $" and {searchname} {searchparam} '{item.Value}' ";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if (searchparam == HtmlElementType.StartWith)
|
|
|
|
|
{
|
|
|
|
|
searchparam = HtmlElementType.like;
|
|
|
|
|
item.Value = $"{item.Value}%";
|
|
|
|
|
QuerySql += $" and {searchname} {searchparam} '{item.Value}' ";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QuerySql += $" and {searchname} {searchparam} '{item.Value}' ";
|
|
|
|
|
else
|
|
|
|
|
if (searchparam == "in")
|
|
|
|
|
{
|
|
|
|
|
//searchparam = HtmlElementType.like;
|
|
|
|
|
//item.Value = $"{item.Value}%";
|
|
|
|
|
var _str = item.Value.Replace(",", "','");
|
|
|
|
|
QuerySql += $" and {searchname} in ('{_str}') ";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
QuerySql += $" and {searchname} {searchparam} '{item.Value}' ";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|