添加操作次数
This commit is contained in:
+6
@@ -35,4 +35,10 @@ public class SysOptLogAccountResp implements Serializable {
|
|||||||
@Schema(description = "账号")
|
@Schema(description = "账号")
|
||||||
private String account;
|
private String account;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 日志条数
|
||||||
|
*/
|
||||||
|
@Schema(description = "日志条数")
|
||||||
|
private Long count;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,10 +5,12 @@
|
|||||||
<!-- 获取操作账号列表 -->
|
<!-- 获取操作账号列表 -->
|
||||||
<select id="getOptAccountList" resultType="xtools.app.sys.model.dto.resp.SysOptLogAccountResp">
|
<select id="getOptAccountList" resultType="xtools.app.sys.model.dto.resp.SysOptLogAccountResp">
|
||||||
SELECT account_id AS accountId,
|
SELECT account_id AS accountId,
|
||||||
MAX(account) AS account
|
MAX(account) AS account,
|
||||||
|
COUNT(*) AS `count`
|
||||||
FROM sys_opt_log
|
FROM sys_opt_log
|
||||||
WHERE gmt_create BETWEEN #{startTime} AND #{endTime}
|
WHERE gmt_create BETWEEN #{startTime} AND #{endTime}
|
||||||
GROUP BY account_id
|
GROUP BY account_id
|
||||||
|
ORDER BY COUNT(*) DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 获取该账号的操作日志 -->
|
<!-- 获取该账号的操作日志 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user