mongoTemplate.getCollection().find()方法报参数异常

            DBObject param = new BasicDBObject(); // 设置查询条件
            param.put("orgId", orgId);
            param.put("departmentId", entry.getKey());

            DBObject fields = new BasicDBObject();
            fields.put("_id", 0);
            fields.put("momentCurrent", 1);
            fields.put("momentVoltage", 0);

            DBCursor dbCursor = mongoTemplate.getCollection("equipmentMomentStat").find(param, fields);

为啥我的这个DBCursor dbCursor = mongoTemplate.getCollection("equipmentMomentStat").find(param, fields);方法会报错,说这两个参数类型不对了,我看网上好多都是这样子写的啊!求原因