package com.pig4cloud.pig.statistics.mapper;


import com.pig4cloud.pig.statistics.api.entity.ConfigItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author wcl
 * @date 2025/8/19 10:52
 * @description: 配置Mapper
 */
@Mapper
public interface SysConfigMapper {

	@Select("SELECT config_key as name, config_value as value, config_label as label FROM sys_config WHERE config_key = #{configKey} AND enable = 1 ORDER BY sort ASC")
	List<ConfigItem> selectByConfigKey(@Param("configKey") String configKey);
}
