|
@@ -1,40 +1,46 @@
|
|
|
-<?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="STATE" jdbcType="CHAR" property="state" />
|
|
|
- </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, STATE)
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{key,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR},
|
|
|
- #{clazz,jdbcType=VARCHAR}, #{disp,jdbcType=VARCHAR}, #{state,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},
|
|
|
- STATE = #{state,jdbcType=CHAR}
|
|
|
- where ID = #{id,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- select ID, KEY, VALUE, CLAZZ, DISP, STATE
|
|
|
- from AQ_BASIC_FRAME_PARAM
|
|
|
- where ID = #{id,jdbcType=VARCHAR}
|
|
|
- </select>
|
|
|
- <select id="selectAll" resultMap="BaseResultMap">
|
|
|
- select ID, KEY, VALUE, CLAZZ, DISP, STATE
|
|
|
- from AQ_BASIC_FRAME_PARAM
|
|
|
- </select>
|
|
|
+<?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" property="id" jdbcType="VARCHAR" />
|
|
|
+ <result column="KEY" property="key" jdbcType="VARCHAR" />
|
|
|
+ <result column="VALUE" property="value" jdbcType="VARCHAR" />
|
|
|
+ <result column="CLAZZ" property="clazz" jdbcType="VARCHAR" />
|
|
|
+ <result column="DISP" property="disp" jdbcType="VARCHAR" />
|
|
|
+ <result column="STATE" property="state" jdbcType="CHAR" />
|
|
|
+ <result column="CREATE_TIME" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="UPDATE_TIME" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
+ </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, STATE, CREATE_TIME,
|
|
|
+ UPDATE_TIME)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{key,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR},
|
|
|
+ #{clazz,jdbcType=VARCHAR}, #{disp,jdbcType=VARCHAR}, #{state,jdbcType=CHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ </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},
|
|
|
+ STATE = #{state,jdbcType=CHAR},
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
+ select ID, KEY, VALUE, CLAZZ, DISP, STATE, CREATE_TIME, UPDATE_TIME
|
|
|
+ from AQ_BASIC_FRAME_PARAM
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <select id="selectAll" resultMap="BaseResultMap" >
|
|
|
+ select ID, KEY, VALUE, CLAZZ, DISP, STATE, CREATE_TIME, UPDATE_TIME
|
|
|
+ from AQ_BASIC_FRAME_PARAM
|
|
|
+ </select>
|
|
|
</mapper>
|