mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-14 22:53:47 +08:00
22 lines
848 B
XML
22 lines
848 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="net.lab1024.sa.common.module.support.config.ConfigDao">
|
|
<!-- 分页查询系统配置 -->
|
|
<select id="queryByPage" resultType="net.lab1024.sa.common.module.support.config.domain.ConfigEntity">
|
|
SELECT *
|
|
FROM t_config
|
|
<where>
|
|
<if test="query.configKey != null and query.configKey != ''">
|
|
AND INSTR(config_key,#{query.configKey})
|
|
</if>
|
|
</where>
|
|
</select>
|
|
|
|
<!-- 根据key查询获取数据 -->
|
|
<select id="selectByKey" resultType="net.lab1024.sa.common.module.support.config.domain.ConfigEntity">
|
|
SELECT *
|
|
FROM t_config
|
|
WHERE config_key = #{key}
|
|
</select>
|
|
|
|
</mapper> |