whycxzp
2024-11-07 d3113b2a1c4c7a6c44cb0eeaf728c302cb899792
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
package com.whyc.mapper;
 
import com.whyc.pojo.Material;
import com.whyc.pojo.ProductBom;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
public interface MaterialMapper extends CustomMapper<Material>{
    //查询所有的散装件信息不分页
   /* List<Material> getMaterialWithoutSub(String parentModel, String subName,int version);*/
    //查询所有的散装件信息加设置了替换关系的子件信息
    /*List<Material> getAllMaterial(String category,String subCode,String subName,String subModel);*/
    /*//查询出存在替换关系得散装件
    List<ProductBom> getReplaceMaterial(String parentModel);*/
    /*//历史版本下载查询出存在替换关系得散装件
    List<ProductBomHistory> getReplaceHisMaterial(String parentModel,int version);*/
    //查询所有物料(分页,模糊查询)
    List<Material> getMaterialLimit(String subCode, String subName, String subModel);
 
    List<String> getListByCodeList(List<String> codeList);
 
    void updateDwgUrl(List<Material> materialDwgUrlNameList);
 
    List<Material> getListByCodeAndModelList(List<Material> materialList);
 
    void disableStatus(List<Material> materialList);
 
    List<Material> getListByCodeAndModelList2(List<ProductBom> bomList);
    List<Material> getListByCodeAndModelList3(List<ProductBom> bomList);
    //根据物料id查询返回附件文件夹下所有的文件列表
    Material getAttachByMaterialId(int materialId);
    ////根据物料型号('-','_'之前的部分)查询物料的历史版本
    List<Material> getMaterialVersion(@Param("subModel") String subModel);
    //根据物料id查询物料信息
    Material getMaterialById(int materialId);
 
    void updateDwgUrlAndPicUrl(List<Material> materialUpdateList);
 
    List<Material> getSameSubCodeAndModel(List<ProductBom> bomList);
}