package com.pqs9900.mapper.message;

import com.pqs9900.pojo.message.EventdetailInfo;
import com.pqs9900.pojo.message.MsgInfoDTO;
import com.pqs9900.pojo.message.UserEventDTO;
import org.apache.ibatis.annotations.Param;

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

public interface MessageMapper {
    List<EventdetailInfo> getEventdetailLineId(@Param("start") Date start, @Param("end") Date end, @Param("wavetype") List<Integer> wavetype);

    List<EventdetailInfo> getBaseInfo(@Param("start") Date start, @Param("end") Date end, @Param("wavetype") List<Integer> wavetype);

    void insertMsgInfo(@Param("userId") String userId, @Param("insertTime") Date time, @Param("content") String content, @Param("type") Integer type, @Param("state") Integer state, @Param("msgIndex") String msgIndex);

    String getUserIdByPhone(@Param("phone") String phone);

    List<EventdetailInfo> getAllSendDept();

    List<EventdetailInfo> getEventList(@Param("start") Date start, @Param("end") Date end, @Param("wavetype") List<Integer> wavetype,@Param("linelist")List<Integer> linelist);

    /**
    * @Author chendaofei
    * @Description 获取最新日期
    * @Date 15:39 2020/5/19
    **/
    MsgInfoDTO getLastTime();

    /**
    * @Author chendaofei
    * @Description 查询短信信息列表
    * @Date 9:19 2020/5/20
    **/
    List<MsgInfoDTO> getAllMsgList(@Param("type") Integer type, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    /**
    * @Author chendaofei
    * @Description 假删除已发短信
    * @Date 11:48 2020/5/21
    **/
    Integer deleteMsgList(List<String> list);

    /**
     * getEvendetailList
     * @author cdf
     * @date 2021/3/26
     */
    List<UserEventDTO> getHasSendEvent(@Param("start")Date start,@Param("end")Date end);

    Integer addHasSendEvent(@Param("list") List<UserEventDTO> list);





}
