You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.6 KiB
XML
52 lines
1.6 KiB
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="com.flossom.miniProgram.mapper.SystemSettingMapper">
|
|
|
|
<resultMap type="WxSystemSetting" id="wxSystemSettingResult">
|
|
<id property="id" column="id"/>
|
|
<result property="key" column="key"/>
|
|
<result property="value" column="value"/>
|
|
<result property="instructions" column="instructions"/>
|
|
<result property="status" column="status"/>
|
|
<result property="createBy" column="create_by"/>
|
|
<result property="createTime" column="create_time"/>
|
|
<result property="updateBy" column="update_by"/>
|
|
<result property="updateTime" column="update_time"/>
|
|
<result property="remark" column="remark"/>
|
|
</resultMap>
|
|
|
|
<sql id="selectWxSystemSettingVo">
|
|
select id,
|
|
`key`,
|
|
`value`,
|
|
instructions,
|
|
status,
|
|
create_by,
|
|
create_time,
|
|
update_by,
|
|
update_time,
|
|
remark
|
|
from wx_system_setting
|
|
</sql>
|
|
|
|
<!-- 查询条件 -->
|
|
<sql id="sqlwhereSearch">
|
|
<where>
|
|
<if test="key !=null">
|
|
and `key` = #{key}
|
|
</if>
|
|
</where>
|
|
</sql>
|
|
|
|
<select id="getSystemSettingByKey" parameterType="String" resultMap="wxSystemSettingResult">
|
|
<include refid="selectWxSystemSettingVo"/>
|
|
<include refid="sqlwhereSearch"/>
|
|
order by update_time desc
|
|
limit 1
|
|
</select>
|
|
|
|
|
|
</mapper>
|