导表工具修改
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
using OfficeOpenXml;
|
||||
|
||||
namespace NBConfigBuilder;
|
||||
|
||||
public sealed class ExcelWorksheets(ExcelExporter excelExporter)
|
||||
{
|
||||
public bool TryGetValue(string worksheetName, out ExcelWorksheet excelWorksheet)
|
||||
{
|
||||
if (excelExporter.Worksheets.TryGetValue(worksheetName, out excelWorksheet))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
var computeHash64 = HashCodeHelper.ComputeHash64(worksheetName);
|
||||
if (!excelExporter.VersionInfo.WorksheetNames.Contains(computeHash64))
|
||||
{
|
||||
Log.Info($"{worksheetName} is not exist!");
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// using OfficeOpenXml;
|
||||
//
|
||||
// namespace NBConfigBuilder;
|
||||
//
|
||||
// public sealed class ExcelWorksheets(ExcelExporter excelExporter)
|
||||
// {
|
||||
// public bool TryGetValue(string worksheetName, out ExcelWorksheet excelWorksheet)
|
||||
// {
|
||||
// if (excelExporter.Worksheets.TryGetValue(worksheetName, out excelWorksheet))
|
||||
// {
|
||||
// return true;
|
||||
// }
|
||||
//
|
||||
// var computeHash64 = HashCodeHelper.ComputeHash64(worksheetName);
|
||||
// if (!excelExporter.VersionInfo.WorksheetNames.Contains(computeHash64))
|
||||
// {
|
||||
// Log.Info($"{worksheetName} is not exist!");
|
||||
// }
|
||||
//
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user