|
@@ -1039,9 +1039,9 @@ namespace GxPress.Repository.Implement
|
|
|
sqlStr = string.IsNullOrEmpty(sqlStr) ? "" : sqlStr.Remove(sqlStr.Length - 1, 1);
|
|
|
var sql = $@"select * from tede_user where 1=1 ";
|
|
|
if (!string.IsNullOrEmpty(sqlStr))
|
|
|
- sql += " and id in({sqlStr})";
|
|
|
+ sql += $@" and id in({sqlStr})";
|
|
|
if (!string.IsNullOrEmpty(keyword))
|
|
|
- sql += " and (Name like '%{keyword}%' or phone like '%{keyword}%' or Email like '%{keyword}%')";
|
|
|
+ sql += $@" and (Name like '%{keyword}%' or phone like '%{keyword}%' or Email like '%{keyword}%')";
|
|
|
var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
|
|
|
var database = new Database(databaseType, _connectionString);
|
|
|
var connection = database.GetConnection();
|