package com.jeequan.jeepay.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeequan.jeepay.core.entity.IsvUserConn;
import com.jeequan.jeepay.db.entity.IsvUserConnEntity;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface IsvUserConnMapper extends BaseMapper<IsvUserConnEntity> {

    @MapKey("ifCode")
    Map<String, IsvUserConn> selectNotIsvIfCode(@Param("infoType") String infoType, @Param("infoId") String infoId, @Param("status") Byte status);

    @MapKey("ifCode")
    Map<String, IsvUserConn> selectIsvIfCode(@Param("infoId") String infoId, @Param("status") Byte status);

    @MapKey("ifCode")
    Map<String, IsvUserConn> selectTransNotIsvIfCode(@Param("infoType") String infoType, @Param("infoId") String infoId, @Param("status") Byte status);

    @MapKey("ifCode")
    Map<String, IsvUserConn> selectTransIsvIfCode(@Param("infoId") String infoId, @Param("status") Byte status);
}
