package com.ruoyi.ibs.task.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.ibs.task.domain.dto.MarketTaskListDTO;
import com.ruoyi.ibs.task.domain.entity.MarketTaskList;
import com.ruoyi.ibs.task.domain.vo.MarketTaskListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 营销任务Mapper接口
 *
 */
@Mapper
public interface MarketTaskListMapper extends BaseMapper<MarketTaskList> {

    void batchInsertMarketTaskList(List<MarketTaskList> batchList);

    List<MarketTaskListVO> selectMarketTaskLists(@Param("dto") MarketTaskListDTO marketTaskListDTO, @Param("username") String username, @Param("deptId") Long deptId);

    List<MarketTaskListVO> selectAllMarketTaskLists(@Param("dto") MarketTaskListDTO marketTaskListDTO, @Param("role") String role, @Param("deptId") Long deptId);

    int updateReadTime(@Param("id") Long id, @Param("username") String username);
}
