|
|
@ -11,6 +11,7 @@ using Newtonsoft.Json; |
|
|
|
using Tiobon.Core.Common.Helper; |
|
|
|
using Tiobon.Core.Common.Helper; |
|
|
|
using SqlSugar; |
|
|
|
using SqlSugar; |
|
|
|
using static Tiobon.Core.Model.Consts; |
|
|
|
using static Tiobon.Core.Model.Consts; |
|
|
|
|
|
|
|
using Microsoft.IdentityModel.Tokens; |
|
|
|
|
|
|
|
|
|
|
|
namespace Tiobon.Core.Services |
|
|
|
namespace Tiobon.Core.Services |
|
|
|
{ |
|
|
|
{ |
|
|
@ -83,6 +84,12 @@ namespace Tiobon.Core.Services |
|
|
|
if (!string.IsNullOrWhiteSpace(entity.Indate)) |
|
|
|
if (!string.IsNullOrWhiteSpace(entity.Indate)) |
|
|
|
entity.Indate = DateTimeHelper.ConvertToDayString(entity.Indate); |
|
|
|
entity.Indate = DateTimeHelper.ConvertToDayString(entity.Indate); |
|
|
|
entity.ExamDate = DateTimeHelper.ConvertToDayString(entity.ExamDate); |
|
|
|
entity.ExamDate = DateTimeHelper.ConvertToDayString(entity.ExamDate); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (entity.ActualBeginTime != null && entity.ActualEndTime != null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
TimeSpan timeDifference = entity.ActualEndTime.Value - entity.ActualBeginTime.Value; |
|
|
|
|
|
|
|
entity.ExamDuration = StringHelper.TrimNumber(Convert.ToDecimal(timeDifference.TotalMinutes), 2); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return new ServicePageResult<Ghre_StudyRecordDto>(filter.pageNum, total, filter.pageSize, entitys); |
|
|
|
return new ServicePageResult<Ghre_StudyRecordDto>(filter.pageNum, total, filter.pageSize, entitys); |
|
|
|