lxw
2023-07-04 cf28a43edb9efe86addfd4e3dc4175ac327a3e4f
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
package com.whyc.mapper;
 
import com.whyc.pojo.Material;
import com.whyc.pojo.ProductBom;
import com.whyc.pojo.ProductBomApproving;
 
import java.util.List;
 
public interface ProductBomMapper extends CustomMapper<ProductBom>{
    //图纸分类检索
    List<ProductBom> searchCadDrawer(ProductBom productBom);
 
    void updateUrl(List<ProductBomApproving> fileBomApprovingList);
 
    //查询所有产品中没有与指定散装件关联的子件
    List<ProductBom> getAllSubWithOutMaterial(int materialId);
 
    /*//根据母料型号查询子件信息及有关联的散装件信息
    List<ProductBom> getSubByMaterialProduct(String parentModel);*/
    //查询出存在的旧的关联子件
    List<Material> getOldMaterial(String oldSubName);
 
    //根据产品id查询子件及其关联的物料信息
    List<ProductBom> getBomAndMaterial(int productId,int version);
 
    List<ProductBom> getListByCodeAndModelList2(List<ProductBom> bomList);
 
    List<ProductBom> getEnabledBomListByParentCodeAndCustomCode(String parentCode, String customCode);
 
 
    //6.在productBom中插入pHsitoryBom查询出的数据
    int insertBomSelectBomH(Integer id,Integer subVersionMax);
 
    List<ProductBom> selectListWithMaterialField();
 
    void updateMaterialField2BomBatch(List<ProductBom> bomList);
 
}