修改统计 分步查询
continuous-integration/drone/push Build is passing

This commit is contained in:
hang
2024-12-11 00:01:58 +08:00
parent 91cde3f944
commit b14f3fb251
2 changed files with 81 additions and 25 deletions
@@ -78,7 +78,7 @@ public static class ExcelExportHelper
foreach (var itemValuePair in itemDic)
{
// 临床数据 11 会变成2024-01-01
if (itemValuePair.Value?.ToString().Length > 4 && DateTime.TryParse(itemValuePair.Value?.ToString(), out DateTime result))
if (itemValuePair.Value?.ToString().Length > 8 && DateTime.TryParse(itemValuePair.Value?.ToString(), out DateTime result))
{
itemDic[itemValuePair.Key] = ExportExcelConverterDate.DateTimeInternationalToString(result);
}
@@ -338,7 +338,7 @@ public static class ExcelExportHelper
//处理集合里面时间类型,根据当前语言将时间转变为字符串
foreach (var itemValuePair in itemDic)
{
if (itemValuePair.Value?.ToString().Length > 4 && DateTime.TryParse(itemValuePair.Value?.ToString(), out DateTime result))
if (itemValuePair.Value?.ToString().Length > 8 && DateTime.TryParse(itemValuePair.Value?.ToString(), out DateTime result))
{
itemDic[itemValuePair.Key] = ExportExcelConverterDate.DateTimeInternationalToString(result);
}