package com.ktg.iscs.mapper;

import com.ktg.common.mapper.BaseMapperX;
import com.ktg.iscs.domain.IsUserWorkstation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 用户与mars岗位关联Mapper接口
 *
 * @author cgj
 * @date 2024-12-16
 */
@Mapper
public interface IsUserWorkstationMapper extends BaseMapperX<IsUserWorkstation>
{
    /**
     * 查询用户与mars岗位关联
     *
     * @param userId 用户与mars岗位关联主键
     * @return 用户与mars岗位关联
     */
    IsUserWorkstation selectIsUserWorkstationByUserId(Long userId);

    /**
     * 查询用户与mars岗位关联列表
     *
     * @param isUserWorkstation 用户与mars岗位关联
     * @return 用户与mars岗位关联集合
     */
    List<IsUserWorkstation> selectIsUserWorkstationList(IsUserWorkstation isUserWorkstation);

    /**
     * 新增用户与mars岗位关联
     *
     * @param isUserWorkstation 用户与mars岗位关联
     * @return 结果
     */
    int insertIsUserWorkstation(IsUserWorkstation isUserWorkstation);

    /**
     * 修改用户与mars岗位关联
     *
     * @param isUserWorkstation 用户与mars岗位关联
     * @return 结果
     */
    int updateIsUserWorkstation(IsUserWorkstation isUserWorkstation);

    /**
     * 删除用户与mars岗位关联
     *
     * @param userId 用户与mars岗位关联主键
     * @return 结果
     */
    int deleteIsUserWorkstationByUserId(Long userId);

    /**
     * 批量删除用户与mars岗位关联
     *
     * @param userIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteIsUserWorkstationByUserIds(Long[] userIds);
}
