seatonwan9
2025-08-28 40616c5802932c2216e97a44ec9abed182590bbe
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
57
58
package com.webmanage.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.webmanage.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * 产品Mapper接口
 * 
 * @author webmanage
 * @date 2024-08-07
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {
 
    /**
     * 根据条件查询产品列表
     * 
     * @param productName 产品名称(模糊查询)
     * @param productType 产品类型
     * @param status 产品状态
     * @param providerId 提供者ID
     * @return 产品列表
     */
    List<Product> selectProductList(@Param("productName") String productName,
                                   @Param("productType") String productType,
                                   @Param("status") String status,
                                   @Param("providerId") Long providerId);
 
    /**
     * 根据ID查询产品详情
     * 
     * @param id 产品ID
     * @return 产品详情
     */
    Product selectProductById(@Param("id") Long id);
 
    /**
     * 更新产品状态
     * 
     * @param id 产品ID
     * @param status 新状态
     * @return 更新结果
     */
    int updateProductStatus(@Param("id") Long id, @Param("status") String status);
 
    /**
     * 更新产品审核状态
     * 
     * @param id 产品ID
     * @param auditStatus 新审核状态
     * @return 更新结果
     */
    int updateProductAuditStatus(@Param("id") Long id, @Param("auditStatus") String auditStatus);
}