|
|
@ -58,6 +58,7 @@ FROM Ghre_Request A |
|
|
|
x.TrainLevelLabel = await GetParaLabel("TrainingRequestTrainLevel", x.TrainLevel); |
|
|
|
x.TrainLevelLabel = await GetParaLabel("TrainingRequestTrainLevel", x.TrainLevel); |
|
|
|
x.InOrOutLabel = await GetParaLabel("CourseInOrOut", x.InOrOut); |
|
|
|
x.InOrOutLabel = await GetParaLabel("CourseInOrOut", x.InOrOut); |
|
|
|
x.TeacherClassLabel = await GetParaLabel("TrainingTeacherType", x.InOrOut); |
|
|
|
x.TeacherClassLabel = await GetParaLabel("TrainingTeacherType", x.InOrOut); |
|
|
|
|
|
|
|
x.TrainCategory = await GetParaLabel("TrainingCategory", x.TrainCategory); |
|
|
|
|
|
|
|
|
|
|
|
//if (x.CourseId != null) |
|
|
|
//if (x.CourseId != null) |
|
|
|
// x.CourseName = courses.Where(o => x.CourseId == o.Id).FirstOrDefault()?.CourseName; |
|
|
|
// x.CourseName = courses.Where(o => x.CourseId == o.Id).FirstOrDefault()?.CourseName; |
|
|
@ -616,8 +617,20 @@ FROM Ghre_Request A |
|
|
|
insert.Status = config.ConfigValue; |
|
|
|
insert.Status = config.ConfigValue; |
|
|
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|
|
|
|
|
var inserts = new List<InsertGhre_RequestInput>(); |
|
|
|
|
|
|
|
var yearMonths = list[i].YearMonth.Split(',').ToList(); |
|
|
|
|
|
|
|
if (yearMonths.Count > 1) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
yearMonths.ForEach(x => |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var insert1 = Mapper.Map(insert).ToANew<InsertGhre_RequestInput>(); |
|
|
|
|
|
|
|
insert1.YearMonth = x; |
|
|
|
|
|
|
|
inserts.Add(insert1); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
await base.Add(inserts); |
|
|
|
|
|
|
|
}else |
|
|
|
|
|
|
|
await base.Add(insert); |
|
|
|
|
|
|
|
|
|
|
|
await base.Add(insert); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Log.Information($"【牛尾培训需求同步】查询到待同步{list.Count}条作废数据"); |
|
|
|
Log.Information($"【牛尾培训需求同步】查询到待同步{list.Count}条作废数据"); |
|
|
|