V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
jwh199588
V2EX  ›  程序员

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

  •  
  •   jwh199588 · Aug 16, 2019 · 1532 views
    This topic created in 2449 days ago, the information mentioned may be changed or developed.

    { "_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 中的条件是不固定的,有没有什么好的办法解决呢

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2444 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 05:11 · PVG 13:11 · LAX 22:11 · JFK 01:11
    ♥ Do have faith in what you're doing.