细节调整

This commit is contained in:
yanghongwei 2025-04-05 17:50:08 +08:00
parent c25f5463c1
commit 7bf4c684b2
1 changed files with 10 additions and 13 deletions

View File

@ -39,8 +39,6 @@ namespace LY.App.Service
public async Task<ApiResult> AddAlarm(RevData input)
{
await SetDeviceStataus(input);
if (input.data.Any())
{
var key = RedisKeyList.DeviceInfo(input.product_ad_id);
var deviceinfo = await _redisService.GetAsync<DeviceEntity>(key);
if (deviceinfo == null)
@ -55,7 +53,6 @@ namespace LY.App.Service
deviceinfo.Lon = input.product_lon;
//更新位置
await _db.Updateable(deviceinfo).ExecuteCommandAsync();
}
var entity = input.data.Adapt<List<Alarm>>();
foreach (var item in entity)
{