package com.ruoyi.project.invoice.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.project.invoice.domain.TInvoiceWorkcontent;
import com.ruoyi.project.invoice.mapper.TInvoiceWorkcontentMapper;
import com.ruoyi.project.invoice.service.ITInvoiceWorkcontentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 预约作业内容Service业务层处理
 *
 * @author ruoyi
 * @date 2022-08-26
 */
@Service
public class TInvoiceWorkcontentServiceImpl extends ServiceImpl<TInvoiceWorkcontentMapper, TInvoiceWorkcontent> implements ITInvoiceWorkcontentService
{
    @Resource
    private TInvoiceWorkcontentMapper tInvoiceWorkcontentMapper;

    /**
     * 查询预约作业内容
     *
     * @param id 预约作业内容ID
     * @return 预约作业内容
     */
    @Override
    public TInvoiceWorkcontent selectTInvoiceWorkcontentById(Long id)
    {
        return tInvoiceWorkcontentMapper.selectTInvoiceWorkcontentById(id);
    }


    /**
     *根据关联ID 查询预约作业内容
     *
     * @param bookingticketId 预约作业内容bookingticketId
     * @return 预约作业内容
     */
    @Override
    public List<TInvoiceWorkcontent> selectTInvoiceWorkcontentBybookingticketId(Long bookingticketId)
    {
        return tInvoiceWorkcontentMapper.selectTInvoiceWorkcontentBybookingticketId(bookingticketId);
    }

    /**
     * 查询预约作业内容列表
     *
     * @param tInvoiceWorkcontent 预约作业内容
     * @return 预约作业内容
     */
    @Override
    public List<TInvoiceWorkcontent> selectTInvoiceWorkcontentList(TInvoiceWorkcontent tInvoiceWorkcontent)
    {
        return tInvoiceWorkcontentMapper.selectTInvoiceWorkcontentList(tInvoiceWorkcontent);
    }

    /**
     * 新增预约作业内容
     *
     * @param tInvoiceWorkcontent 预约作业内容
     * @return 结果
     */
    @Override
    public int insertTInvoiceWorkcontent(TInvoiceWorkcontent tInvoiceWorkcontent)
    {
        return tInvoiceWorkcontentMapper.insertTInvoiceWorkcontent(tInvoiceWorkcontent);
    }

    /**
     * 修改预约作业内容
     *
     * @param tInvoiceWorkcontent 预约作业内容
     * @return 结果
     */
    @Override
    public int updateTInvoiceWorkcontent(TInvoiceWorkcontent tInvoiceWorkcontent)
    {
        return tInvoiceWorkcontentMapper.updateTInvoiceWorkcontent(tInvoiceWorkcontent);
    }

    /**
     * 批量删除预约作业内容
     *
     * @param ids 需要删除的预约作业内容ID
     * @return 结果
     */
    @Override
    public int deleteTInvoiceWorkcontentByIds(Long[] ids)
    {
        return tInvoiceWorkcontentMapper.deleteTInvoiceWorkcontentByIds(ids);
    }

    /**
     * 删除预约作业内容信息
     *
     * @param id 预约作业内容ID
     * @return 结果
     */
    @Override
    public int deleteTInvoiceWorkcontentById(Long id)
    {
        return tInvoiceWorkcontentMapper.deleteTInvoiceWorkcontentById(id);
    }
}
