tangjiang 2 месяцев назад
Родитель
Сommit
ece6db11e5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/Hotline.Share/Dtos/Order/OrderDto.cs

+ 1 - 1
src/Hotline.Share/Dtos/Order/OrderDto.cs

@@ -150,7 +150,7 @@ namespace Hotline.Share.Dtos.Order
         /// <returns></returns>
         public string GetAllDurationHour()
         {
-            if (CreationTimeHandleDurationWorkday > 0)
+            if (CreationTimeHandleDurationWorkday != null && CreationTimeHandleDurationWorkday > 0)
             {
                 return Math.Round(Math.Round(CreationTimeHandleDurationWorkday.Value) / 60 / 60, 2).ToString() + "";
             }