李昊 4 年之前
父節點
當前提交
63eb97aa6e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gx_api/GxPress/Repository/GxPress.Repository.Implement/UserRepository.cs

+ 1 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/UserRepository.cs

@@ -1012,7 +1012,7 @@ 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 not in({sqlStr})";
+                sql += $@" and id not in({sqlStr})";
             if (!string.IsNullOrEmpty(keyword))
                 sql += $@" and (Name like '%{keyword}%' or phone like '%{keyword}%' or Email like '%{keyword}%')";
             var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);