master
xiaochanghai 3 weeks ago
parent 02e5af37c7
commit c731c542d1
  1. 3
      Tiobon.Core.Services/Ghre/Ghre_PlanServices.cs
  2. 2
      Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs

@ -289,6 +289,8 @@ public class Ghre_PlanServices : BaseServices<Ghre_Plan, Ghre_PlanDto, InsertGhr
else else
{ {
if (await QueryCompanyCode() == "Ushio")
{
var sql = $"select TrainDays,BeginDate,EndDate from [120.26.205.42].[GhrUshio].[dbo].Ushio_ExternalTrainApply where TrainNeeds like '%{d.Id}%'"; var sql = $"select TrainDays,BeginDate,EndDate from [120.26.205.42].[GhrUshio].[dbo].Ushio_ExternalTrainApply where TrainNeeds like '%{d.Id}%'";
var applys = await DbAccess.QueryListAsync<Ushio_ExternalTrainApply>(sql); var applys = await DbAccess.QueryListAsync<Ushio_ExternalTrainApply>(sql);
@ -306,6 +308,7 @@ public class Ghre_PlanServices : BaseServices<Ghre_Plan, Ghre_PlanDto, InsertGhr
d.M11_Count = applys.Where(x => x.BeginDate.Year == year && x.BeginDate.Month == 11).Sum(x => x.TrainDays); d.M11_Count = applys.Where(x => x.BeginDate.Year == year && x.BeginDate.Month == 11).Sum(x => x.TrainDays);
d.M12_Count = applys.Where(x => x.BeginDate.Year == year && x.BeginDate.Month == 12).Sum(x => x.TrainDays); d.M12_Count = applys.Where(x => x.BeginDate.Year == year && x.BeginDate.Month == 12).Sum(x => x.TrainDays);
} }
}

@ -1981,7 +1981,7 @@ WHERE A.Id = '{id}'";
StudyProgress = studyProgress1, StudyProgress = studyProgress1,
StudyStatus = studyStatus, StudyStatus = studyStatus,
StandardDuration = mins, StandardDuration = mins,
ReverseI1 = 1 //ReverseI1 = 1
}) })
.Where(it => it.Id == studyRecordId) .Where(it => it.Id == studyRecordId)
.ExecuteCommandAsync(); .ExecuteCommandAsync();

Loading…
Cancel
Save