This commit is contained in:
skx
2020-10-30 19:51:39 +08:00
parent 26dea86945
commit daa1a8fc12

View File

@@ -96,11 +96,6 @@ namespace SqlSugar
batchInsetrSql.AppendLine("SELECT 1 FROM DUAL"); batchInsetrSql.AppendLine("SELECT 1 FROM DUAL");
} }
var result= batchInsetrSql.ToString(); var result= batchInsetrSql.ToString();
if (result.Contains("{SugarSeq:=}"))
{
result = result.Replace("\"{SugarSeq:=}", "");
result = result.Replace("{SugarSeq:=}\"", "");
}
return result; return result;
} }
} }
@@ -113,6 +108,10 @@ namespace SqlSugar
else else
{ {
var type = UtilMethods.GetUnderType(value.GetType()); var type = UtilMethods.GetUnderType(value.GetType());
if (type == UtilConstants.StringType && value.ToString().Contains("{SugarSeq:=}"))
{
return value.ToString().Replace("{SugarSeq:=}", "");
}
if (type == UtilConstants.DateType) if (type == UtilConstants.DateType)
{ {
var date = value.ObjToDate(); var date = value.ObjToDate();