package com.jeequan.jeepay.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeequan.jeepay.db.entity.DivisionSubject;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2024-04-03
 */
public interface DivisionSubjectMapper extends BaseMapper<DivisionSubject> {

    /**
     * 分页查询
     * @param page
     * @param entity
     * @param dateRange
     * @return
     */
    IPage<DivisionSubject> pageList(@Param("page") Page<DivisionSubject> page, @Param("entity")DivisionSubject entity, @Param("dateRange") Date[] dateRange);

    /**
     * 根据任务id和分账方商户号获取分账接收方信息
     * @param taskId
     * @param divisionNo
     * @return
     */
    List<DivisionSubject> listByTaskAndDivisionNo(@Param("taskId") String taskId, @Param("divisionNo")String divisionNo);
}
