package com.ktg.iscs.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ktg.common.mapper.BaseMapperX;
import com.ktg.iscs.domain.IsWorkstation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * mars岗位Mapper接口
 *
 * @author cgj
 * @date 2024-12-16
 */
@Mapper
public interface IsWorkstationMapper extends BaseMapperX<IsWorkstation>
{
    /**
     * 查询mars岗位
     *
     * @param workstationId mars岗位主键
     * @return mars岗位
     */
    IsWorkstation selectIsWorkstationByWorkstationId(Long workstationId);

    /**
     * 查询mars岗位列表
     *
     * @param isWorkstation mars岗位
     * @return mars岗位集合
     */
    List<IsWorkstation> selectIsWorkstationList(IsWorkstation isWorkstation);

    /**
     * 新增mars岗位
     *
     * @param isWorkstation mars岗位
     * @return 结果
     */
    int insertIsWorkstation(IsWorkstation isWorkstation);

    /**
     * 修改mars岗位
     *
     * @param isWorkstation mars岗位
     * @return 结果
     */
    int updateIsWorkstation(IsWorkstation isWorkstation);

    /**
     * 删除mars岗位
     *
     * @param workstationId mars岗位主键
     * @return 结果
     */
    int deleteIsWorkstationByWorkstationId(Long workstationId);

    /**
     * 批量删除mars岗位
     *
     * @param workstationIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteIsWorkstationByWorkstationIds(Long[] workstationIds);

    Page<IsWorkstation> getIsWorkstationPage(Page<IsWorkstation> page,
                                             @Param(value = "isWorkstation") IsWorkstation isWorkstation,
                                             @Param(value = "ids") List<Long> ids);
}
