package com.ruoyi.ibs.task.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.ibs.task.domain.dto.TaskRecordDTO;
import com.ruoyi.ibs.task.domain.entity.TaskVisitRecord;
import com.ruoyi.ibs.task.domain.vo.VisitRecordListVO;
import com.ruoyi.ibs.task.domain.vo.VisitRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author 吴凯程
 * @Date 2025/6/17
 **/
@Mapper
public interface TaskVisitRecordMapper extends BaseMapper<TaskVisitRecord> {

    List<VisitRecordListVO> getVisitRecordList(@Param("custId") String custId, @Param("deptCode") String deptCode);

    List<VisitRecordListVO> getVisitRecordListByUserName(TaskRecordDTO taskRecordDTO);

    VisitRecordVO getVisitRecord(@Param("recordId") String recordId);

    List<VisitRecordListVO> getVisitRecordListByCampaign(@Param("custId") String custId, @Param("deptCode") String deptCode,@Param("campaignId") String campaignId);

    List<VisitRecordListVO> getVisitRecordListAll(@Param("userName") String userName, @Param("deptId") String deptId, @Param("role") String role);
    List<VisitRecordListVO> getVisitRecordListByPage(Map<String, Object> map);
}
