diff --git a/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs b/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs index 49c0a25ee..17fe07051 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs @@ -366,7 +366,14 @@ namespace SqlSugar } else if (UtilMethods.IsNumber(type.Name)) { - return value; + if (value.ObjToString().Contains(",")) + { + return $"'{value}'"; + } + else + { + return value; + } } else {