package com.yuanchu.mom.service;
|
|
import com.yuanchu.mom.pojo.Product;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.yuanchu.mom.pojo.dto.ProductDto;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* @author Administrator
|
* @description 针对表【product】的数据库操作Service
|
* @createDate 2023-07-26 16:00:44
|
*/
|
public interface ProductService extends IService<Product> {
|
|
/**
|
* 根据型号id查询项目(技术指标)
|
* @param specificationsId
|
* @return
|
*/
|
List<Map<String, Object>> selectProductList(Integer specificationsId);
|
|
/**
|
* 根据型号id查询版本
|
* @param specificationsId
|
* @return
|
*/
|
List<Integer> selectVerByPro(Integer specificationsId);
|
|
/**
|
*右侧数据展示-->技术指标(检验项目)
|
* @param specificationsId
|
* @param version
|
* @return
|
*/
|
List<Map<String,Object>> selectAllPro(Integer specificationsId, Integer version,String message);
|
|
/**
|
* 右上角新增-->技术指标-->选择工序,工艺
|
* @param specificationsId
|
* @return
|
*/
|
List<Map<String,Object>> chooseTech(Integer specificationsId);
|
|
/**
|
* 右上角新增-->技术指标-->选择项目父类
|
* @param technologyId
|
* @return
|
*/
|
List<Map<String,Object>> chooseFather(Integer technologyId);
|
|
/**
|
* 右上角新增-->技术指标
|
* @param technologyId
|
* @param productDto
|
*/
|
void addProduct(Integer technologyId, ProductDto productDto);
|
|
/**
|
* 填写标准值与内控值,鼠标移开保存
|
* @param id
|
* @param required
|
* @param internal
|
* @return
|
*/
|
Integer write(Integer id, String required, String internal);
|
|
/**
|
* 添加同一个型号技术指标的版本
|
* @param specificationsId
|
* @return
|
*/
|
Integer addVersion(Integer specificationsId,Integer version);
|
|
/**
|
* 删除
|
* @param id
|
*/
|
void delProById(Integer id);
|
|
/**
|
* 批量删除
|
* @param ids
|
*/
|
void delAllPro(String ids);
|
|
/**
|
* 查询标准BOM技术指标中该型号工艺下最新版本的检验项目
|
* @param technologyId
|
* @param ver
|
* @return
|
*/
|
List<Product> selProByVerSpe(Integer technologyId, Integer ver);
|
}
|