package com.sckw.payment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.payment.model.KwpSettlementWallet;
import com.sckw.payment.model.dto.SettlementWalletDto;
import com.sckw.payment.model.vo.SettlementVo;
import com.sckw.payment.model.vo.req.SettlementWalletReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Aick Spt
 * @date 2023-07-25 11:01
 */

@Mapper
public interface KwpSettlementWalletMapper extends BaseMapper<KwpSettlementWallet> {

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

    SettlementWalletDto detailLogisticsPayment(@Param("id") Long id);

    Integer confirmLogisticsPayment(@Param("id") Long id, @Param("price") Float price);

    List<SettlementWalletDto> pageList(@Param("walletReq") SettlementWalletReq walletReq);

    /**
     * app端结算列表
     *
     * @param walletReq
     * @return
     */
    List<SettlementVo> appList(@Param("walletReq") SettlementWalletReq walletReq);

    /**
     * 运营端查询钱包结算记录
     *
     * @param walletReq
     * @return
     */
    List<SettlementWalletDto> list(@Param("walletReq") SettlementWalletReq walletReq);
}