| | |
| | | @Resource |
| | | private ProductMapper productMapper; |
| | | |
| | | @Override |
| | | public List<ProductDto> selectTreeProduct(String specifications, String project) { |
| | | return productMapper.selectTreeProduct(specifications, project); |
| | | } |
| | | |
| | | //根据型号id查询项目(技术指标) |
| | | @Override |
| | | public List<Map<String, Object>> selectProductList(Integer specificationsId) { |
| | | LambdaQueryWrapper<Product> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(Product::getSpecificationsId, specificationsId); |
| | | wrapper.select(Product::getName, Product::getFather, Product::getRequired, Product::getInternal, Product::getUnit); |
| | | return productMapper.selectMaps(wrapper); |
| | | 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); |
| | | } |
| | | } |
| | | |