package com.njcn.influx.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.influx.bo.po.DictData;
import com.njcn.influx.bo.po.RmpEventDetailPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * data-migration
 *
 * @author cdf
 * @date 2024/2/19
 */
@DS("target")
public interface RmpEventDetailPOMapper extends BaseMapper<RmpEventDetailPO> {

    List<DictData> selectByDicCodeList(@Param("code") String code);

    /**
     * 根据字典类型名称&数据名称获取字典数据
     *
     * @param dicTypeName 字典类型名称
     * @param dicDataName 字典数据名称
     * @return 字典数据
     */
    DictData getDicDataByNameAndTypeName(@Param("dicTypeName") String dicTypeName, @Param("dicDataName") String dicDataName);
}
