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>
|
* Mapper 接口
|
* </p>
|
*
|
* @author 江苏鵷雏网络科技有限公司
|
* @since 2023-07-17
|
*/
|
public interface ProductMapper extends BaseMapper<Product> {
|
|
//根据物料id查询检验项目
|
List<Map> selectProductByMaterialId(int materialId);
|
|
//展示该型号下的检验项目要求
|
List<Map<String, Object>> pageProductInformation(Integer specificationsId,Integer version);
|
|
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);
|
}
|