feat: 系统日志新增导出 API

This commit is contained in:
2024-04-09 21:33:52 +08:00
parent 7793f82009
commit bd0f40c6ad
9 changed files with 398 additions and 44 deletions

View File

@@ -1,7 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="top.charles7c.continew.admin.system.mapper.LogMapper">
<select id="selectLogPage" resultType="top.charles7c.continew.admin.system.model.resp.LogResp">
<select id="selectLogPage" resultType="top.charles7c.continew.admin.system.model.resp.log.LogResp">
SELECT
t1.id,
t1.description,
t1.module,
t1.time_taken,
t1.ip,
t1.address,
t1.browser,
t1.os,
t1.status,
t1.error_msg,
t1.create_user,
t1.create_time,
t2.nickname AS createUserString
FROM sys_log AS t1
LEFT JOIN sys_user AS t2 ON t2.id = t1.create_user
${ew.customSqlSegment}
</select>
<select id="selectLogList" resultType="top.charles7c.continew.admin.system.model.resp.log.LogResp">
SELECT
t1.id,
t1.description,
@@ -68,4 +88,4 @@
ORDER BY value DESC
LIMIT 10
</select>
</mapper>
</mapper>