|
@@ -0,0 +1,51 @@
|
|
|
|
+<?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.GroupButtonModelMapper" >
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.GroupButtonModel" >
|
|
|
|
+ <id column="ID" property="id" jdbcType="VARCHAR" />
|
|
|
|
+ <result column="GROUP_ID" property="groupId" jdbcType="VARCHAR" />
|
|
|
|
+ <result column="BUTTON_ID" property="buttonId" 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_GROUP_BUTTON
|
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
|
+ </delete>
|
|
|
|
+ <insert id="insert" parameterType="com.xt.js.gkaq.frame.model.GroupButtonModel" >
|
|
|
|
+ insert into AQ_BASIC_FRAME_GROUP_BUTTON (ID, GROUP_ID, BUTTON_ID,
|
|
|
|
+ STATE, CREATE_TIME, UPDATE_TIME
|
|
|
|
+ )
|
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{groupId,jdbcType=VARCHAR}, #{buttonId,jdbcType=VARCHAR},
|
|
|
|
+ #{state,jdbcType=CHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
|
|
+ )
|
|
|
|
+ </insert>
|
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.GroupButtonModel" >
|
|
|
|
+ update AQ_BASIC_FRAME_GROUP_BUTTON
|
|
|
|
+ set GROUP_ID = #{groupId,jdbcType=VARCHAR},
|
|
|
|
+ BUTTON_ID = #{buttonId,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, GROUP_ID, BUTTON_ID, STATE, CREATE_TIME, UPDATE_TIME
|
|
|
|
+ from AQ_BASIC_FRAME_GROUP_BUTTON
|
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectAll" resultMap="BaseResultMap" >
|
|
|
|
+ select ID, GROUP_ID, BUTTON_ID, STATE, CREATE_TIME, UPDATE_TIME
|
|
|
|
+ from AQ_BASIC_FRAME_GROUP_BUTTON
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectByGroupId" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
|
+ select ID, GROUP_ID, BUTTON_ID
|
|
|
|
+ from AQ_BASIC_FRAME_GROUP_BUTTON
|
|
|
|
+ where GROUP_ID = #{groupId,jdbcType=VARCHAR}
|
|
|
|
+ </select>
|
|
|
|
+ <delete id="deleteByGroupId" parameterType="java.lang.String" >
|
|
|
|
+ delete from AQ_BASIC_FRAME_GROUP_BUTTON
|
|
|
|
+ where GROUP_ID = #{groupId,jdbcType=VARCHAR}
|
|
|
|
+ </delete>
|
|
|
|
+</mapper>
|