|
@@ -3,9 +3,11 @@
|
|
|
<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="LOG_TYPE" property="logType" jdbcType="CHAR" />
|
|
|
+ <result column="LOG_PATH" property="logPath" jdbcType="VARCHAR" />
|
|
|
+ <result column="LOG_PARAM" property="logParam" jdbcType="VARCHAR" />
|
|
|
+ <result column="LOG_MSG" property="logMsg" jdbcType="VARCHAR" />
|
|
|
+ <result column="CLIENT_IP" property="clientIp" 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" />
|
|
@@ -17,20 +19,22 @@
|
|
|
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 into AQ_BASIC_FRAME_SYSLOG (ID, LOG_TYPE, LOG_PATH,
|
|
|
+ LOG_PARAM, LOG_MSG, CLIENT_IP,
|
|
|
+ STATE, CREATE_TIME, UPDATE_TIME,
|
|
|
+ CREATE_USER, UPDATE_USER)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{logType,jdbcType=CHAR}, #{logPath,jdbcType=VARCHAR},
|
|
|
+ #{logParam,jdbcType=VARCHAR}, #{logMsg,jdbcType=VARCHAR}, #{clientIp,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},
|
|
|
+ set LOG_TYPE = #{logType,jdbcType=CHAR},
|
|
|
+ LOG_PATH = #{logPath,jdbcType=VARCHAR},
|
|
|
+ LOG_PARAM = #{logParam,jdbcType=VARCHAR},
|
|
|
+ LOG_MSG = #{logMsg,jdbcType=VARCHAR},
|
|
|
+ CLIENT_IP = #{clientIp,jdbcType=VARCHAR},
|
|
|
STATE = #{state,jdbcType=CHAR},
|
|
|
CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
@@ -39,14 +43,14 @@
|
|
|
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
|
|
|
+ select ID, LOG_TYPE, LOG_PATH, LOG_PARAM, LOG_MSG, CLIENT_IP, 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
|
|
|
+ select ID, LOG_TYPE, LOG_PATH, LOG_PARAM, LOG_MSG, CLIENT_IP, STATE, CREATE_TIME,
|
|
|
+ UPDATE_TIME, CREATE_USER, UPDATE_USER
|
|
|
from AQ_BASIC_FRAME_SYSLOG
|
|
|
</select>
|
|
|
</mapper>
|