5 天以前 458def14d8a8c9b88179cca983573a8b8ec6e27c
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
package com.ruoyi.production.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.production.dto.ProductStructureDto;
import com.ruoyi.production.pojo.ProductStructure;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
@Mapper
public interface ProductStructureMapper  extends BaseMapper<ProductStructure> {
 
    /**
     * 查询BOM子集
     * @param bomId
     * @param isParent 是否需要父级 true 返回子级 false 返回子父级
     * @return
     */
    List<ProductStructureDto> listBybomId(@Param("bomId") Integer bomId,@Param("isParent") boolean isParent);
 
    List<ProductStructureDto> listBybomAndProcess(@Param("processId") Long processId);
}