You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
616 B

8 months ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.gaotao.modules.sys.dao.SysConfigDao">
  4. <!-- 根据key,更新value -->
  5. <update id="updateValueByKey" parameterType="map">
  6. update sys_config set param_value = #{paramValue} where param_key = #{paramKey}
  7. </update>
  8. <!-- 根据key,查询value -->
  9. <select id="queryByKey" parameterType="string" resultType="com.gaotao.modules.sys.entity.SysConfigEntity">
  10. select * from sys_config where param_key = #{paramKey}
  11. </select>
  12. </mapper>