2022-11-16 23:50:12 +08:00
|
|
|
package net.maku.system.dao;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
2023-01-20 13:47:45 +08:00
|
|
|
import net.maku.framework.mybatis.dao.BaseDao;
|
2022-11-16 23:50:12 +08:00
|
|
|
import net.maku.system.entity.SysParamsEntity;
|
|
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 参数管理
|
|
|
|
|
*
|
|
|
|
|
* @author 阿沐 babamu@126.com
|
2023-02-21 16:44:04 +08:00
|
|
|
* <a href="https://maku.net">MAKU</a>
|
2022-11-16 23:50:12 +08:00
|
|
|
*/
|
|
|
|
|
@Mapper
|
|
|
|
|
public interface SysParamsDao extends BaseDao<SysParamsEntity> {
|
|
|
|
|
|
|
|
|
|
default boolean isExist(String paramKey) {
|
2023-05-29 12:49:58 +08:00
|
|
|
return this.exists(new QueryWrapper<SysParamsEntity>().eq("param_key", paramKey));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
default SysParamsEntity get(String paramKey) {
|
|
|
|
|
return this.selectOne(new QueryWrapper<SysParamsEntity>().eq("param_key", paramKey));
|
2022-11-16 23:50:12 +08:00
|
|
|
}
|
|
|
|
|
}
|