package cn.axzo.msg.center.dal.mapper;

import cn.axzo.msg.center.domain.dto.PendingCalendarCodeDTO;
import cn.axzo.msg.center.domain.entity.Todo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Nullable;
import java.util.Date;
import java.util.List;

/**
 * @author yanglin
 */
public interface TodoMapper extends BaseMapper<Todo> {

    List<Todo> queryWorkerCalendar(@Param("calendarCodes") PendingCalendarCodeDTO calendarCodes,
                                   @Param("workspaceId") Long workspaceId,
                                   @Param("selectDate") Date selectDate,
                                   @Param("personId") Long personId,
                                   @Param("isNowDay") boolean isNowDay);

    List<Long> getMigratedBusinessId();

    @Nullable
    Date getTodoLatestUpdateTime(@Param("executorPersonId") Long executorPersonId);

}