25 lines
734 B
C#
Raw Permalink Normal View History

2025-04-25 14:35:59 +08:00
using JiShe.CollectBus.Protocol.Interfaces;
2025-04-24 19:31:28 +08:00
using Microsoft.Extensions.Logging;
2025-04-27 09:16:37 +08:00
namespace JiShe.CollectBus.Protocol.T37612012.Appendix
2025-04-24 19:31:28 +08:00
{
public class Appendix_A15 : IAnalysisStrategy<List<string>>
2025-04-24 19:31:28 +08:00
{
private readonly ILogger<Appendix_A15> _logger;
public Appendix_A15(ILogger<Appendix_A15> logger)
{
_logger = logger;
}
public async Task<bool> ExecuteAsync(List<string> data, Action<dynamic>? result = null)
2025-04-24 19:31:28 +08:00
{
data.Reverse();
data.Insert(0, DateTime.Now.ToString("yyyy").Substring(0, 2));
string date= string.Join("", data);
result?.Invoke(date);
return await Task.FromResult(true);
2025-04-24 19:31:28 +08:00
}
}
}