package com.ruoyi.web.modules.trading.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.trading.domain.BizSupplierSettlement;

/**
 * 供应商结算单 Mapper。
 */
public interface BizSupplierSettlementMapper
{
    BizSupplierSettlement selectByOrderId(Long orderId);

    BizSupplierSettlement selectBizSupplierSettlementById(Long id);

    List<BizSupplierSettlement> selectBizSupplierSettlementList(BizSupplierSettlement query);

    int insertBizSupplierSettlement(BizSupplierSettlement row);

    int updateCompleteSettle(BizSupplierSettlement row);

    String selectMaxSettlementNoSuffixByDatePrefix(@Param("datePrefix") String datePrefix);

    /** 供应商下未删除的待结算单数 */
    Long countPendingBySupplierId(@Param("supplierId") Long supplierId);
}
