package com.ruoyi.worktecket.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.worktecket.mapper.WorkTicketSignOptionRunMapper;
import com.ruoyi.worktecket.domain.WorkTicketSignOptionRun;
import com.ruoyi.worktecket.service.IWorkTicketSignOptionRunService;

/**
 * 执行-作业票签字项Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-04
 */
@Service
public class WorkTicketSignOptionRunServiceImpl implements IWorkTicketSignOptionRunService 
{
    @Autowired
    private WorkTicketSignOptionRunMapper workTicketSignOptionRunMapper;

    /**
     * 查询执行-作业票签字项
     * 
     * @param id 执行-作业票签字项主键
     * @return 执行-作业票签字项
     */
    @Override
    public WorkTicketSignOptionRun selectWorkTicketSignOptionRunById(String id)
    {
        return workTicketSignOptionRunMapper.selectWorkTicketSignOptionRunById(id);
    }

    /**
     * 查询执行-作业票签字项列表
     * 
     * @param workTicketSignOptionRun 执行-作业票签字项
     * @return 执行-作业票签字项
     */
    @Override
    public List<WorkTicketSignOptionRun> selectWorkTicketSignOptionRunList(WorkTicketSignOptionRun workTicketSignOptionRun)
    {
        return workTicketSignOptionRunMapper.selectWorkTicketSignOptionRunList(workTicketSignOptionRun);
    }

    /**
     * 新增执行-作业票签字项
     * 
     * @param workTicketSignOptionRun 执行-作业票签字项
     * @return 结果
     */
    @Override
    public int insertWorkTicketSignOptionRun(WorkTicketSignOptionRun workTicketSignOptionRun)
    {
        return workTicketSignOptionRunMapper.insertWorkTicketSignOptionRun(workTicketSignOptionRun);
    }

    /**
     * 修改执行-作业票签字项
     * 
     * @param workTicketSignOptionRun 执行-作业票签字项
     * @return 结果
     */
    @Override
    public int updateWorkTicketSignOptionRun(WorkTicketSignOptionRun workTicketSignOptionRun)
    {
        return workTicketSignOptionRunMapper.updateWorkTicketSignOptionRun(workTicketSignOptionRun);
    }

    /**
     * 批量删除执行-作业票签字项
     * 
     * @param ids 需要删除的执行-作业票签字项主键
     * @return 结果
     */
    @Override
    public int deleteWorkTicketSignOptionRunByIds(String[] ids)
    {
        return workTicketSignOptionRunMapper.deleteWorkTicketSignOptionRunByIds(ids);
    }

    /**
     * 删除执行-作业票签字项信息
     * 
     * @param id 执行-作业票签字项主键
     * @return 结果
     */
    @Override
    public int deleteWorkTicketSignOptionRunById(String id)
    {
        return workTicketSignOptionRunMapper.deleteWorkTicketSignOptionRunById(id);
    }
}
