package com.ruoyi.project.invoice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.project.invoice.domain.TInvoiceBookingworkticket;
import com.ruoyi.project.invoice.domain.TInvoiceBookingworkticketVo;
import com.ruoyi.project.invoice.domain.TInvoiceContractor;
import com.ruoyi.project.invoice.domain.TInvoiceWorkcontent;

import java.util.List;

/**
 * 预约作业票台账Service接口
 *
 * @author ruoyi
 * @date 2022-08-25
 */
public interface ITInvoiceBookingworkticketService extends IService<TInvoiceBookingworkticket>
{
    /**
     * 查询预约作业票台账
     *
     * @param id 预约作业票台账ID
     * @return 预约作业票台账
     */
    public TInvoiceBookingworkticket selectTInvoiceBookingworkticketById(Long id);
    public TInvoiceBookingworkticket selectBookingworkticketById(Long id);
    public List<TInvoiceBookingworkticketVo> selectDetailById(Long id);

    /**
     * 查询预约作业票台账列表
     *
     * @param tInvoiceBookingworkticket 预约作业票台账
     * @return 预约作业票台账集合
     */
    public List<TInvoiceBookingworkticket> selectTInvoiceBookingworkticketList(TInvoiceBookingworkticket tInvoiceBookingworkticket);

    /**
     * 新增预约作业票台账
     *
     * @param tInvoiceBookingworkticket 预约作业票台账
     * @return 结果
     */
    public int insertTInvoiceBookingworkticket(TInvoiceBookingworkticket tInvoiceBookingworkticket);

    /**
     * 修改预约作业票台账
     *
     * @param tInvoiceBookingworkticket 预约作业票台账
     * @return 结果
     */
    public int updateTInvoiceBookingworkticket(TInvoiceBookingworkticket tInvoiceBookingworkticket);

    /**
     * 批量删除预约作业票台账
     *
     * @param ids 需要删除的预约作业票台账ID
     * @return 结果
     */
    public int deleteTInvoiceBookingworkticketByIds(Long[] ids);

    /**
     * 删除预约作业票台账信息
     *
     * @param id 预约作业票台账ID
     * @return 结果
     */
    public int deleteTInvoiceBookingworkticketById(Long id);

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

    /**
     * 根据名字找到承包商信息承包商信息信息
     *
     * @param userid 承包商信息ID
     * @return 结果
     */
   /* public TInvoiceContractor selectTInvoiceContractorByName(String userId);*/

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

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


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

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

    /**
     * 根据名字找到承包商信息承包商信息信息
     *
     * @param username 承包商信息ID
     * @return 结果
     */
    public  TInvoiceContractor selectTInvoiceContractorByName(String username);


    List<TInvoiceWorkcontent> selectTInvoiceWorkcontentList(TInvoiceBookingworkticket tInvoiceBookingworkticket);

    int cancelTInvoiceBookingworkticketById(Long id);
}
