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>, 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);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|