|
|
|
@ -43,7 +43,18 @@ public class Ghrh_OfferApplyOrderServices : BaseServices<Ghrh_OfferApplyOrder, G |
|
|
|
|
var jobIds = entitys.Where(x => x.JobId != null).Select(x => x.JobId).ToList(); |
|
|
|
|
var reportIds = entitys.Where(x => x.ReportId != null).Select(x => x.ReportId).ToList(); |
|
|
|
|
reportIds.AddRange(entitys.Where(x => x.ApplicantId != null).Select(x => x.ApplicantId).ToList()); |
|
|
|
|
var zoneIds = entitys.Where(x => x.ZoneId != null).Select(x => x.ZoneId).ToList(); |
|
|
|
|
|
|
|
|
|
if (zoneIds.Any()) |
|
|
|
|
{ |
|
|
|
|
var zones = await Db.Queryable<Ghra_Zone>().Where(x => zoneIds.Contains(x.ZoneID)).ToListAsync(); |
|
|
|
|
|
|
|
|
|
entitys.ForEach(rule => |
|
|
|
|
{ |
|
|
|
|
if (rule.ZoneId != null) |
|
|
|
|
rule.ZoneName = zones.FirstOrDefault(o => rule.ZoneId == o.ZoneID)?.ZoneName; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if (reportIds.Any()) |
|
|
|
|
{ |
|
|
|
|
var staffs = await Db.Queryable<Ghra_Staff>().Where(x => reportIds.Contains(x.StaffID)).ToListAsync(); |
|
|
|
@ -298,7 +309,7 @@ public class Ghrh_OfferApplyOrderServices : BaseServices<Ghrh_OfferApplyOrder, G |
|
|
|
|
var applyOrder = await base.QuerySingle(x => x.ResumeId == resumeId); |
|
|
|
|
if (applyOrder != null) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
obj.CompanyId = applyOrder.CompanyId; |
|
|
|
|
obj.DeptId = applyOrder.DeptId; |
|
|
|
|
obj.TitleId = applyOrder.TitleId; |
|
|
|
@ -309,7 +320,7 @@ public class Ghrh_OfferApplyOrderServices : BaseServices<Ghrh_OfferApplyOrder, G |
|
|
|
|
obj.StaffType = applyOrder.StaffType; |
|
|
|
|
obj.GradeId = applyOrder.GradeId; |
|
|
|
|
obj.PeriodMasterId = applyOrder.PeriodMasterId; |
|
|
|
|
obj.JobId = applyOrder.JobId; |
|
|
|
|
obj.JobId = applyOrder.JobId; |
|
|
|
|
obj.ProbationMonths = applyOrder.ProbationMonths; |
|
|
|
|
obj.ReportId = applyOrder.ReportId; |
|
|
|
|
obj.JobResponsibility = applyOrder.JobResponsibility; |
|
|
|
|