ConfigService.java 808 Bytes
package com.huaheng.framework.web.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.huaheng.pc.system.config.service.IConfigService;

/**
 * huaheng首创 html调用 thymeleaf 实现参数管理
 * 
 * @author huaheng
 */
@Service("config")
public class ConfigService
{
    @Autowired
    private IConfigService configService;

    /**
     * 根据键名查询参数配置信息
     * 
     * @param configKey 参数名称
     * @return 参数键值
     */
    public String getKey(String configKey,String warehouseCode)
    {
        return configService.selectConfigByKey(configKey,warehouseCode);
    }

    public String getKey(String configKey)
    {
        return configService.selectConfigByKey(configKey);
    }
}