|
@@ -0,0 +1,67 @@
|
|
|
+<?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.CodeModelMapper" >
|
|
|
+ <resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.CodeModel" >
|
|
|
+ <id column="ID" property="id" jdbcType="VARCHAR" />
|
|
|
+ <result column="PID" property="pid" jdbcType="VARCHAR" />
|
|
|
+ <result column="PCODE" property="pcode" jdbcType="VARCHAR" />
|
|
|
+ <result column="TEXT" property="text" jdbcType="VARCHAR" />
|
|
|
+ <result column="CODE" property="code" jdbcType="VARCHAR" />
|
|
|
+ <result column="VAL" property="val" jdbcType="VARCHAR" />
|
|
|
+ <result column="LEAF" property="leaf" jdbcType="CHAR" />
|
|
|
+ <result column="SORTNO" property="sortno" jdbcType="DECIMAL" />
|
|
|
+ <result column="REMARK" property="remark" jdbcType="VARCHAR" />
|
|
|
+ <result column="CREATE_TIME" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="UPDATE_TIME" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="STATE" property="state" jdbcType="CHAR" />
|
|
|
+ </resultMap>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
+ delete from AQ_BASIC_FRAME_CODE
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.xt.js.gkaq.frame.model.CodeModel" >
|
|
|
+ insert into AQ_BASIC_FRAME_CODE (ID, PID, PCODE,
|
|
|
+ TEXT, CODE, VAL, LEAF,
|
|
|
+ SORTNO, REMARK, CREATE_TIME,
|
|
|
+ UPDATE_TIME, STATE)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{pcode,jdbcType=VARCHAR},
|
|
|
+ #{text,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{val,jdbcType=VARCHAR}, #{leaf,jdbcType=CHAR},
|
|
|
+ #{sortno,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{state,jdbcType=CHAR})
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.CodeModel" >
|
|
|
+ update AQ_BASIC_FRAME_CODE
|
|
|
+ set PID = #{pid,jdbcType=VARCHAR},
|
|
|
+ PCODE = #{pcode,jdbcType=VARCHAR},
|
|
|
+ TEXT = #{text,jdbcType=VARCHAR},
|
|
|
+ CODE = #{code,jdbcType=VARCHAR},
|
|
|
+ VAL = #{val,jdbcType=VARCHAR},
|
|
|
+ LEAF = #{leaf,jdbcType=CHAR},
|
|
|
+ SORTNO = #{sortno,jdbcType=DECIMAL},
|
|
|
+ REMARK = #{remark,jdbcType=VARCHAR},
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ STATE = #{state,jdbcType=CHAR}
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
+ select ID, PID, PCODE, TEXT, CODE, VAL, LEAF, SORTNO, REMARK, CREATE_TIME, UPDATE_TIME,
|
|
|
+ STATE
|
|
|
+ from AQ_BASIC_FRAME_CODE
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <select id="selectAll" resultMap="BaseResultMap" >
|
|
|
+ select ID, PID, PCODE, TEXT, CODE, VAL, LEAF, SORTNO, REMARK, CREATE_TIME, UPDATE_TIME,
|
|
|
+ STATE
|
|
|
+ from AQ_BASIC_FRAME_CODE
|
|
|
+ </select>
|
|
|
+ <select id="selectInitDict" resultMap="BaseResultMap" >
|
|
|
+ select ID, PID, TEXT, CODE, LEAF, SORTNO
|
|
|
+ from AQ_BASIC_FRAME_CODE
|
|
|
+ order by SORTNO
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPid" parameterType="java.lang.String" >
|
|
|
+ delete from AQ_BASIC_FRAME_CODE
|
|
|
+ where PID = #{pid,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+</mapper>
|