class HotWordsHistoryServiceImpl extends ServiceImpl<HotWordsHistoryMapper, HotWordsHistory> implements HotWordsHistoryService {

    @Autowired
    private HotWordsService hotWordsService;

    @Override
    public List<HotWordsHistory> statistics(HotWordsSearchParams hotWordsSearchParams) {
        if (hotWordsSearchParams.getSearchType().equals(SearchTypeEnum.TODAY.name())) {
            return hotWordsService.getHotWordsVO(hotWordsSearchParams.getTop());
        }
        QueryWrapper queryWrapper = hotWordsSearchParams.queryWrapper();

        queryWrapper.groupBy("keywords");
        queryWrapper.orderByDesc("score");
        queryWrapper.last("limit " + hotWordsSearchParams.getTop());
        List<HotWordsHistory> list = baseMapper.statistics(queryWrapper);
        return list;
    }

    @Override
    public List<HotWordsHistory> queryByDay(Date queryTime) {<FILL_FUNCTION_BODY>}

}

        QueryWrapper queryWrapper = new QueryWrapper();

        Date[] dates = StatisticsDateUtil.getDateArray(queryTime);
        queryWrapper.between("create_time", dates[0], dates[1]);
        return list(queryWrapper);
    
<no_super_class>