|
@@ -8,6 +8,8 @@
|
|
<result column="ActionName" jdbcType="VARCHAR" property="actionName" />
|
|
<result column="ActionName" jdbcType="VARCHAR" property="actionName" />
|
|
<result column="UserID" jdbcType="VARCHAR" property="userID" />
|
|
<result column="UserID" jdbcType="VARCHAR" property="userID" />
|
|
<result column="LogTime" jdbcType="TIMESTAMP" property="logTime" />
|
|
<result column="LogTime" jdbcType="TIMESTAMP" property="logTime" />
|
|
|
|
+ <result column="FunctionCode" jdbcType="VARCHAR" property="functionCode" />
|
|
|
|
+ <result column="FunctionName" jdbcType="VARCHAR" property="functionName" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
<where>
|
|
<where>
|
|
@@ -68,7 +70,7 @@
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
- LogID, PageName, PageUrl, ActionName, UserID, LogTime
|
|
|
|
|
|
+ LogID, PageName, PageUrl, ActionName, UserID, LogTime, FunctionCode, FunctionName
|
|
</sql>
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.bowintek.smartsearch.model.SysLogExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.bowintek.smartsearch.model.SysLogExample" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
@@ -102,11 +104,11 @@
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.bowintek.smartsearch.model.SysLog">
|
|
<insert id="insert" parameterType="com.bowintek.smartsearch.model.SysLog">
|
|
insert into sys_log (LogID, PageName, PageUrl,
|
|
insert into sys_log (LogID, PageName, PageUrl,
|
|
- ActionName, UserID, LogTime
|
|
|
|
- )
|
|
|
|
|
|
+ ActionName, UserID, LogTime,
|
|
|
|
+ FunctionCode, FunctionName)
|
|
values (#{logID,jdbcType=VARCHAR}, #{pageName,jdbcType=VARCHAR}, #{pageUrl,jdbcType=VARCHAR},
|
|
values (#{logID,jdbcType=VARCHAR}, #{pageName,jdbcType=VARCHAR}, #{pageUrl,jdbcType=VARCHAR},
|
|
- #{actionName,jdbcType=VARCHAR}, #{userID,jdbcType=VARCHAR}, #{logTime,jdbcType=TIMESTAMP}
|
|
|
|
- )
|
|
|
|
|
|
+ #{actionName,jdbcType=VARCHAR}, #{userID,jdbcType=VARCHAR}, #{logTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{functionCode,jdbcType=VARCHAR}, #{functionName,jdbcType=VARCHAR})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.bowintek.smartsearch.model.SysLog">
|
|
<insert id="insertSelective" parameterType="com.bowintek.smartsearch.model.SysLog">
|
|
insert into sys_log
|
|
insert into sys_log
|
|
@@ -129,6 +131,12 @@
|
|
<if test="logTime != null">
|
|
<if test="logTime != null">
|
|
LogTime,
|
|
LogTime,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="functionCode != null">
|
|
|
|
+ FunctionCode,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="functionName != null">
|
|
|
|
+ FunctionName,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="logID != null">
|
|
<if test="logID != null">
|
|
@@ -149,6 +157,12 @@
|
|
<if test="logTime != null">
|
|
<if test="logTime != null">
|
|
#{logTime,jdbcType=TIMESTAMP},
|
|
#{logTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="functionCode != null">
|
|
|
|
+ #{functionCode,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="functionName != null">
|
|
|
|
+ #{functionName,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.bowintek.smartsearch.model.SysLogExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="com.bowintek.smartsearch.model.SysLogExample" resultType="java.lang.Long">
|
|
@@ -178,6 +192,12 @@
|
|
<if test="row.logTime != null">
|
|
<if test="row.logTime != null">
|
|
LogTime = #{row.logTime,jdbcType=TIMESTAMP},
|
|
LogTime = #{row.logTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="row.functionCode != null">
|
|
|
|
+ FunctionCode = #{row.functionCode,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="row.functionName != null">
|
|
|
|
+ FunctionName = #{row.functionName,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
<if test="example != null">
|
|
<if test="example != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -190,7 +210,9 @@
|
|
PageUrl = #{row.pageUrl,jdbcType=VARCHAR},
|
|
PageUrl = #{row.pageUrl,jdbcType=VARCHAR},
|
|
ActionName = #{row.actionName,jdbcType=VARCHAR},
|
|
ActionName = #{row.actionName,jdbcType=VARCHAR},
|
|
UserID = #{row.userID,jdbcType=VARCHAR},
|
|
UserID = #{row.userID,jdbcType=VARCHAR},
|
|
- LogTime = #{row.logTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ LogTime = #{row.logTime,jdbcType=TIMESTAMP},
|
|
|
|
+ FunctionCode = #{row.functionCode,jdbcType=VARCHAR},
|
|
|
|
+ FunctionName = #{row.functionName,jdbcType=VARCHAR}
|
|
<if test="example != null">
|
|
<if test="example != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</if>
|
|
@@ -213,6 +235,12 @@
|
|
<if test="logTime != null">
|
|
<if test="logTime != null">
|
|
LogTime = #{logTime,jdbcType=TIMESTAMP},
|
|
LogTime = #{logTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="functionCode != null">
|
|
|
|
+ FunctionCode = #{functionCode,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="functionName != null">
|
|
|
|
+ FunctionName = #{functionName,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where LogID = #{logID,jdbcType=VARCHAR}
|
|
where LogID = #{logID,jdbcType=VARCHAR}
|
|
</update>
|
|
</update>
|
|
@@ -222,7 +250,9 @@
|
|
PageUrl = #{pageUrl,jdbcType=VARCHAR},
|
|
PageUrl = #{pageUrl,jdbcType=VARCHAR},
|
|
ActionName = #{actionName,jdbcType=VARCHAR},
|
|
ActionName = #{actionName,jdbcType=VARCHAR},
|
|
UserID = #{userID,jdbcType=VARCHAR},
|
|
UserID = #{userID,jdbcType=VARCHAR},
|
|
- LogTime = #{logTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ LogTime = #{logTime,jdbcType=TIMESTAMP},
|
|
|
|
+ FunctionCode = #{functionCode,jdbcType=VARCHAR},
|
|
|
|
+ FunctionName = #{functionName,jdbcType=VARCHAR}
|
|
where LogID = #{logID,jdbcType=VARCHAR}
|
|
where LogID = #{logID,jdbcType=VARCHAR}
|
|
</update>
|
|
</update>
|
|
</mapper>
|
|
</mapper>
|