有大神知道 mongo 在不固定条件的情况下怎么切换吗

2019-08-16 13:23:18 +08:00
 jwh199588

{ "_id" : "organization_all", "organizationGroupCaption" : "所有机构", "organizationGroupType" : "5cefb90f5b079a4e6c08c7b7", "filterRule" : [ { "_id" : "areaCode", "mappedId" : "44", "level" : 0, "expression" : "START" } ], "organizationNum" : "46575", "status" : "1", "addRules" : [ { "taskId" : "5d4bdcee8d00793dc4c41711", "respondentIds" : [ "002977050", "003634356", "000713607" ] } ], "removeRules" : [ { "taskId" : "5d4bdcee8d00793dc4c41711", "respondentIds" : [ "000713607", "000727773" ] }, { "taskId" : "5d4bdcee8d00793dc4c4171a", "respondentIds" : [ "006939537", "006939545" ] } ], "_class" : "com.gwssi.stats.organization.entity.OrganizationGroup" } 以上是数据格式 我想将 filterRule 中的数据以 Criteria criteria = Criteria.where("organizationGroupId").is(organizationGroupId); 的格式输出,但是 filterRule.expression 中的条件是不固定的,有没有什么好的办法解决呢

995 次点击
所在节点    程序员
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/592446

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX