package com.op.mes.service;


import com.op.mes.domain.ProOrderWorkorder;

import java.util.List;

/**
 * 生产工单Service接口
 *
 * @author Open Platform
 * @date 2023-07-18
 */
public interface IProOrderWorkorderService {
    /**
     * 查询生产工单
     *
     * @param workorderId 生产工单主键
     * @return 生产工单
     */
    public ProOrderWorkorder selectProOrderWorkorderByWorkorderId(String workorderId);

    /**
     * 查询生产工单列表
     *
     * @param proOrderWorkorder 生产工单
     * @return 生产工单集合
     */
    public List<ProOrderWorkorder> selectProOrderWorkorderList(ProOrderWorkorder proOrderWorkorder);

    /**
     * 新增生产工单
     *
     * @param proOrderWorkorder 生产工单
     * @return 结果
     */
    public int insertProOrderWorkorder(ProOrderWorkorder proOrderWorkorder);

    /**
     * 修改生产工单
     *
     * @param proOrderWorkorder 生产工单
     * @return 结果
     */
    public int updateProOrderWorkorder(ProOrderWorkorder proOrderWorkorder);

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

    /**
     * 删除生产工单信息
     *
     * @param workorderId 生产工单主键
     * @return 结果
     */
    public int deleteProOrderWorkorderByWorkorderId(String workorderId);
}