 package org.sky.system.service.impl;

 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import org.sky.core.mp.base.BaseServiceImpl;
 import org.sky.system.mapper.ParamMapper;
 import org.sky.system.pojo.entity.Param;
 import org.sky.system.service.IParamService;
 import org.springframework.stereotype.Service;

/**
 * 服务实现类
 *
 */
@Service
public class ParamServiceImpl extends BaseServiceImpl<ParamMapper, Param> implements IParamService {

	@Override
	public String getValue(String paramKey) {
		Param param = this.getOne(Wrappers.<Param>query().lambda().eq(Param::getParamKey, paramKey));
		return param.getParamValue();
	}

}
