From 8e5443624e9531763ff685260c40ac39a502f29a Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 8 Jan 2025 18:45:30 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E9=80=9A=E8=A1=8C=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AE=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.Entity/Device/Entities/DeviceUploadLogEntity.cs | 4 +++- .../DeviceUploadLog/Controllers/DeviceUploadLogsController.cs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Src/Dlhis.Entity/Device/Entities/DeviceUploadLogEntity.cs b/Src/Dlhis.Entity/Device/Entities/DeviceUploadLogEntity.cs index 2bc71180..b251fb54 100644 --- a/Src/Dlhis.Entity/Device/Entities/DeviceUploadLogEntity.cs +++ b/Src/Dlhis.Entity/Device/Entities/DeviceUploadLogEntity.cs @@ -1,4 +1,5 @@ -using Dlhis.Entity.Basic.Enums; +using Dlhis.DataPermission.Model; +using Dlhis.Entity.Basic.Enums; using Dlhis.Entity.Device.Enums; using Kurisu.AspNetCore.DataAccess.Entity; using Kurisu.AspNetCore.DataAccess.SqlSugar; @@ -16,6 +17,7 @@ public class DeviceUploadLogEntity : SugarBaseEntity, ITenantId /// /// 设备code /// + [DeviceCode] [SugarColumn(IsNullable = false)] public Guid DeviceCode { get; set; } diff --git a/Src/Dlhis.ScheduledTask/DeviceUploadLog/Controllers/DeviceUploadLogsController.cs b/Src/Dlhis.ScheduledTask/DeviceUploadLog/Controllers/DeviceUploadLogsController.cs index 4b5233dc..f9dda4f0 100644 --- a/Src/Dlhis.ScheduledTask/DeviceUploadLog/Controllers/DeviceUploadLogsController.cs +++ b/Src/Dlhis.ScheduledTask/DeviceUploadLog/Controllers/DeviceUploadLogsController.cs @@ -30,6 +30,7 @@ public class DeviceUploadLogsController : ControllerBase /// /// [HttpGet("page")] + [DataPermission] public async Task> GetPageAsync([FromQuery] DeviceUploadLogPageRequest request) { return await _deviceUploadLogService.GetPageAsync(request);