添加操作次数

This commit is contained in:
2026-07-25 10:28:42 +08:00
parent cbbeab0c7b
commit 7a5fcb0853
2 changed files with 9 additions and 1 deletions
@@ -35,4 +35,10 @@ public class SysOptLogAccountResp implements Serializable {
@Schema(description = "账号")
private String account;
/**
* 日志条数
*/
@Schema(description = "日志条数")
private Long count;
}
@@ -5,10 +5,12 @@
<!-- 获取操作账号列表 -->
<select id="getOptAccountList" resultType="xtools.app.sys.model.dto.resp.SysOptLogAccountResp">
SELECT account_id AS accountId,
MAX(account) AS account
MAX(account) AS account,
COUNT(*) AS `count`
FROM sys_opt_log
WHERE gmt_create BETWEEN #{startTime} AND #{endTime}
GROUP BY account_id
ORDER BY COUNT(*) DESC
</select>
<!-- 获取该账号的操作日志 -->