Synchronization code

This commit is contained in:
sunkaixuan
2024-04-29 12:09:54 +08:00
parent de44e7224b
commit 9e5c592a54
2 changed files with 9 additions and 2 deletions

View File

@@ -270,7 +270,14 @@ namespace SqlSugar
private string GetJson(object memberName1, object memberName2, bool isLast) private string GetJson(object memberName1, object memberName2, bool isLast)
{ {
return $"{memberName1}->\"$.{memberName2}\""; if (memberName1?.ToString()?.Contains("->") == true)
{
return $"{memberName1.ToString().TrimEnd('"')}.{memberName2}\"";
}
else
{
return $"{memberName1}->\"$.{memberName2}\"";
}
} }
public override string JsonArrayAny(MethodCallExpressionModel model) public override string JsonArrayAny(MethodCallExpressionModel model)

View File

@@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>SqlSugarCore</id> <id>SqlSugarCore</id>
<version>5.1.4.154-preview08</version> <version>5.1.4.154-preview09</version>
<authors>sunkaixuan</authors> <authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners> <owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl> <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>