0
我收到以上错误。我也导入了所有必需的文件。谁能帮我这个。方法桶(字符串)是未定义的类型SubmissionRepositoryImpl
public List<ScoreCount> scoreCount(String courseId, String assignmentId){
Aggregation agg = newAggregation(
match(Criteria.where("_id.courseId").is(courseId).and("_id.assignmentId").is(assignmentId)),
bucket("overRollScore").withBoundaries(0, 20, 50, 70, 100).andOutput("score").push().as("gradeCount"));
AggregationResults<ScoreCount> averageScore = mongoTemplate.aggregate(agg, Submission.class, ScoreCount.class);
return averageScore.getMappedResults();
}