细节调整
This commit is contained in:
parent
7bf4c684b2
commit
7bd3c25f31
|
|
@ -49,10 +49,7 @@ namespace LY.App.Service
|
||||||
return new ApiResult() { code = 1, msg = "设备不存在" };
|
return new ApiResult() { code = 1, msg = "设备不存在" };
|
||||||
}
|
}
|
||||||
await _redisService.SetAsync(key, deviceinfo, TimeSpan.FromDays(1));
|
await _redisService.SetAsync(key, deviceinfo, TimeSpan.FromDays(1));
|
||||||
deviceinfo.Lat = input.product_lat;
|
|
||||||
deviceinfo.Lon = input.product_lon;
|
|
||||||
//更新位置
|
|
||||||
await _db.Updateable(deviceinfo).ExecuteCommandAsync();
|
|
||||||
var entity = input.data.Adapt<List<Alarm>>();
|
var entity = input.data.Adapt<List<Alarm>>();
|
||||||
foreach (var item in entity)
|
foreach (var item in entity)
|
||||||
{
|
{
|
||||||
|
|
@ -132,6 +129,10 @@ namespace LY.App.Service
|
||||||
deviceinfo.Lon = input.product_lon;
|
deviceinfo.Lon = input.product_lon;
|
||||||
await _redisService.SetAsync(key, deviceinfo);
|
await _redisService.SetAsync(key, deviceinfo);
|
||||||
}
|
}
|
||||||
|
deviceinfo.Lat = input.product_lat;
|
||||||
|
deviceinfo.Lon = input.product_lon;
|
||||||
|
//更新位置
|
||||||
|
await _db.Updateable(deviceinfo).ExecuteCommandAsync();
|
||||||
}
|
}
|
||||||
private async Task<long> GetBatId(string droneId)
|
private async Task<long> GetBatId(string droneId)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue