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);