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();
}