package cn.ezhizao.project.business.mapper;

import java.util.List;

import cn.ezhizao.project.business.domain.BizReturnReceiptDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.ezhizao.project.business.domain.BizOutsourcedOrderDetail;

/**
 * 外协单从Mapper接口
 *
 * @author ezhizao
 * date    2024-04-26
 */
public interface BizOutsourcedOrderDetailMapper extends BaseMapper<BizOutsourcedOrderDetail>
{
    /**
     * 查询外协单从列表
     *
     * @param bizOutsourcedOrderDetail 外协单从
     * @return 外协单从集合
     */
    public List<BizOutsourcedOrderDetail> getList(BizOutsourcedOrderDetail bizOutsourcedOrderDetail);


    public List<BizOutsourcedOrderDetail> getFinishedOutsourceDetailList(BizOutsourcedOrderDetail bizOutsourcedOrderDetail);

    /**
     * 查询外协单从列表
     *
     * @param bizOutsourcedOrderDetail 外协单从
     * @return 外协单从集合
     */
    public List<BizOutsourcedOrderDetail> getListForReceipt(BizOutsourcedOrderDetail bizOutsourcedOrderDetail);

    /**
     * 物理删除
     * @param bizOutsourcedOrderDetail 待删除
     * @return 删除结果
    */
    public int physicalDelete(BizOutsourcedOrderDetail bizOutsourcedOrderDetail);

    public List<Long> getIdsForInterReturn(BizOutsourcedOrderDetail bizOutsourcedOrderDetail);
}
