package com.yuanchu.mom.service.impl;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.yuanchu.mom.pojo.Product;
|
import com.yuanchu.mom.pojo.dto.ProductDto;
|
import com.yuanchu.mom.service.ProductService;
|
import com.yuanchu.mom.mapper.ProductMapper;
|
import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* @author Administrator
|
* @description 针对表【product】的数据库操作Service实现
|
* @createDate 2023-07-26 16:00:44
|
*/
|
@Service
|
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService{
|
|
@Resource
|
private ProductMapper productMapper;
|
|
//根据型号id查询项目(技术指标)
|
@Override
|
public List<Map<String, Object>> selectProductList(Integer specificationsId) {
|
return productMapper.selectProductList(specificationsId);
|
}
|
|
//根据型号id查询所有版本
|
@Override
|
public List<Integer> selectVerByPro(Integer specificationsId) {
|
return productMapper.selectVerByPro(specificationsId);
|
}
|
|
//右侧数据展示-->技术指标(检验项目)
|
@Override
|
public List<Map<String, Object>> selectAllPro(Integer specificationsId, Integer version,String message) {
|
return productMapper.selectAllPro(specificationsId,version,message);
|
}
|
}
|