package com.yifu.cloud.plus.v1.yifu.social.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.yifu.cloud.plus.v1.yifu.social.entity.FailReasonConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 失败原因配置
 *
 * @author huyc
 * @date 2024-05-08 10:41:32
 */
@Mapper
public interface FailReasonConfigMapper extends BaseMapper<FailReasonConfig> {
	/**
	 * 失败原因配置简单分页查询
	 * @param failReasonConfig 失败原因配置
	 * @return
	 */
	IPage<FailReasonConfig> getFailReasonConfigPage(Page<FailReasonConfig> page, @Param("failReasonConfig") FailReasonConfig failReasonConfig);

	// 查可用的列表
	List<FailReasonConfig> getFailListByReasonKey(@Param("reasonKey") String reasonKey);

	// 获取list组装map来使用 hgw
	List<FailReasonConfig> getFailReasonConfigList();

	// 获取户里的配置
	List<FailReasonConfig> getFailReasonConfigListByHu();
}
