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.PackageInfo;
import com.jeequan.jeepay.db.entity.ProductInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 方案表 Mapper 接口
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2023-12-12
 */
public interface PackageInfoMapper extends BaseMapper<PackageInfo> {

    PackageInfo getDetailById(@Param("packageId") String packageId);

    IPage<PackageInfo> getPackageCheckList(@Param("page") Page page, @Param("packageName") String packageName, @Param("state")Integer state,@Param("mchName")String mchName);

    List<PackageInfo> getPackageList(@Param("packageName") String packageName, @Param("state")Integer state, @Param("packageType") Integer packageType);

    List<ProductInfo> getProductList(@Param("collection") List<String> collection);

    PackageInfo getPackageById(@Param("packageId") String packageId);

    IPage<PackageInfo> getMgrPackageInfoList(@Param("page") IPage page,@Param("product") PackageInfo packageInfo);

}
