feat 获取设备上传的时间

This commit is contained in:
2024-10-29 13:55:34 +08:00
parent 7f4950090e
commit 390452f57b
5 changed files with 39 additions and 4 deletions

View File

@@ -1,11 +1,11 @@
using Dlhis.ScheduledTask.DeviceUploadLog.Request;
using Dlhis.ScheduledTask.DeviceUploadLog.Response;
using Dlhis.ScheduledTask.DeviceUploadLog.Services;
using Kurisu.AspNetCore.CustomClass;
using Kurisu.AspNetCore.DataAccess.Dto;
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Org.BouncyCastle.Asn1.Crmf;
namespace Dlhis.ScheduledTask.DeviceUploadLog.Controllers;
@@ -67,4 +67,15 @@ public class DeviceUploadLogsController : ControllerBase
{
await _deviceUploadLogService.QiaoqiaoGaoshiqingAsync(request);
}
/// <summary>
/// 获取设备记录读取的配置
/// </summary>
/// <param name="deviceNo"></param>
/// <returns></returns>
[HttpGet("setting")]
public async Task<DateTimePeriod> GetDeviceUploadRecordSettingAsync(string deviceNo)
{
return await _deviceUploadLogService.GetDeviceUploadRecordSettingAsync(deviceNo);
}
}