//执行批量更新 Query queryUpdate = new Query(); Criteria criteriaUpdate = new Criteria(); queryUpdate.addCriteria(criteriaUpdate.where("_id").in(openDayStatus.getIds())); Update update = Update.update("status", openDayStatus.getStatus()); UpdateResult upsert = mongoTemplate.updateMulti(queryUpdate, update,MongoUtils.getTenantCollName(ParentPrivateController.COLLECTION_NAME)); return R.ok(upsert);