package com.ruoyi.web.modules.technology.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.technology.domain.BizPracticalTrainingMember;
import com.ruoyi.web.modules.technology.domain.PracticalTrainingMyEnrollDetailVo;
import com.ruoyi.web.modules.technology.domain.PracticalTrainingMyEnrollListVo;

/**
 * 实战业务培训报名成员 Mapper
 */
public interface BizPracticalTrainingMemberMapper
{
    BizPracticalTrainingMember selectByTrainingIdAndUserId(
            @Param("trainingId") Long trainingId, @Param("sysUserId") Long sysUserId);

    int countActiveByTrainingId(@Param("trainingId") Long trainingId);

    int insertBizPracticalTrainingMember(BizPracticalTrainingMember row);

    int updateMemberEnrollStatus(BizPracticalTrainingMember row);

    List<PracticalTrainingMyEnrollListVo> selectMyActiveEnrollList(@Param("sysUserId") Long sysUserId);

    PracticalTrainingMyEnrollDetailVo selectMyActiveEnrollDetail(
            @Param("trainingId") Long trainingId, @Param("sysUserId") Long sysUserId);
}
