package com.ktg.iscs.mapper;

import com.ktg.common.mapper.BaseMapperX;
import com.ktg.iscs.domain.IsJobTicketLockset;
import com.ktg.iscs.domain.vo.ticketLockset.IsJobTicketLocksetVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 作业票锁具Mapper接口
 *
 * @author cgj
 * @date 2024-11-19
 */
@Mapper
public interface IsJobTicketLocksetMapper extends BaseMapperX<IsJobTicketLockset>
{
    /**
     * 查询作业票锁具
     *
     * @param recordId 作业票锁具主键
     * @return 作业票锁具
     */
    IsJobTicketLockset selectIsJobTicketLocksetByRecordId(Long recordId);

    /**
     * 查询作业票锁具列表
     *
     * @param isJobTicketLockset 作业票锁具
     * @return 作业票锁具集合
     */
    List<IsJobTicketLockset> selectIsJobTicketLocksetList(IsJobTicketLockset isJobTicketLockset);

    /**
     * 新增作业票锁具
     *
     * @param isJobTicketLockset 作业票锁具
     * @return 结果
     */
    int insertIsJobTicketLockset(IsJobTicketLockset isJobTicketLockset);

    /**
     * 修改作业票锁具
     *
     * @param isJobTicketLockset 作业票锁具
     * @return 结果
     */
    int updateIsJobTicketLockset(IsJobTicketLockset isJobTicketLockset);

    /**
     * 删除作业票锁具
     *
     * @param recordId 作业票锁具主键
     * @return 结果
     */
    int deleteIsJobTicketLocksetByRecordId(Long recordId);

    /**
     * 批量删除作业票锁具
     *
     * @param recordIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteIsJobTicketLocksetByRecordIds(Long[] recordIds);

    List<IsJobTicketLocksetVO> getListByTicketId(@Param(value = "ticketId") Long ticketId);
}
