【发布时间】:2026-02-06 05:55:01
【问题描述】:
下面是我的firebase 结构。我想检索一个班级的出勤率(从spinner 中选择)和一个主题(从微调器中选择)。我不想从firebase 检索数据。我想要的是每个学生在每个科目中的出席和缺席的数量。请检查我想要的图片。
I want this kind of result.
"attendance":{
"01-01-19":{
"BSCS 1st_A":{
"c++":{
"std1":{
"attendance":"absent",
"id":"std1"
},
"std12":{
"attendance":"present",
"id":"std12"
},
"std2":{
"attendance":"present",
"id":"std2"
},
"std3":{
"attendance":"present",
"id":"std3"
},
"std4":{
"attendance":"absent",
"id":"std4"
}
},
"software engineering":{
"std1":{
"attendance":"present",
"id":"std1"
},
"std12":{
"attendance":"present",
"id":"std12"
},
"std2":{
"attendance":"present",
"id":"std2"
},
"std3":{
"attendance":"absent",
"id":"std3"
},
"std4":{
"attendance":"absent",
"id":"std4"
}
}
}
},
"05-01-19":{
"BSCS 1st_A":{
"calculus":{
"std1":{
"attendance":"present",
"id":"std1"
},
"std12":{
"attendance":"present",
"id":"std12"
},
"std2":{
"attendance":"present",
"id":"std2"
},
"std3":{
"attendance":"absent",
"id":"std3"
},
"std4":{
"attendance":"present",
"id":"std4"
}
}
}
}
【问题讨论】:
标签: java android firebase firebase-realtime-database