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.

22 lines
834 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?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.yami.shop.sys.dao.SysConfigMapper">
<!-- 根据key更新value -->
<update id="updateValueByKey" parameterType="map">
update tz_sys_config set param_value = #{value} where param_key = #{key}
</update>
<!-- 根据key查询value -->
<select id="queryByKey" parameterType="string" resultType="com.yami.shop.sys.model.SysConfig">
select * from tz_sys_config where param_key = #{key}
</select>
<delete id="deleteBatch" parameterType="Long">
delete from tz_sys_config where id in
<foreach collection="ids" item="id" index="no" open="("
separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>