package com.jeesharp.business.modules.finance.merchantsettlement.mapper;

import com.jeesharp.business.modules.finance.merchantsettlement.entity.MerchantSettlementBillLine;
import com.jeesharp.business.modules.finance.merchantsettlement.vo.MerchantSettlementBillLineQueryVO;
import com.jeesharp.framework.mybatis.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商户结算单构成明细 MyBatis Mapper。
 *
 * @author jeesharp
 * @since 2026-06-29
 */
@Mapper
public interface MerchantSettlementBillLineMapper
        extends BaseMapper<MerchantSettlementBillLine, MerchantSettlementBillLineQueryVO> {

    /**
     * 批量插入构成明细。
     */
    int batchInsert(@Param("list") List<MerchantSettlementBillLine> list);

    /**
     * 统计结算单下明细笔数。
     */
    long countBySettlementBillId(@Param("settlementBillId") String settlementBillId);
}
