|
@@ -1,44 +1,44 @@
|
|
|
-<?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.GroupModelMapper">
|
|
|
- <resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.GroupModel">
|
|
|
- <id column="ID" jdbcType="VARCHAR" property="id" />
|
|
|
- <result column="ORG" jdbcType="VARCHAR" property="org" />
|
|
|
- <result column="ROLE" jdbcType="VARCHAR" property="role" />
|
|
|
- <result column="REMARK" jdbcType="VARCHAR" property="remark" />
|
|
|
- <result column="CREATE_TIME" jdbcType="OTHER" property="createTime" />
|
|
|
- <result column="UPDATE_TIME" jdbcType="OTHER" property="updateTime" />
|
|
|
- <result column="STATE" jdbcType="CHAR" property="state" />
|
|
|
- </resultMap>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
- delete from AQ_BASIC_FRAME_GROUP
|
|
|
- where ID = #{id,jdbcType=VARCHAR}
|
|
|
- </delete>
|
|
|
- <insert id="insert" parameterType="com.xt.js.gkaq.frame.model.GroupModel">
|
|
|
- insert into AQ_BASIC_FRAME_GROUP (ID, ORG, ROLE,
|
|
|
- REMARK, CREATE_TIME, UPDATE_TIME,
|
|
|
- STATE)
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{org,jdbcType=VARCHAR}, #{role,jdbcType=VARCHAR},
|
|
|
- #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=OTHER}, #{updateTime,jdbcType=OTHER},
|
|
|
- #{state,jdbcType=CHAR})
|
|
|
- </insert>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.GroupModel">
|
|
|
- update AQ_BASIC_FRAME_GROUP
|
|
|
- set ORG = #{org,jdbcType=VARCHAR},
|
|
|
- ROLE = #{role,jdbcType=VARCHAR},
|
|
|
- REMARK = #{remark,jdbcType=VARCHAR},
|
|
|
- CREATE_TIME = #{createTime,jdbcType=OTHER},
|
|
|
- UPDATE_TIME = #{updateTime,jdbcType=OTHER},
|
|
|
- STATE = #{state,jdbcType=CHAR}
|
|
|
- where ID = #{id,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- select ID, ORG, ROLE, REMARK, CREATE_TIME, UPDATE_TIME, STATE
|
|
|
- from AQ_BASIC_FRAME_GROUP
|
|
|
- where ID = #{id,jdbcType=VARCHAR}
|
|
|
- </select>
|
|
|
- <select id="selectAll" resultMap="BaseResultMap">
|
|
|
- select ID, ORG, ROLE, REMARK, CREATE_TIME, UPDATE_TIME, STATE
|
|
|
- from AQ_BASIC_FRAME_GROUP
|
|
|
- </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.GroupModelMapper" >
|
|
|
+ <resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.GroupModel" >
|
|
|
+ <id column="ID" property="id" jdbcType="VARCHAR" />
|
|
|
+ <result column="ORG" property="org" jdbcType="VARCHAR" />
|
|
|
+ <result column="ROLE" property="role" jdbcType="VARCHAR" />
|
|
|
+ <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_GROUP
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.xt.js.gkaq.frame.model.GroupModel" >
|
|
|
+ insert into AQ_BASIC_FRAME_GROUP (ID, ORG, ROLE,
|
|
|
+ REMARK, CREATE_TIME, UPDATE_TIME,
|
|
|
+ STATE)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{org,jdbcType=VARCHAR}, #{role,jdbcType=VARCHAR},
|
|
|
+ #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{state,jdbcType=CHAR})
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.GroupModel" >
|
|
|
+ update AQ_BASIC_FRAME_GROUP
|
|
|
+ set ORG = #{org,jdbcType=VARCHAR},
|
|
|
+ ROLE = #{role,jdbcType=VARCHAR},
|
|
|
+ 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, ORG, ROLE, REMARK, CREATE_TIME, UPDATE_TIME, STATE
|
|
|
+ from AQ_BASIC_FRAME_GROUP
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <select id="selectAll" resultMap="BaseResultMap" >
|
|
|
+ select ID, ORG, ROLE, REMARK, CREATE_TIME, UPDATE_TIME, STATE
|
|
|
+ from AQ_BASIC_FRAME_GROUP
|
|
|
+ </select>
|
|
|
</mapper>
|