Skip to content

Commit 36e262c

Browse files
committed
Update mongodb
1 parent 6f8444b commit 36e262c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Asp.NetCore2/SqlSugar.MongoDbCore/ExpToSql/VisitorItems/BinaryExpressionTranslator/ComparisonOperationExpression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private BsonDocument GetOtherResult(string op, string leftValue, BsonValue right
5858
// 三元条件格式: { "$gt": ["$Age", 0] }
5959
return new BsonDocument
6060
{
61-
{ op, new BsonArray { "$" + leftValue, rightValue } }
61+
{ op, new BsonArray {UtilMethods.GetMemberName(leftValue), rightValue } }
6262
};
6363
}
6464
else

0 commit comments

Comments
 (0)