package com.ktg.iscs.mapper;

import com.ktg.common.mapper.BaseMapperX;
import com.ktg.iscs.domain.IsJobTicketKey;
import com.ktg.iscs.domain.vo.ticketKey.IsJobTicketKeyVO;
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 IsJobTicketKeyMapper extends BaseMapperX<IsJobTicketKey>
{
    /**
     * 查询作业票钥匙
     *
     * @param recordId 作业票钥匙主键
     * @return 作业票钥匙
     */
    IsJobTicketKey selectIsJobTicketKeyByRecordId(Long recordId);

    /**
     * 查询作业票钥匙列表
     *
     * @param isJobTicketKey 作业票钥匙
     * @return 作业票钥匙集合
     */
    List<IsJobTicketKey> selectIsJobTicketKeyList(IsJobTicketKey isJobTicketKey);

    /**
     * 新增作业票钥匙
     *
     * @param isJobTicketKey 作业票钥匙
     * @return 结果
     */
    int insertIsJobTicketKey(IsJobTicketKey isJobTicketKey);

    /**
     * 修改作业票钥匙
     *
     * @param isJobTicketKey 作业票钥匙
     * @return 结果
     */
    int updateIsJobTicketKey(IsJobTicketKey isJobTicketKey);

    /**
     * 删除作业票钥匙
     *
     * @param recordId 作业票钥匙主键
     * @return 结果
     */
    int deleteIsJobTicketKeyByRecordId(Long recordId);

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

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