添加用户操作日志功能

This commit is contained in:
huangxianguo 2024-07-09 13:53:06 +08:00
parent 810bd3e497
commit 1076bc6ea8
1 changed files with 1 additions and 3 deletions

View File

@ -1,10 +1,8 @@
using MasstransferCommon.Model.Constant; using MasstransferCommon.Model.Constant;
using MasstransferCommon.Model.Entity; using MasstransferCommon.Model.Entity;
using MasstransferCommon.Utils;
using MasstransferCommunicate.Mqtt.Client; using MasstransferCommunicate.Mqtt.Client;
using MasstransferExporter.LogExporter.Model; using MasstransferExporter.LogExporter.Model;
using MasstransferInfrastructure.Database.Sqlite; using MasstransferInfrastructure.Database.Sqlite;
using Masuit.Tools.DateTimeExt;
namespace MasstransferExporter.LogExporter; namespace MasstransferExporter.LogExporter;
@ -20,7 +18,7 @@ public class OperationLogExporter
/// </summary> /// </summary>
public static async Task ExportOperationLog() public static async Task ExportOperationLog()
{ {
var yesterday = DateTime.Today.AddDays(-7); var yesterday = DateTime.Today.AddDays(-1);
// 读取出昨天内的用户操作日志 // 读取出昨天内的用户操作日志