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);
|
}
|