25 lines
733 B
C#
25 lines
733 B
C#
|
|
using JiShe.CollectBus.Common.Extensions;
|
|||
|
|
using JiShe.CollectBus.Protocol.Contracts.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);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|