24 lines
681 B
C#
24 lines
681 B
C#
using JiShe.CollectBus.Protocol.Interfaces;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace JiShe.CollectBus.Protocol.AnalysisData.Appendix
|
|
{
|
|
public class Appendix_A15 : IAnalysisStrategy<List<string>, string>
|
|
{
|
|
private readonly ILogger<Appendix_A15> _logger;
|
|
|
|
public Appendix_A15(ILogger<Appendix_A15> logger)
|
|
{
|
|
_logger = logger;
|
|
}
|
|
|
|
public async Task<string> ExecuteAsync(List<string> data)
|
|
{
|
|
data.Reverse();
|
|
data.Insert(0, DateTime.Now.ToString("yyyy").Substring(0, 2));
|
|
string date= string.Join("", data);
|
|
return await Task.FromResult(date);
|
|
}
|
|
}
|
|
}
|