package com.jeequan.jeepay.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeequan.jeepay.db.entity.AgentInfo;
import com.jeequan.jeepay.db.entity.ProductInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 产品信息表 Mapper 接口
 * </p>
 * @author [mybatis plus generator]
 */
public interface ProductInfoMapper extends BaseMapper<ProductInfo> {

    List<ProductInfo> getProductList(@Param("productName") String productName, @Param("state")Integer state, @Param("productType") Integer productType);

    ProductInfo getProductById(@Param("productId") String productId);

    ProductInfo getDetailById(@Param("productId") String productId);

    IPage<ProductInfo> getProductCheckList(@Param("page") Page page,@Param("productName") String productName,@Param("state")Integer state);

    Page<ProductInfo> getMgrProductList(@Param("page") Page page,@Param("product") ProductInfo productInfo);


}
