CheckList: [
{
Date: '2019-01-01',
Num: 1,
RoomId: 1
},
{
Date: '2019-01-02',
Num: 1,
RoomId: 1
},
{
Date: '2019-01-03',
Num: 1,
RoomId: 1
},
{
Date: '2019-01-05',
Num: 1,
RoomId: 1
},
{
Date: '2019-01-03',
Num: 1,
RoomId: 2
},
{
Date: '2019-01-04',
Num: 1,
RoomId: 2
}
],
CheckList2: [
{
Date: '2019-01-01',
Num: 3,
RoomId: 1
},
{
Date: '2019-01-05',
Num: 1,
RoomId: 1
},
{
Date: '2019-01-03',
Num: 2,
RoomId: 2
}
]
Finally I'd like to list the initial data into list2 to how such data, num is the number of days, roomId is room id