package cn.com.ctop.finance.payment.mapper;

import cn.com.ctop.finance.payment.entity.FinancePaymentPool;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 款项池表
 *
 * @author jeecg-boot
 * 2023-04-11
 * @version V1.0
 */
public interface FinancePaymentPoolMapper extends BaseMapper<FinancePaymentPool> {

    FinancePaymentPool queryFinancePaymentPool(@Param("advertiserName") String advertiserName, @Param("productId") Long productId, @Param("paymentMedia") String paymentMedia, @Param("paymentPort") String paymentPort);

    List<JSONObject> queryIdAndName(Map<String, Object> map);

    List<JSONObject> queryPoolProjectList(@Param("advertiserIds") List<String> advertiserIds, @Param("productId") Long productId, @Param("type") String type);

    FinancePaymentPool queryFinancePaymentPoolById(@Param("advertiserId") String advertiserId, @Param("productId") Long productId, @Param("paymentMedia") String paymentMedia, @Param("paymentPort") String paymentPort);

    List<JSONObject> queryPaymentPort(@Param("advertiserId") String advertiserId, @Param("productId") Long productId, @Param("paymentMedia") String paymentMedia);

    List<JSONObject> queryPoolAccountList(@Param("advertiserIds") List<String> advertiserIds, @Param("projectId") Long projectId, @Param("type") String type);

}
