修改代码

This commit is contained in:
陈益 2025-04-13 21:47:47 +08:00
parent 608337948a
commit d25034fddd
2 changed files with 3 additions and 2 deletions

View File

@ -704,6 +704,7 @@ namespace JiShe.CollectBus.ScheduledMeterReading
AFN = aFN,
Fn = fn,
ItemCode = tempItem,
TaskMark = CommonHelper.GetTaskMark((int)aFN, fn,ammeter.MeteringCode),
ManualOrNot = false,
Pn = ammeter.MeteringCode,
IssuedMessageId = GuidGenerator.Create().ToString(),
@ -976,7 +977,7 @@ namespace JiShe.CollectBus.ScheduledMeterReading
#region
/// <summary>
/// 批量获取缓存的表计信息
/// Lua脚本批量获取缓存的表计信息
/// </summary>
/// <typeparam name="T">表信息数据对象</typeparam>
/// <param name="redisKeys">采集频率对应的缓存Key集合</param>

View File

@ -770,7 +770,7 @@ namespace JiShe.CollectBus.Common.Helpers
/// <returns></returns>
public static string GetTaskMark(int afn,int fn,int pn)
{
return $"{afn}{fn}{pn}";
return $"{afn.ToString().PadLeft(2,'0')}{fn}{pn}";
}
}
}