package com.wms_admin.server.service;
|
|
import com.wms_admin.server.entity.ProductModel;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* <p>
|
* 服务类
|
* </p>
|
*
|
* @author 江苏鵷雏网络科技有限公司
|
* @since 2023-06-07
|
*/
|
public interface ProductModelService extends IService<ProductModel> {
|
|
/**
|
* 添加库存型号
|
* @param productModel 型号
|
* @return 返回添加是否成功:1成功,0失败
|
*/
|
Integer AddProductModel(String productCode, String productModel, Integer productNameId);
|
|
/**
|
* 根据名称ID查询所有的型号
|
* @param productNameId 名称ID
|
* @return 返回结果列表
|
*/
|
List<ProductModel> SelectIdAllProductModel(Integer productNameId);
|
|
/**
|
* 根据ID更新型号
|
* @param productModel 型号实体类
|
* @return 返回更新结果
|
*/
|
Integer UpdateIdProductModel(ProductModel productModel);
|
|
/**
|
* 根据ID删除
|
* @param id 需要删除的主键ID
|
* @return 返回1:删除成功,返回0:删除失败
|
*/
|
Integer DeleteIdProductModel(String id);
|
|
/**
|
* 通过产品型号与产品编码查询对应ID
|
* @param productModel 产品型号
|
* @param productCode 产品编码
|
* @return 返回ID
|
*/
|
Integer SelectProductModelId(String productModel, String productCode);
|
|
Map<String, Object> selectIdProductModel(Integer productModelId);
|
}
|