package com.gic.haoban.manage.service.dao.mapper.chat;

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

import org.apache.ibatis.annotations.Param;

import com.gic.haoban.manage.api.dto.chat.ChatOwnerTotalDTO;
import com.gic.haoban.manage.api.dto.chat.GroupChatPlanOwnerLogDTO;
import com.gic.haoban.manage.api.dto.qdto.chat.GroupChatPlanSearchQDTO;
import com.gic.haoban.manage.service.entity.chat.TabGroupChatPlanOwnerLog;

/**
 * 
 * @ClassName: TabHaobanGroupChatPlanOwnerLogMapper
 * @Description: TODO
 * @Author 徐高华
 * @Date 2022年11月25日 15:29:51
 * @Modify
 * @CopyRight 
 */
public interface GroupChatPlanOwnerLogMapper {

    public int batchInsert(List<TabGroupChatPlanOwnerLog> entity);

    public int update(TabGroupChatPlanOwnerLog entity);

    public void deleteByStaffIds(@Param("planId") Long planId, @Param("staffIdList") List<String> staffIdList);

    public TabGroupChatPlanOwnerLog selectById(Long ownerLogId);

    public void updateSendCount(@Param("id") Long id, @Param("sendCount") int sendCount,
            @Param("failCount") int failCount, @Param("sendTime") Date sendTime);

    public List<GroupChatPlanOwnerLogDTO> listPage(GroupChatPlanSearchQDTO qdto);

    public List<Long> listForTimer(@Param("planId") Long planId);

    public List<TabGroupChatPlanOwnerLog> listForDoPlan(@Param("planId") Long planId, @Param("startItem") int startItem,
            @Param("pageSize") int pageSize);

    public List<ChatOwnerTotalDTO> listOwnerLogPageForWxaTotal(GroupChatPlanSearchQDTO qdto);

    public List<GroupChatPlanOwnerLogDTO> listOwnerLogPageForWxa(GroupChatPlanSearchQDTO qdto);

    public GroupChatPlanOwnerLogDTO getOwnerInfo(@Param("planId")Long planId, @Param("staffId")String staffId, @Param("clerkId")String clerkId, @Param("wxEnterpriseId")String wxEnterpriseId);
}