package com.yonge.cooleshow.biz.dal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yonge.cooleshow.biz.dal.wrapper.TenantAlbumPurchaseWrapper;
import com.yonge.cooleshow.biz.dal.entity.TenantAlbumPurchase;

/**
 * 机构专辑采购
 * 2023-07-21 17:32:49
 */
public interface TenantAlbumPurchaseService extends IService<TenantAlbumPurchase> {

    /**
     * 查询详情
     *
     * @param id 详情ID
     * @return TenantAlbumPurchase
     */
    TenantAlbumPurchase detail(Long id);

    /**
     * 分页查询
     *
     * @param page  IPage<TenantAlbumPurchase>
     * @param query TenantAlbumPurchaseWrapper.TenantAlbumPurchaseQuery
     * @return IPage<TenantAlbumPurchase>
     */
    IPage<TenantAlbumPurchaseWrapper.TenantAlbumPurchase> selectPage(IPage<TenantAlbumPurchaseWrapper.TenantAlbumPurchase> page,
                                                                     TenantAlbumPurchaseWrapper.TenantAlbumPurchaseQuery query);

    /**
     * 添加
     *
     * @param tenantAlbumPurchase TenantAlbumPurchaseWrapper.TenantAlbumPurchase
     * @return Boolean
     */
    Boolean add(TenantAlbumPurchaseWrapper.TenantAlbumPurchase tenantAlbumPurchase);

    /**
     * 更新
     *
     * @param tenantAlbumPurchase TenantAlbumPurchaseWrapper.TenantAlbumPurchase
     * @return Boolean
     */
    Boolean update(TenantAlbumPurchaseWrapper.TenantAlbumPurchase tenantAlbumPurchase);

    TenantAlbumPurchase getByOrderNo(String orderNo);
}