优化学习记录Excel导入

master
xiaochanghai 9 months ago
parent 388402a052
commit 63f8cd7a3e
  1. 8
      Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs

@ -646,11 +646,11 @@ public class Ghre_StudyRecordServices : BaseServices<Ghre_StudyRecord, Ghre_Stud
}
DateTime? dtCourseBeginTime = null;
if (dtCourseBeginTime.IsNotEmptyOrNull())
if (courseBeginTime.IsNotEmptyOrNull())
{
try
{
dtCourseBeginTime = Convert.ToDateTime(dtCourseBeginTime);
dtCourseBeginTime = Convert.ToDateTime(courseBeginTime);
}
catch (Exception)
{
@ -662,11 +662,11 @@ public class Ghre_StudyRecordServices : BaseServices<Ghre_StudyRecord, Ghre_Stud
}
DateTime? dtCourseEndTime = null;
if (dtCourseEndTime.IsNotEmptyOrNull())
if (courseEndTime.IsNotEmptyOrNull())
{
try
{
dtCourseEndTime = Convert.ToDateTime(dtCourseEndTime);
dtCourseEndTime = Convert.ToDateTime(courseEndTime);
}
catch (Exception)
{

Loading…
Cancel
Save