package com.artfess.xqxt.meeting.dao;

import com.artfess.xqxt.meeting.manager.MeetingUserManager;
import com.artfess.xqxt.meeting.model.MeetingUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface MeetingUserDao extends BaseMapper<MeetingUser> {
    //通过用户id查询所参与会议
    List<MeetingUser> selectByUserId (String userId);

    //签到
    Integer updateInStatus(@Param("inStatus")Integer inStatus,@Param("meetingId")String meetingId,@Param("userId")String userId);

    //签退
    Integer updateOutStatus(@Param("outStatus")Integer inStatus,@Param("type")Integer type,
                            @Param("meetingId")String meetingId,@Param("userId")String userId);

    List<String> queryMeetingIdByUserId(String userId);
}
