package com.sckw.payment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.payment.model.KwpSettlementLogistics;
import com.sckw.payment.model.dto.SettlementLogisticsDto;
import com.sckw.payment.model.vo.req.SettlementReq;
import com.sckw.payment.model.vo.res.SettlementLogisticsSumVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Aick Spt
 * @date 2023-07-24 14:55
 */
@Mapper
public interface KwpSettlementLogisticsMapper extends BaseMapper<KwpSettlementLogistics> {

    /**
     * 运费付款-物流订单列表
     * @author Aick Spt
     * @date 2023-07-24 16:23
     */
    List<SettlementLogisticsDto> pageSelect(@Param("settlementReq") SettlementReq settlementReq);

    /**
     * 运费-物流订单各状态列表总数
     * @author Aick Spt
     * @date 2023-07-24 16:23
     */
    Long getCountList(@Param("settlementReq") SettlementReq settlementReq);

    /**
     * 运费-物流订单列表查询合计
     * @author Aick Spt
     * @date 2023-07-28 09:49
     */
    SettlementLogisticsSumVo selectSum(@Param("settlementReq") SettlementReq settlementReq);

    /**
     * 运费-物流订单详情
     * @author Aick Spt
     * @date 2023-07-24 16:24
     */
    SettlementLogisticsDto detail(@Param("id") Long id, @Param("unitType") Integer unitType);

    /**
     * 根据条件查物流结算订单-导出
     * @author Aick Spt
     * @date 2023-07-24 16:24
     */
    List<SettlementLogisticsDto> selectLogisticsList(@Param("settlementReq") SettlementReq settlementReq, @Param("ids") List<Long> ids);
}