李林
2023-10-07 658d4927d468c47208fd012d9128b09249c07eff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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);
}