|
@@ -0,0 +1,52 @@
|
|
|
|
+<?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.SysLogModelMapper" >
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.SysLogModel" >
|
|
|
|
+ <id column="ID" property="id" jdbcType="VARCHAR" />
|
|
|
|
+ <result column="CLASS_PATH" property="classPath" jdbcType="VARCHAR" />
|
|
|
|
+ <result column="TYPE" property="type" jdbcType="CHAR" />
|
|
|
|
+ <result column="MESSAGE" property="message" 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" />
|
|
|
|
+ <result column="CREATE_USER" property="createUser" jdbcType="VARCHAR" />
|
|
|
|
+ <result column="UPDATE_USER" property="updateUser" jdbcType="VARCHAR" />
|
|
|
|
+ </resultMap>
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
|
+ delete from AQ_BASIC_FRAME_SYSLOG
|
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
|
+ </delete>
|
|
|
|
+ <insert id="insert" parameterType="com.xt.js.gkaq.frame.model.SysLogModel" >
|
|
|
|
+ insert into AQ_BASIC_FRAME_SYSLOG (ID, CLASS_PATH, TYPE,
|
|
|
|
+ MESSAGE, STATE, CREATE_TIME,
|
|
|
|
+ UPDATE_TIME, CREATE_USER, UPDATE_USER
|
|
|
|
+ )
|
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{classPath,jdbcType=VARCHAR}, #{type,jdbcType=CHAR},
|
|
|
|
+ #{message,jdbcType=VARCHAR}, #{state,jdbcType=CHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{createUser,jdbcType=VARCHAR}, #{updateUser,jdbcType=VARCHAR}
|
|
|
|
+ )
|
|
|
|
+ </insert>
|
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.SysLogModel" >
|
|
|
|
+ update AQ_BASIC_FRAME_SYSLOG
|
|
|
|
+ set CLASS_PATH = #{classPath,jdbcType=VARCHAR},
|
|
|
|
+ TYPE = #{type,jdbcType=CHAR},
|
|
|
|
+ MESSAGE = #{message,jdbcType=VARCHAR},
|
|
|
|
+ STATE = #{state,jdbcType=CHAR},
|
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ CREATE_USER = #{createUser,jdbcType=VARCHAR},
|
|
|
|
+ UPDATE_USER = #{updateUser,jdbcType=VARCHAR}
|
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
|
+ </update>
|
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
|
+ select ID, CLASS_PATH, TYPE, MESSAGE, STATE, CREATE_TIME, UPDATE_TIME, CREATE_USER,
|
|
|
|
+ UPDATE_USER
|
|
|
|
+ from AQ_BASIC_FRAME_SYSLOG
|
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectAll" resultMap="BaseResultMap" >
|
|
|
|
+ select ID, CLASS_PATH, TYPE, MESSAGE, STATE, CREATE_TIME, UPDATE_TIME, CREATE_USER,
|
|
|
|
+ UPDATE_USER
|
|
|
|
+ from AQ_BASIC_FRAME_SYSLOG
|
|
|
|
+ </select>
|
|
|
|
+</mapper>
|