SysConfigMapper.xml 911 字节
<?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.sibu.orderHelper.integral.web.dao.SysConfigDao">

	<resultMap id="sysConfig" type="com.sibu.orderHelper.integral.model.SysConfig">
		<result column="type" property="type" />
		<result column="content" property="content" />
	</resultMap>



	<select id="getSysConfig" resultMap="sysConfig" parameterType="java.lang.String">
		SELECT * FROM sys_config WHERE  type = #{type}
	</select>
	<select id="getSysConfigByType" resultMap="sysConfig" parameterType="java.lang.String">
		SELECT * FROM sys_config WHERE  type = #{type}
	</select>

	<update id="editPeriodDate" parameterType="com.sibu.orderHelper.integral.request.SysConfigRequest">
		UPDATE  sys_config SET content = #{content} WHERE  type = #{type}
	</update>


</mapper>