|
@@ -10,6 +10,9 @@
|
|
|
<result column="IPAddress" jdbcType="VARCHAR" property="IPAddress" />
|
|
|
<result column="LogTime" jdbcType="TIMESTAMP" property="logTime" />
|
|
|
</resultMap>
|
|
|
+ <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.hz.employmentsite.model.SysLog">
|
|
|
+ <result column="OperationData" jdbcType="LONGVARCHAR" property="operationData" />
|
|
|
+ </resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -71,6 +74,25 @@
|
|
|
<sql id="Base_Column_List">
|
|
|
LogID, PageName, PageUrl, ActionName, UserID, IPAddress, LogTime
|
|
|
</sql>
|
|
|
+ <sql id="Blob_Column_List">
|
|
|
+ OperationData
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExampleWithBLOBs" parameterType="com.hz.employmentsite.model.SysLogExample" resultMap="ResultMapWithBLOBs">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
+ from sys_log
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
<select id="selectByExample" parameterType="com.hz.employmentsite.model.SysLogExample" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<if test="distinct">
|
|
@@ -85,9 +107,11 @@
|
|
|
order by ${orderByClause}
|
|
|
</if>
|
|
|
</select>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
from sys_log
|
|
|
where LogID = #{logID,jdbcType=VARCHAR}
|
|
|
</select>
|
|
@@ -104,10 +128,10 @@
|
|
|
<insert id="insert" parameterType="com.hz.employmentsite.model.SysLog">
|
|
|
insert into sys_log (LogID, PageName, PageUrl,
|
|
|
ActionName, UserID, IPAddress,
|
|
|
- LogTime)
|
|
|
+ LogTime, OperationData)
|
|
|
values (#{logID,jdbcType=VARCHAR}, #{pageName,jdbcType=VARCHAR}, #{pageUrl,jdbcType=VARCHAR},
|
|
|
#{actionName,jdbcType=VARCHAR}, #{userID,jdbcType=VARCHAR}, #{IPAddress,jdbcType=VARCHAR},
|
|
|
- #{logTime,jdbcType=TIMESTAMP})
|
|
|
+ #{logTime,jdbcType=TIMESTAMP}, #{operationData,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.hz.employmentsite.model.SysLog">
|
|
|
insert into sys_log
|
|
@@ -133,6 +157,9 @@
|
|
|
<if test="logTime != null">
|
|
|
LogTime,
|
|
|
</if>
|
|
|
+ <if test="operationData != null">
|
|
|
+ OperationData,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="logID != null">
|
|
@@ -156,6 +183,9 @@
|
|
|
<if test="logTime != null">
|
|
|
#{logTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="operationData != null">
|
|
|
+ #{operationData,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.hz.employmentsite.model.SysLogExample" resultType="java.lang.Long">
|
|
@@ -188,11 +218,28 @@
|
|
|
<if test="row.logTime != null">
|
|
|
LogTime = #{row.logTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="row.operationData != null">
|
|
|
+ OperationData = #{row.operationData,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
+ <update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
+ update sys_log
|
|
|
+ set LogID = #{row.logID,jdbcType=VARCHAR},
|
|
|
+ PageName = #{row.pageName,jdbcType=VARCHAR},
|
|
|
+ PageUrl = #{row.pageUrl,jdbcType=VARCHAR},
|
|
|
+ ActionName = #{row.actionName,jdbcType=VARCHAR},
|
|
|
+ UserID = #{row.userID,jdbcType=VARCHAR},
|
|
|
+ IPAddress = #{row.IPAddress,jdbcType=VARCHAR},
|
|
|
+ LogTime = #{row.logTime,jdbcType=TIMESTAMP},
|
|
|
+ OperationData = #{row.operationData,jdbcType=LONGVARCHAR}
|
|
|
+ <if test="example != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update sys_log
|
|
|
set LogID = #{row.logID,jdbcType=VARCHAR},
|
|
@@ -227,9 +274,23 @@
|
|
|
<if test="logTime != null">
|
|
|
LogTime = #{logTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="operationData != null">
|
|
|
+ OperationData = #{operationData,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where LogID = #{logID,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
+ <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.hz.employmentsite.model.SysLog">
|
|
|
+ update sys_log
|
|
|
+ set PageName = #{pageName,jdbcType=VARCHAR},
|
|
|
+ PageUrl = #{pageUrl,jdbcType=VARCHAR},
|
|
|
+ ActionName = #{actionName,jdbcType=VARCHAR},
|
|
|
+ UserID = #{userID,jdbcType=VARCHAR},
|
|
|
+ IPAddress = #{IPAddress,jdbcType=VARCHAR},
|
|
|
+ LogTime = #{logTime,jdbcType=TIMESTAMP},
|
|
|
+ OperationData = #{operationData,jdbcType=LONGVARCHAR}
|
|
|
+ where LogID = #{logID,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.SysLog">
|
|
|
update sys_log
|
|
|
set PageName = #{pageName,jdbcType=VARCHAR},
|