细节调整
This commit is contained in:
parent
c25f5463c1
commit
7bf4c684b2
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue