package com.op.mes.mapper;

import com.op.mes.domain.Batch;
import com.op.mes.domain.ProOrderWorkorderBatch;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 生产工单批次Mapper接口
 *
 * @author Open Platform
 * @date 2023-07-18
 */
public interface ProOrderWorkorderBatchMapper {
    /**
     * 查询生产工单批次
     *
     * @param workorderId 生产工单批次主键
     * @return 生产工单批次
     */
    public ProOrderWorkorderBatch selectProOrderWorkorderBatchByWorkorderId(String workorderId);

    /**
     * 查询生产工单批次列表
     *
     * @param proOrderWorkorderBatch 生产工单批次
     * @return 生产工单批次集合
     */
    public List<ProOrderWorkorderBatch> selectProOrderWorkorderBatchList(ProOrderWorkorderBatch proOrderWorkorderBatch);

    /**
     * 新增生产工单批次
     *
     * @param proOrderWorkorderBatch 生产工单批次
     * @return 结果
     */
    public int insertProOrderWorkorderBatch(ProOrderWorkorderBatch proOrderWorkorderBatch);

    /**
     * 修改生产工单批次
     *
     * @param proOrderWorkorderBatch 生产工单批次
     * @return 结果
     */
    public int updateProOrderWorkorderBatch(ProOrderWorkorderBatch proOrderWorkorderBatch);

    /**
     * 删除生产工单批次
     *
     * @param workorderId 生产工单批次主键
     * @return 结果
     */
    public int deleteProOrderWorkorderBatchByWorkorderId(String workorderId);

    /**
     * 批量删除生产工单批次
     *
     * @param workorderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProOrderWorkorderBatchByWorkorderIds(String[] workorderIds);

}