package com.foreverwin.mesnac.dispatch.mapper;

import com.foreverwin.mesnac.dispatch.dto.RouterDTO;
import com.foreverwin.mesnac.dispatch.model.ShopOrderRelease;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShopOrderReleaseMapper {

    /**
     * 查询可下达的工单
     *
     * @param shopOrderRelease
     * @return
     */
    List<ShopOrderRelease> findShopOrderList(ShopOrderRelease shopOrderRelease);

    /**
     * 查询工单的工艺路线详细步骤
     *
     * @param routerBo
     * @return
     */
    List<RouterDTO> selectShopOrderRouter(@Param("routerBo") String routerBo);

    /**
     * 查看同时发生组下步骤标识
     *
     * @param routerStepBo
     * @return
     */
    List<RouterDTO> selectRouterStepGroup(@Param("routerStepBo") String routerStepBo);
}
