导表质疑时长 优化
continuous-integration/drone/push Build is passing Details

IRC_NewDev
hang 2024-08-27 17:04:39 +08:00
parent 2cd78ab94e
commit 176f50e836
1 changed files with 6 additions and 2 deletions

View File

@ -311,7 +311,11 @@ namespace IRaCIS.Core.Application.Contracts
get
{
if (!ClosedTime.HasValue)
return "";
{
var now = DateTime.Now;
return string.Format("{0}d {1}h {2}m", (now - CreateTime)?.Days, (now - CreateTime)?.Hours, (now - CreateTime)?.Minutes);
}
else return string.Format("{0}d {1}h {2}m", (ClosedTime - CreateTime)?.Days, (ClosedTime - CreateTime)?.Hours, (ClosedTime - CreateTime)?.Minutes);
}
}