提交代码
This commit is contained in:
parent
900075adf8
commit
a772396bba
@ -10,6 +10,7 @@ using JiShe.CollectBus.Protocol3761;
|
|||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using static System.Runtime.InteropServices.JavaScript.JSType;
|
||||||
|
|
||||||
namespace JiShe.CollectBus.Protocol.T37612012.AnalysisData.AFN_0EH
|
namespace JiShe.CollectBus.Protocol.T37612012.AnalysisData.AFN_0EH
|
||||||
{
|
{
|
||||||
@ -48,7 +49,7 @@ namespace JiShe.CollectBus.Protocol.T37612012.AnalysisData.AFN_0EH
|
|||||||
if (list.Count > 0)
|
if (list.Count > 0)
|
||||||
{
|
{
|
||||||
// 查询设备信息
|
// 查询设备信息
|
||||||
DeviceInfo? deviceInfo = await _dataStorage.GetDeviceInfoAsync(input.A.Code, input.DA.Pn);
|
DeviceInfo? deviceInfo = await _dataStorage.GetDeviceInfoAsync(input.A.Code);
|
||||||
if (deviceInfo != null)
|
if (deviceInfo != null)
|
||||||
{
|
{
|
||||||
list.ForEach(item =>
|
list.ForEach(item =>
|
||||||
@ -57,6 +58,7 @@ namespace JiShe.CollectBus.Protocol.T37612012.AnalysisData.AFN_0EH
|
|||||||
item.DeviceId = deviceInfo.MeterId;
|
item.DeviceId = deviceInfo.MeterId;
|
||||||
item.DatabaseBusiID = deviceInfo.DatabaseBusiID;
|
item.DatabaseBusiID = deviceInfo.DatabaseBusiID;
|
||||||
item.DeviceAddress = deviceInfo.MeterAddress;
|
item.DeviceAddress = deviceInfo.MeterAddress;
|
||||||
|
item.DeviceType = MeterTypeEnum.Focus;
|
||||||
item.FocusId = deviceInfo.FocusId;
|
item.FocusId = deviceInfo.FocusId;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user