|
@@ -0,0 +1,40 @@
|
|
|
|
+<?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.xt.js.gkaq.frame.mappers.ParamModelMapper">
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.ParamModel">
|
|
|
|
+ <id column="ID" jdbcType="VARCHAR" property="id" />
|
|
|
|
+ <result column="KEY" jdbcType="VARCHAR" property="key" />
|
|
|
|
+ <result column="VALUE" jdbcType="VARCHAR" property="value" />
|
|
|
|
+ <result column="CLAZZ" jdbcType="VARCHAR" property="clazz" />
|
|
|
|
+ <result column="DISP" jdbcType="VARCHAR" property="disp" />
|
|
|
|
+ <result column="VALID" jdbcType="CHAR" property="valid" />
|
|
|
|
+ </resultMap>
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
+ delete from AQ_BASIC_FRAME_PARAM
|
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
|
+ </delete>
|
|
|
|
+ <insert id="insert" parameterType="com.xt.js.gkaq.frame.model.ParamModel">
|
|
|
|
+ insert into AQ_BASIC_FRAME_PARAM (ID, KEY, VALUE,
|
|
|
|
+ CLAZZ, DISP, VALID)
|
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{key,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR},
|
|
|
|
+ #{clazz,jdbcType=VARCHAR}, #{disp,jdbcType=VARCHAR}, #{valid,jdbcType=CHAR})
|
|
|
|
+ </insert>
|
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.ParamModel">
|
|
|
|
+ update AQ_BASIC_FRAME_PARAM
|
|
|
|
+ set KEY = #{key,jdbcType=VARCHAR},
|
|
|
|
+ VALUE = #{value,jdbcType=VARCHAR},
|
|
|
|
+ CLAZZ = #{clazz,jdbcType=VARCHAR},
|
|
|
|
+ DISP = #{disp,jdbcType=VARCHAR},
|
|
|
|
+ VALID = #{valid,jdbcType=CHAR}
|
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
|
+ </update>
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
+ select ID, KEY, VALUE, CLAZZ, DISP, VALID
|
|
|
|
+ from AQ_BASIC_FRAME_PARAM
|
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectAll" resultMap="BaseResultMap">
|
|
|
|
+ select ID, KEY, VALUE, CLAZZ, DISP, VALID
|
|
|
|
+ from AQ_BASIC_FRAME_PARAM
|
|
|
|
+ </select>
|
|
|
|
+</mapper>
|