1.修改符合条件的数据
如果一个值在A数组中存在,那么修改该数据中B数组,只保留B数组中xxx
db.user.find({account:"csbj"}).pretty()
{"_id" : ObjectId("6139680bde8bcd0001beb194"),"id" : 813,"account" : "csbj","password" : "983d511534abdcbfc3b457c24f8cb1f2","name" : "csbj","sex" : 1,"status" : 2,"tel" : "","phone" : "","resetPWD" : 2,"MediaFusionUser" : false,"mediaCodes" : ["xww","wb","zmdkks","cxzx"],"mediaRoleCodes" : ["wbgly","wzgly"],"roleCodes" : [&#