package com.hotwj.platform.workbench.mapper;

import com.hotwj.platform.workbench.domain.vo.TrainingDailyStatsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface HotTrainingDailyStatsMapper {

    int upsertDailyStats(@Param("statsDate") Date statsDate,
                         @Param("dayEnd") Date dayEnd);

    List<TrainingDailyStatsVo> selectByCompanyAndDateRange(@Param("companyId") Long companyId,
                                                           @Param("startDate") Date startDate,
                                                           @Param("endDate") Date endDate);
}
