Fixiaobai
2023-09-06 8abe275e36823f1065300af45e1f7a9a68f549a7
standard-server/src/main/java/com/yuanchu/limslaboratory/mapper/ProductMapper.java
@@ -1,11 +1,16 @@
package com.yuanchu.limslaboratory.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuanchu.limslaboratory.pojo.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanchu.limslaboratory.pojo.dto.StandardProductAddDto;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/**
 * <p>
@@ -17,10 +22,25 @@
 */
public interface ProductMapper extends BaseMapper<Product> {
    List<Product> selectProductByMaterialId(String materialId);
    //根据物料id查询检验项目
    List<Map> selectProductByMaterialId(int materialId);
    Map<String, Object> getProductInformation(Integer productId);
    //展示该型号下的检验项目要求
    List<Map<String, Object>> pageProductInformation(Integer specificationsId,Integer version);
    //通过项目名查询项目的试验方法
    List<Map> selectInstrumentByProname(String name);
    void deleteList(String ids);
    //展示该型号下的检验项目要求-->选择版本
    List<Integer> chooseVersion(Integer specificationsId);
    //查询该型号下的所有试验项目(父类)
    List<Map<String,Object>> chooseProject(Integer modelId);
    //根据项目父类,型号id,版本查询二级详情
    List<Map<String, Object>> selFath(Integer specificationId, String exper, Integer version);
    //根据项目父类为空,项目名,型号id,版本查询
    Map<String, Object> selNam(Integer specificationId, String exper, Integer version);
    int addProduct(Product product);
}