package com.chinaztt.mes.plan.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.chinaztt.mes.plan.dto.MoStructureComponentDTO;
|
import com.chinaztt.mes.plan.entity.MoStructureComponent;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* 制造订单产品结构组件表
|
*
|
* @author cxf
|
* @date 2020-09-28 15:33:24
|
*/
|
@Mapper
|
public interface MoStructureComponentMapper extends BaseMapper<MoStructureComponent> {
|
|
/**
|
* 根据制造订单id获取结构组件
|
*
|
* @param id
|
* @return
|
*/
|
List<MoStructureComponentDTO> selectListByManufacturingOrderId(Long id);
|
|
|
/**
|
* 根据bomid查询
|
*
|
* @param bomId
|
* @return
|
*/
|
List<MoStructureComponentDTO> selectBomComponents(Long bomId);
|
|
/**
|
* 根据制造订单id和零件id查询所需数量
|
*
|
* @param id
|
* @param partId
|
* @return
|
*/
|
List<MoStructureComponentDTO> selectQpaByManufacturingOrderIdAndPartId(@Param("id") Long id, @Param("partId") Long partId);
|
|
|
/**
|
* 根据车间订单号查询车间订单对应的BOM
|
*
|
* @param moId
|
* @return
|
*/
|
List<MoStructureComponentDTO> selectMoComponents(Long moId);
|
}
|