【发布时间】:2020-05-06 15:43:22
【问题描述】:
我正在尝试获取 transactionId 等于我在代码中的另一个变量的订单号。我的 tolls.booths 集合看起来像这样
在我的代码中,
def boothsException = booths.find([ "pings.loc.transactionId": tollEvent.id, "pings.loc.order":1] as BasicDBObject).iterator()
println boothsException
我收到boothsException = DBCursor{collection=DBCollection{database=DB{name='tolls'}
我基本上想说 get where transactionId = 410527376 并在boothsException (5233423) 中给我那个订单号。
【问题讨论】:
标签: java mongodb groovy mongodb-query mongodb-java