我想按2个属性对对象数组进行分组。我怎么能做到这一点?
我得到了这个数组:
[
{
"nome": "Beatrice Mattos",
"apelido": "Beatrice",
"dt_extrato": "2020-05-26T00:00:00",
"dt_inicio": "2020-05-26T15:00:00",
"Servico": "Corte Masculino"
},
{
"nome": "Davi",
"apelido": "Davi",
"dt_extrato": "2020-05-26T00:00:00",
"dt_inicio": "2020-05-26T14:00:00",
"Servico": "Corte Masculino"
},
{
"nome": "Kai",
"apelido": "Martins",
"dt_extrato": "2020-05-26T00:00:00",
"dt_inicio": "2020-05-26T13:30:00",
"Servico": "Barba Completa"
},
{
"nome": "Beatrice Mattos",
"apelido": "Beatrice",
"dt_extrato": "2020-05-26T00:00:00",
"dt_inicio": "2020-05-26T09:30:00",
"Servico": "Corte Masculino"
},
{
"nome": "Beatrice Mattos",
"apelido": "Beatrice",
"dt_extrato": "2020-05-26T00:00:00",
"dt_inicio": "2020-05-26T09:00:00",
"Servico": "Alongamento de Cabelo"
},
{
"nome": "Beatrice Mattos",
"apelido": "Beatrice",
"dt_extrato": "2020-05-26T00:00:00",
"dt_inicio": "2020-05-26T08:00:00",
"Servico": "Corte Masculino"
},
{
"nome": "Estevan Alves",
"apelido": "Estevan",
"dt_extrato": "2020-05-25T00:00:00",
"dt_inicio": "2020-05-25T08:40:00",
"Servico": "Corte Masculino"
},
{
"nome": "Kai",
"apelido": "Martins",
"dt_extrato": "2020-05-25T00:00:00",
"dt_inicio": "2020-05-25T08:30:00",
"Servico": "Corte Masculino"
},
{
"nome": "Estevan Alves",
"apelido": "Estevan",
"dt_extrato": "2020-05-25T00:00:00",
"dt_inicio": "2020-05-25T08:00:00",
"Servico": "Corte Masculino"
}
]
DIEA
相关分类