增加系统业务配置操作日志功能,与系统日志菜单分离,增加相关国际化字典,并更新国际化部分翻译

This commit is contained in:
zhangwei
2018-10-26 15:22:41 +08:00
parent f2d52178a9
commit 47276ce162
10 changed files with 1429 additions and 1058 deletions

View File

@@ -28,6 +28,26 @@
ORDER BY a.create_date DESC
</select>
<select id="findCfgOperationLogList" resultType="sysLog">
SELECT
a.*
FROM sys_cfg_operation_log a
WHERE a.create_date BETWEEN #{beginDate} AND #{endDate}
<if test="functionName != null and functionName != ''">
AND a.function_name=#{functionName}
</if>
<if test="createBy != null and createBy != ''">
AND a.create_by = #{createBy}
</if>
<if test="operation != null and operation != ''">
AND a.operation=#{operation}
</if>
<if test="exception != null and exception != ''">
AND a.state = 0
</if>
ORDER BY a.create_date DESC
</select>
<insert id="insert" parameterType="sysLog" useGeneratedKeys="true" keyProperty="id" >
INSERT INTO sys_log(
@@ -59,4 +79,49 @@
)
</insert>
<insert id="insertCfgOperationLog" parameterType="sysLog" useGeneratedKeys="true" keyProperty="id" >
INSERT INTO sys_cfg_operation_log(
type,
title,
create_by,
create_date,
remote_addr,
user_agent,
request_uri,
method,
state,
consumer_time,
params,
exception,
compile_id,
cfg_id,
function_id,
method_name,
audit_state,
action,
operation,
function_name
) VALUES (
#{type},
#{title},
#{createBy},
#{createDate},
#{remoteAddr},
#{userAgent},
#{requestUri},
#{method},
#{state},
#{consumerTime},
#{params},
#{exception},
#{compileId},
#{cfgId},
#{functionId},
#{methodName},
#{auditState},
#{action},
#{operation},
#{functionName}
)
</insert>
</mapper>