Changed List to Map for getAllByDate