修改代码

This commit is contained in:
ChenYi 2025-05-14 15:21:33 +08:00
parent 94ff58dd12
commit ee0b48afbd

View File

@ -125,6 +125,7 @@ namespace JiShe.CollectBus.ScheduledMeterReading
BrandType = "DDS1980",
MeterType = MeterTypeEnum.Ammeter,
ProjectID = 1,
MeteringPort = 2,
});
ammeterInfos.Add(new DeviceInfo()
@ -143,6 +144,7 @@ namespace JiShe.CollectBus.ScheduledMeterReading
BrandType = "DDS1980",
MeterType = MeterTypeEnum.Ammeter,
ProjectID = 1,
MeteringPort = 2,
});
//ammeterInfos.Add(new DeviceInfo()
@ -286,12 +288,26 @@ namespace JiShe.CollectBus.ScheduledMeterReading
FocusId = 95780,
ProjectID = 1,
TripType = "off",
TripTime = "14:02",
TripTime = $"{DateTime.Now:HH:mm}",
MeterId = 127035,
LoopType = "EachDay",
EachDayWithout = "周六,周日",
TimeDensity = 15,
});
settingInfos.Add(new AmmeterAutoValveControlSetting()
{
MeterType = MeterTypeEnum.Ammeter,
AmmerterAddress = "442405000039",
FocusAddress = "442400039",
FocusId = 69280,
ProjectID = 1,
TripType = "off",
TripTime = $"{DateTime.Now:HH:mm}",
MeterId = 95594,
LoopType = "EachDay",
EachDayWithout = "周六,周日",
TimeDensity = 15,
});
#else
//获取电表阀控配置
var settingInfos = await GetAmmeterAutoValveControlSetting(currentTimeStr);