diff --git a/Model/Tiobon.Web.pdm b/Model/Tiobon.Web.pdm index 3b429ccc..47117b73 100644 --- a/Model/Tiobon.Web.pdm +++ b/Model/Tiobon.Web.pdm @@ -1,5 +1,5 @@ - + @@ -35435,10 +35435,10 @@ Ghra_staff_InsureBase IsGraduate 1729663174 Administrator -1729663376 +1731394264 Administrator 是否毕业 -int +bit BDF407F4-EA20-4673-A0EC-0C7157EFCDA3 diff --git a/Tiobon.Core.Model/Base/Ghrh/Ghrh_ResumeEduBG.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghrh/Ghrh_ResumeEduBG.Dto.Base.cs index 8e4083b0..b288c964 100644 --- a/Tiobon.Core.Model/Base/Ghrh/Ghrh_ResumeEduBG.Dto.Base.cs +++ b/Tiobon.Core.Model/Base/Ghrh/Ghrh_ResumeEduBG.Dto.Base.cs @@ -13,136 +13,132 @@ *│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ *│ 作者:SimonHsiao │ *└──────────────────────────────────┘ -*/ -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; +*/ +namespace Tiobon.Core.Model.Models; -namespace Tiobon.Core.Model.Models + +/// +/// 教育背景 (Dto.Base) +/// +public class Ghrh_ResumeEduBGBase { /// - /// 教育背景 (Dto.Base) - /// - public class Ghrh_ResumeEduBGBase - { - - /// - /// 简历ID - /// - public long? ResumeId { get; set; } - - /// - /// 学校名称 - /// - [Display(Name = "SchoolName"), Description("学校名称"), MaxLength(100, ErrorMessage = "学校名称 不能超过 100 个字符")] - public string SchoolName { get; set; } - - /// - /// 专业名称 - /// - [Display(Name = "DeptName"), Description("专业名称"), MaxLength(100, ErrorMessage = "专业名称 不能超过 100 个字符")] - public string DeptName { get; set; } - - /// - /// 开始日期 - /// - public DateTime? BeginDate { get; set; } - - /// - /// 结束日期 - /// - public DateTime? EndDate { get; set; } - - /// - /// 学历 - /// - [Display(Name = "DegreeLevel"), Description("学历"), MaxLength(32, ErrorMessage = "学历 不能超过 32 个字符")] - public string DegreeLevel { get; set; } - - /// - /// 是否毕业 - /// - public int? IsGraduate { get; set; } - - /// - /// 备注 - /// - [Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")] - public string RemarkSz { get; set; } - - /// - /// 默认标志 - /// - public int? IsDefault { get; set; } - - /// - /// 预留字段1 - /// - [Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")] - public string Reverse1 { get; set; } - - /// - /// 预留字段2 - /// - [Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")] - public string Reverse2 { get; set; } - - /// - /// 预留字段3 - /// - [Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")] - public string Reverse3 { get; set; } - - /// - /// 预留字段4 - /// - [Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")] - public string Reverse4 { get; set; } - - /// - /// 预留字段5 - /// - [Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")] - public string Reverse5 { get; set; } - - /// - /// 预留字段6 - /// - [Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")] - public string Reverse6 { get; set; } - - /// - /// 预留字段7 - /// - [Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")] - public string Reverse7 { get; set; } - - /// - /// 预留字段8 - /// - [Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")] - public string Reverse8 { get; set; } - - /// - /// 预留字段9 - /// - [Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")] - public string Reverse9 { get; set; } - - /// - /// 预留字段10 - /// - [Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")] - public string Reverse10 { get; set; } - - /// - /// 预留字段11 - /// - public int? ReverseI1 { get; set; } - - /// - /// 预留字段12 - /// - public int? ReverseI2 { get; set; } - } + /// 简历ID + /// + public long? ResumeId { get; set; } + + /// + /// 学校名称 + /// + [Display(Name = "SchoolName"), Description("学校名称"), MaxLength(100, ErrorMessage = "学校名称 不能超过 100 个字符")] + public string SchoolName { get; set; } + + /// + /// 专业名称 + /// + [Display(Name = "DeptName"), Description("专业名称"), MaxLength(100, ErrorMessage = "专业名称 不能超过 100 个字符")] + public string DeptName { get; set; } + + /// + /// 开始日期 + /// + public DateTime? BeginDate { get; set; } + + /// + /// 结束日期 + /// + public DateTime? EndDate { get; set; } + + /// + /// 学历 + /// + [Display(Name = "DegreeLevel"), Description("学历"), MaxLength(32, ErrorMessage = "学历 不能超过 32 个字符")] + public string DegreeLevel { get; set; } + + /// + /// 是否毕业 + /// + public bool? IsGraduate { get; set; } + + /// + /// 备注 + /// + [Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")] + public string RemarkSz { get; set; } + + /// + /// 默认标志 + /// + public int? IsDefault { get; set; } + + /// + /// 预留字段1 + /// + [Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")] + public string Reverse1 { get; set; } + + /// + /// 预留字段2 + /// + [Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")] + public string Reverse2 { get; set; } + + /// + /// 预留字段3 + /// + [Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")] + public string Reverse3 { get; set; } + + /// + /// 预留字段4 + /// + [Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")] + public string Reverse4 { get; set; } + + /// + /// 预留字段5 + /// + [Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")] + public string Reverse5 { get; set; } + + /// + /// 预留字段6 + /// + [Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")] + public string Reverse6 { get; set; } + + /// + /// 预留字段7 + /// + [Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")] + public string Reverse7 { get; set; } + + /// + /// 预留字段8 + /// + [Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")] + public string Reverse8 { get; set; } + + /// + /// 预留字段9 + /// + [Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")] + public string Reverse9 { get; set; } + + /// + /// 预留字段10 + /// + [Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")] + public string Reverse10 { get; set; } + + /// + /// 预留字段11 + /// + public int? ReverseI1 { get; set; } + + /// + /// 预留字段12 + /// + public int? ReverseI2 { get; set; } } diff --git a/Tiobon.Core.Model/Models/Ghrh/Ghrh_ResumeEduBG.cs b/Tiobon.Core.Model/Models/Ghrh/Ghrh_ResumeEduBG.cs index 9c523405..077d72e1 100644 --- a/Tiobon.Core.Model/Models/Ghrh/Ghrh_ResumeEduBG.cs +++ b/Tiobon.Core.Model/Models/Ghrh/Ghrh_ResumeEduBG.cs @@ -60,7 +60,7 @@ public class Ghrh_ResumeEduBG : BasePoco /// /// 是否毕业 /// - public int? IsGraduate { get; set; } + public bool? IsGraduate { get; set; } /// /// 备注 diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeEduBGServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeEduBGServices.cs index 2ba58683..3cd0f67f 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeEduBGServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeEduBGServices.cs @@ -17,7 +17,7 @@ public class Ghrh_ResumeEduBGServices : BaseServices x.Id.ToString()).ToList(); - var attachments = await Db.Queryable().Where(x => ids.Contains(x.TableName)).ToListAsync(); + var attachments = await Db.Queryable().Where(x => ids.Contains(x.TableName)).ToListAsync(); data.ForEach(x => { @@ -25,10 +25,10 @@ public class Ghrh_ResumeEduBGServices : BaseServices o.TableName == x.Id.ToString()) .Select(o => new ResumeAttachment() { - AttachmentID = o.Id, + AttachmentID = o.AttachmentID, AttachFileExtension = o.AttachFileExtension, AttachFileSize = o.AttachFileSize, - RelativePath = "/Advanced" + o.RelativePath, + RelativePath = o.RelativePath, AttachmentName = o.AttachmentName, RemarkSz = o.RemarkSz }).ToList(); @@ -44,10 +44,10 @@ public class Ghrh_ResumeEduBGServices : BaseServices x.AttachmentID != null).Select(x => x.AttachmentID.Value).ToList(); - await Db.Updateable() - .SetColumns(x => new Ghre_Attachment() { TableName = id.ToString(), UpdateTime = DateTime.Now }) - .Where(it => ids.Contains(it.Id)) + var ids = listEntity[i].AttachmentIDs.Select(x => x.RelativePath).ToList(); + await Db.Updateable() + .SetColumns(x => new Ghrs_Attachment() { TableName = id.ToString(), UpdateTime = DateTime.Now }) + .Where(it => it.AttachmentID != null && ids.Contains(it.RelativePath)) .ExecuteCommandAsync(); } result.Add(id); diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeHomeServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeHomeServices.cs index 7651101e..39d5061c 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeHomeServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeHomeServices.cs @@ -17,7 +17,7 @@ public class Ghrh_ResumeHomeServices : BaseServices x.Id.ToString()).ToList(); - var attachments = await Db.Queryable().Where(x => ids.Contains(x.TableName)).ToListAsync(); + var attachments = await Db.Queryable().Where(x => ids.Contains(x.TableName)).ToListAsync(); data.ForEach(x => { @@ -25,10 +25,10 @@ public class Ghrh_ResumeHomeServices : BaseServices o.TableName == x.Id.ToString()) .Select(o => new ResumeAttachment() { - AttachmentID = o.Id, + AttachmentID = o.AttachmentID, AttachFileExtension = o.AttachFileExtension, AttachFileSize = o.AttachFileSize, - RelativePath = "/Advanced" + o.RelativePath, + RelativePath = o.RelativePath, AttachmentName = o.AttachmentName, RemarkSz = o.RemarkSz }).ToList(); @@ -44,10 +44,10 @@ public class Ghrh_ResumeHomeServices : BaseServices x.AttachmentID != null).Select(x => x.AttachmentID.Value).ToList(); - await Db.Updateable() - .SetColumns(x => new Ghre_Attachment() { TableName = id.ToString(), UpdateTime = DateTime.Now }) - .Where(it => ids.Contains(it.Id)) + var ids = listEntity[i].AttachmentIDs.Select(x => x.RelativePath).ToList(); + await Db.Updateable() + .SetColumns(x => new Ghrs_Attachment() { TableName = id.ToString(), UpdateTime = DateTime.Now }) + .Where(it => it.AttachmentID != null && ids.Contains(it.RelativePath)) .ExecuteCommandAsync(); } result.Add(id); diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeLicenceServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeLicenceServices.cs index da6de783..57da5c5d 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeLicenceServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeLicenceServices.cs @@ -17,7 +17,7 @@ public class Ghrh_ResumeLicenceServices : BaseServices x.Id.ToString()).ToList(); - var attachments = await Db.Queryable().Where(x => ids.Contains(x.TableName)).ToListAsync(); + var attachments = await Db.Queryable().Where(x => ids.Contains(x.TableName)).ToListAsync(); data.ForEach(x => { @@ -25,10 +25,10 @@ public class Ghrh_ResumeLicenceServices : BaseServices o.TableName == x.Id.ToString()) .Select(o => new ResumeAttachment() { - AttachmentID = o.Id, + AttachmentID = o.AttachmentID, AttachFileExtension = o.AttachFileExtension, AttachFileSize = o.AttachFileSize, - RelativePath = "/Advanced" + o.RelativePath, + RelativePath = o.RelativePath, AttachmentName = o.AttachmentName, RemarkSz = o.RemarkSz }).ToList(); @@ -44,10 +44,10 @@ public class Ghrh_ResumeLicenceServices : BaseServices x.AttachmentID != null).Select(x => x.AttachmentID.Value).ToList(); - await Db.Updateable() - .SetColumns(x => new Ghre_Attachment() { TableName = id.ToString(), UpdateTime = DateTime.Now }) - .Where(it => ids.Contains(it.Id)) + var ids = listEntity[i].AttachmentIDs.Select(x => x.RelativePath).ToList(); + await Db.Updateable() + .SetColumns(x => new Ghrs_Attachment() { TableName = id.ToString(), UpdateTime = DateTime.Now }) + .Where(it => it.AttachmentID != null && ids.Contains(it.RelativePath)) .ExecuteCommandAsync(); } result.Add(id); diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs index f4bb4130..76fc52de 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs @@ -9,6 +9,9 @@ public class Ghrh_ResumeServices : BaseServices + /// 家庭关系 + /// private readonly IGhrh_ResumeHomeServices _ghrh_ResumeHomeServices; private readonly IGhrh_ResumeLicenceServices _ghrh_ResumeLicenceServices; private readonly IGhrh_ResumeTrainingServices _ghrh_ResumeTrainingServices; @@ -181,7 +184,7 @@ public class Ghrh_ResumeServices : BaseServices x.GroupType == "Family").Select(x => x.ColumnName).ToList(); columnNames = columnNames.Distinct().ToList(); var familys = await _ghrh_ResumeHomeServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); - var family = new List>(); - familys.ForEach(x => + var familyDic = new List>(); + familys.ForEach(family => { var dicts = new Dictionary(); columnNames.ForEach(x => { - var value = entity.GetPropertyValue(x); + var value = family.GetPropertyValue(x); dicts.Add(x, value); }); if (columnNames.Any(x => x == "AttachmentIDs")) - dicts["AttachmentIDs"] = x.AttachmentIDs; - family.Add(dicts); + dicts["AttachmentIDs"] = family.AttachmentIDs; + familyDic.Add(dicts); }); - Data.Family = family; + Data.Family = familyDic; #endregion #region 教育背景 @@ -633,84 +653,84 @@ END"; columnNames = formColumns.Where(x => x.GroupType == "Education").Select(x => x.ColumnName).ToList(); columnNames = columnNames.Distinct().ToList(); var educations = await _ghrh_ResumeEduBGServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); - var education = new List>(); - educations.ForEach(x => + var educationDic = new List>(); + educations.ForEach(education => { var dicts = new Dictionary(); columnNames.ForEach(x => { - var value = entity.GetPropertyValue(x); + var value = education.GetPropertyValue(x); dicts.Add(x, value); }); if (columnNames.Any(x => x == "AttachmentIDs")) - dicts["AttachmentIDs"] = x.AttachmentIDs; - education.Add(dicts); + dicts["AttachmentIDs"] = education.AttachmentIDs; + educationDic.Add(dicts); }); - Data.Education = education; + Data.Education = educationDic; #endregion #region 工作经历 columnNames = formColumns.Where(x => x.GroupType == "WorkExp").Select(x => x.ColumnName).ToList(); columnNames = columnNames.Distinct().ToList(); var workExps = await _ghrh_ResumeWorkExpServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); - var workExp = new List>(); - workExps.ForEach(x => + var workExpDic = new List>(); + workExps.ForEach(workExp => { var dicts = new Dictionary(); columnNames.ForEach(x => { - var value = entity.GetPropertyValue(x); + var value = workExp.GetPropertyValue(x); dicts.Add(x, value); }); if (columnNames.Any(x => x == "AttachmentIDs")) - dicts["AttachmentIDs"] = x.AttachmentIDs; - workExp.Add(dicts); + dicts["AttachmentIDs"] = workExp.AttachmentIDs; + workExpDic.Add(dicts); }); - Data.WorkExp = workExp; + Data.WorkExp = workExpDic; #endregion #region 证件 columnNames = formColumns.Where(x => x.GroupType == "Licence").Select(x => x.ColumnName).ToList(); columnNames = columnNames.Distinct().ToList(); var Licences = await _ghrh_ResumeLicenceServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); - var Licence = new List>(); - Licences.ForEach(x => + var licenceDic = new List>(); + Licences.ForEach(licence => { var dicts = new Dictionary(); columnNames.ForEach(x => { - var value = entity.GetPropertyValue(x); + var value = licence.GetPropertyValue(x); dicts.Add(x, value); }); if (columnNames.Any(x => x == "AttachmentIDs")) - dicts["AttachmentIDs"] = x.AttachmentIDs; - Licence.Add(dicts); + dicts["AttachmentIDs"] = licence.AttachmentIDs; + licenceDic.Add(dicts); }); - Data.Licence = Licence; + Data.Licence = licenceDic; #endregion #region 简历培训记录 columnNames = formColumns.Where(x => x.GroupType == "Training").Select(x => x.ColumnName).ToList(); columnNames = columnNames.Distinct().ToList(); var Trainings = await _ghrh_ResumeTrainingServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); - var Training = new List>(); - Trainings.ForEach(x => + var trainingDic = new List>(); + Trainings.ForEach(training => { var dicts = new Dictionary(); columnNames.ForEach(x => { - var value = entity.GetPropertyValue(x); + var value = training.GetPropertyValue(x); dicts.Add(x, value); }); if (columnNames.Any(x => x == "AttachmentIDs")) - dicts["AttachmentIDs"] = x.AttachmentIDs; - Training.Add(dicts); + dicts["AttachmentIDs"] = training.AttachmentIDs; + trainingDic.Add(dicts); }); - Data.Training = Training; + Data.Training = trainingDic; #endregion Data.Attachment = await Db.Queryable().Where(x => x.TableName == id.ObjToString()).ToListAsync(); @@ -1056,7 +1076,7 @@ END"; else if (x.ColumnName == "PoliticStatus") x.ColumnName = "PoliticStatusLabel"; else if (x.ColumnName == "UrgentRelation") - x.ColumnName = "UrgentRelationLabel"; + x.ColumnName = "UrgentRelationLabel"; else if (x.ColumnName == "CertificateType") x.ColumnName = "CertificateTypeLabel"; else if (x.ColumnName == "RegisteredType") diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeTrainingServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeTrainingServices.cs index 6f062783..c791cce0 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeTrainingServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeTrainingServices.cs @@ -17,7 +17,7 @@ public class Ghrh_ResumeTrainingServices : BaseServices x.Id.ToString()).ToList(); - var attachments = await Db.Queryable().Where(x => ids.Contains(x.TableName)).ToListAsync(); + var attachments = await Db.Queryable().Where(x => ids.Contains(x.TableName)).ToListAsync(); data.ForEach(x => { @@ -25,10 +25,10 @@ public class Ghrh_ResumeTrainingServices : BaseServices o.TableName == x.Id.ToString()) .Select(o => new ResumeAttachment() { - AttachmentID = o.Id, + AttachmentID = o.AttachmentID, AttachFileExtension = o.AttachFileExtension, AttachFileSize = o.AttachFileSize, - RelativePath = "/Advanced" + o.RelativePath, + RelativePath = o.RelativePath, AttachmentName = o.AttachmentName, RemarkSz = o.RemarkSz }).ToList(); @@ -44,10 +44,10 @@ public class Ghrh_ResumeTrainingServices : BaseServices x.AttachmentID != null).Select(x => x.AttachmentID.Value).ToList(); - await Db.Updateable() - .SetColumns(x => new Ghre_Attachment() { TableName = id.ToString(), UpdateTime = DateTime.Now }) - .Where(it => ids.Contains(it.Id)) + var ids = listEntity[i].AttachmentIDs.Select(x => x.RelativePath).ToList(); + await Db.Updateable() + .SetColumns(x => new Ghrs_Attachment() { TableName = id.ToString(), UpdateTime = DateTime.Now }) + .Where(it => it.AttachmentID != null && ids.Contains(it.RelativePath)) .ExecuteCommandAsync(); } result.Add(id); diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeWorkExpServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeWorkExpServices.cs index da6c02b4..e3d66a4b 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeWorkExpServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeWorkExpServices.cs @@ -17,7 +17,7 @@ public class Ghrh_ResumeWorkExpServices : BaseServices x.Id.ToString()).ToList(); - var attachments = await Db.Queryable().Where(x => ids.Contains(x.TableName)).ToListAsync(); + var attachments = await Db.Queryable().Where(x => ids.Contains(x.TableName)).ToListAsync(); data.ForEach(x => { @@ -25,10 +25,10 @@ public class Ghrh_ResumeWorkExpServices : BaseServices o.TableName == x.Id.ToString()) .Select(o => new ResumeAttachment() { - AttachmentID = o.Id, + AttachmentID = o.AttachmentID, AttachFileExtension = o.AttachFileExtension, AttachFileSize = o.AttachFileSize, - RelativePath = "/Advanced" + o.RelativePath, + RelativePath = o.RelativePath, AttachmentName = o.AttachmentName, RemarkSz = o.RemarkSz }).ToList(); @@ -44,10 +44,10 @@ public class Ghrh_ResumeWorkExpServices : BaseServices x.AttachmentID != null).Select(x => x.AttachmentID.Value).ToList(); - await Db.Updateable() - .SetColumns(x => new Ghre_Attachment() { TableName = id.ToString(), UpdateTime = DateTime.Now }) - .Where(it => ids.Contains(it.Id)) + var ids = listEntity[i].AttachmentIDs.Select(x => x.RelativePath).ToList(); + await Db.Updateable() + .SetColumns(x => new Ghrs_Attachment() { TableName = id.ToString(), UpdateTime = DateTime.Now }) + .Where(it => it.AttachmentID != null && ids.Contains(it.RelativePath)) .ExecuteCommandAsync(); } result.Add(id); diff --git a/Tiobon.Core/Tiobon.Core.xml b/Tiobon.Core/Tiobon.Core.xml index 5596c195..e141ede8 100644 --- a/Tiobon.Core/Tiobon.Core.xml +++ b/Tiobon.Core/Tiobon.Core.xml @@ -271,6 +271,7 @@ 获取模块信息接口 + @@ -757,6 +758,7 @@ 获取通用列表下拉 + @@ -955,6 +957,7 @@ 获取通用列表下拉 + @@ -1154,6 +1157,7 @@ 记录学习时长 +