Crunchy
2025-06-14 b2f31607cbe26d721cd7514b619162b3e355b1aa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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);
}