package com.jeequan.jeepay.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeequan.jeepay.db.entity.DivisionConn;
import com.jeequan.jeepay.db.entity.DivisionSubject;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 分账任务对象关联表 Mapper 接口
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2024-05-16
 */
public interface DivisionConnMapper extends BaseMapper<DivisionConn> {

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