perf(web):操作日志优化

1,不再返回params字段
2,params字段有text改为longtext
This commit is contained in:
曾文豪
2023-07-11 08:58:48 +08:00
parent a658298363
commit 101270e881
4 changed files with 25 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ CREATE TABLE `core_log_operation`
`user_name` varchar(255) DEFAULT NULL COMMENT '用户名称',
`title` varchar(255) DEFAULT NULL COMMENT '标题',
`subject` varchar(500) DEFAULT NULL COMMENT '小标题',
`params` text COMMENT '其他参数',
`params` longtext COMMENT '其他参数',
PRIMARY KEY (`id`)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='日志-操作';

View File

@@ -19,4 +19,9 @@
id, create_time, update_time, is_deleted, user_id, user_name, title, subject, params
</sql>
<select id="page" resultMap="BaseResultMap">
select id,create_time,update_time,is_deleted,user_name,user_id,title,subject from core_log_operation
${ew.customSqlSegment}
</select>
</mapper>