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.

SysParamsDao.xml 853B

1234567891011121314151617181920212223
  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="io.renren.dao.SysParamsDao">
  4. <!-- 根据参数编码,查询value -->
  5. <select id="getValueByCode" resultType="String">
  6. select param_value from sys_params where param_code = #{value}
  7. </select>
  8. <!-- 获取参数编码列表 -->
  9. <select id="getParamCodeList" resultType="String">
  10. select param_code from sys_params where id in
  11. <foreach item="id" collection="array" open="(" separator="," close=")">
  12. #{id}
  13. </foreach>
  14. </select>
  15. <!-- 根据参数编码,更新value -->
  16. <update id="updateValueByCode">
  17. update sys_params set param_value = #{paramValue} where param_code = #{paramCode}
  18. </update>
  19. </mapper>