diff --git a/Tiobon.Core.Api/Controllers/Ghra/Ghra_StaffSocialRelationController.cs b/Tiobon.Core.Api/Controllers/Ghra/Ghra_StaffSocialRelationController.cs
new file mode 100644
index 00000000..9529b8bf
--- /dev/null
+++ b/Tiobon.Core.Api/Controllers/Ghra/Ghra_StaffSocialRelationController.cs
@@ -0,0 +1,14 @@
+namespace Tiobon.Core.Api.Controllers;
+
+///
+/// Ghra_StaffSocialRelation(Controller)
+///
+[Route("api/[controller]")]
+[ApiController, GlobalActionFilter]
+[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghra)]
+public class Ghra_StaffSocialRelationController : BaseController
+{
+ public Ghra_StaffSocialRelationController(IGhra_StaffSocialRelationServices service) : base(service)
+ {
+ }
+}
\ No newline at end of file
diff --git a/Tiobon.Core.Api/Tiobon.Core.Model.xml b/Tiobon.Core.Api/Tiobon.Core.Model.xml
index e44483b8..bb940093 100644
--- a/Tiobon.Core.Api/Tiobon.Core.Model.xml
+++ b/Tiobon.Core.Api/Tiobon.Core.Model.xml
@@ -1064,6 +1064,111 @@
Reverse5
+
+
+ Ghra_StaffSocialRelation (Dto.Base)
+
+
+
+
+ StaffSocialRelationID
+
+
+
+
+ StaffID
+
+
+
+
+ RelationType
+
+
+
+
+ RelationName
+
+
+
+
+ IDCardNo
+
+
+
+
+ Gender
+
+
+
+
+ Birthday
+
+
+
+
+ CompanyName
+
+
+
+
+ DeptName
+
+
+
+
+ RelationAddress
+
+
+
+
+ RelationTel
+
+
+
+
+ AttachmentIDs
+
+
+
+
+ RemarkSz
+
+
+
+
+ SortNo
+
+
+
+
+ IsDefault
+
+
+
+
+ Reverse1
+
+
+
+
+ Reverse2
+
+
+
+
+ Reverse3
+
+
+
+
+ Reverse4
+
+
+
+
+ Reverse5
+
+
Ghra_StaffTraining (Dto.Base)
@@ -11152,6 +11257,11 @@
Ghra_StaffLicence (Dto.EditInput)
+
+
+ Ghra_StaffSocialRelation (Dto.EditInput)
+
+
Ghra_StaffTraining (Dto.EditInput)
@@ -11557,6 +11667,11 @@
Ghra_StaffLicence (Dto.InsertInput)
+
+
+ Ghra_StaffSocialRelation (Dto.InsertInput)
+
+
Ghra_StaffTraining (Dto.InsertInput)
@@ -13173,6 +13288,111 @@
Reverse5
+
+
+ Ghra_StaffSocialRelation (Model)
+
+
+
+
+ StaffSocialRelationID
+
+
+
+
+ StaffID
+
+
+
+
+ RelationType
+
+
+
+
+ RelationName
+
+
+
+
+ IDCardNo
+
+
+
+
+ Gender
+
+
+
+
+ Birthday
+
+
+
+
+ CompanyName
+
+
+
+
+ DeptName
+
+
+
+
+ RelationAddress
+
+
+
+
+ RelationTel
+
+
+
+
+ AttachmentIDs
+
+
+
+
+ RemarkSz
+
+
+
+
+ SortNo
+
+
+
+
+ IsDefault
+
+
+
+
+ Reverse1
+
+
+
+
+ Reverse2
+
+
+
+
+ Reverse3
+
+
+
+
+ Reverse4
+
+
+
+
+ Reverse5
+
+
Ghra_StaffTraining (Model)
@@ -24112,6 +24332,21 @@
修改信息
+
+
+ Ghra_StaffSocialRelation(Dto.View1)
+
+
+
+
+ 创建信息
+
+
+
+
+ 修改信息
+
+
Ghra_StaffTraining(Dto.View)
diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml
index 6c403e76..74e73fe5 100644
--- a/Tiobon.Core.Api/Tiobon.Core.xml
+++ b/Tiobon.Core.Api/Tiobon.Core.xml
@@ -706,6 +706,11 @@
Ghra_StaffLicence(Controller)
+
+
+ Ghra_StaffSocialRelation(Controller)
+
+
Ghra_StaffTraining(Controller)
diff --git a/Tiobon.Core.IServices/Ghra/IGhra_StaffSocialRelationServices.cs b/Tiobon.Core.IServices/Ghra/IGhra_StaffSocialRelationServices.cs
new file mode 100644
index 00000000..c6297f6f
--- /dev/null
+++ b/Tiobon.Core.IServices/Ghra/IGhra_StaffSocialRelationServices.cs
@@ -0,0 +1,12 @@
+using Tiobon.Core.IServices.BASE;
+using Tiobon.Core.Model.Models;
+
+namespace Tiobon.Core.IServices
+{
+ ///
+ /// Ghra_StaffSocialRelation(自定义服务接口)
+ ///
+ public interface IGhra_StaffSocialRelationServices :IBaseServices
+ {
+ }
+}
\ No newline at end of file
diff --git a/Tiobon.Core.Model/Base/Ghra/Ghra_StaffSocialRelation.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghra/Ghra_StaffSocialRelation.Dto.Base.cs
new file mode 100644
index 00000000..b0d599e2
--- /dev/null
+++ b/Tiobon.Core.Model/Base/Ghra/Ghra_StaffSocialRelation.Dto.Base.cs
@@ -0,0 +1,144 @@
+/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。
+* Ghra_StaffSocialRelation.cs
+*
+*功 能: N / A
+* 类 名: Ghra_StaffSocialRelation
+*
+* Ver 变更日期 负责人 变更内容
+* ───────────────────────────────────
+*V0.01 2024/12/6 14:25:37 SimonHsiao 初版
+*
+* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 作者:SimonHsiao │
+*└──────────────────────────────────┘
+*/
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Tiobon.Core.Model.Models
+{
+
+ ///
+ /// Ghra_StaffSocialRelation (Dto.Base)
+ ///
+ public class Ghra_StaffSocialRelationBase
+ {
+
+ ///
+ /// StaffSocialRelationID
+ ///
+ public int? StaffSocialRelationID { get; set; }
+
+ ///
+ /// StaffID
+ ///
+ public int? StaffID { get; set; }
+
+ ///
+ /// RelationType
+ ///
+ [Display(Name = "RelationType"), Description("RelationType"), MaxLength(100, ErrorMessage = "RelationType 不能超过 100 个字符")]
+ public string RelationType { get; set; }
+
+ ///
+ /// RelationName
+ ///
+ [Display(Name = "RelationName"), Description("RelationName"), MaxLength(100, ErrorMessage = "RelationName 不能超过 100 个字符")]
+ public string RelationName { get; set; }
+
+ ///
+ /// IDCardNo
+ ///
+ [Display(Name = "IDCardNo"), Description("IDCardNo"), MaxLength(100, ErrorMessage = "IDCardNo 不能超过 100 个字符")]
+ public string IDCardNo { get; set; }
+
+ ///
+ /// Gender
+ ///
+ [Display(Name = "Gender"), Description("Gender"), MaxLength(100, ErrorMessage = "Gender 不能超过 100 个字符")]
+ public string Gender { get; set; }
+
+ ///
+ /// Birthday
+ ///
+ public DateTime? Birthday { get; set; }
+
+ ///
+ /// CompanyName
+ ///
+ [Display(Name = "CompanyName"), Description("CompanyName"), MaxLength(1000, ErrorMessage = "CompanyName 不能超过 1000 个字符")]
+ public string CompanyName { get; set; }
+
+ ///
+ /// DeptName
+ ///
+ [Display(Name = "DeptName"), Description("DeptName"), MaxLength(1000, ErrorMessage = "DeptName 不能超过 1000 个字符")]
+ public string DeptName { get; set; }
+
+ ///
+ /// RelationAddress
+ ///
+ [Display(Name = "RelationAddress"), Description("RelationAddress"), MaxLength(2000, ErrorMessage = "RelationAddress 不能超过 2000 个字符")]
+ public string RelationAddress { get; set; }
+
+ ///
+ /// RelationTel
+ ///
+ [Display(Name = "RelationTel"), Description("RelationTel"), MaxLength(100, ErrorMessage = "RelationTel 不能超过 100 个字符")]
+ public string RelationTel { get; set; }
+
+ ///
+ /// AttachmentIDs
+ ///
+ [Display(Name = "AttachmentIDs"), Description("AttachmentIDs"), MaxLength(-1, ErrorMessage = "AttachmentIDs 不能超过 -1 个字符")]
+ public string AttachmentIDs { get; set; }
+
+ ///
+ /// RemarkSz
+ ///
+ [Display(Name = "RemarkSz"), Description("RemarkSz"), MaxLength(2000, ErrorMessage = "RemarkSz 不能超过 2000 个字符")]
+ public string RemarkSz { get; set; }
+
+ ///
+ /// SortNo
+ ///
+ public int? SortNo { get; set; }
+
+ ///
+ /// IsDefault
+ ///
+ public int? IsDefault { get; set; }
+
+ ///
+ /// Reverse1
+ ///
+ [Display(Name = "Reverse1"), Description("Reverse1"), MaxLength(1000, ErrorMessage = "Reverse1 不能超过 1000 个字符")]
+ public string Reverse1 { get; set; }
+
+ ///
+ /// Reverse2
+ ///
+ [Display(Name = "Reverse2"), Description("Reverse2"), MaxLength(1000, ErrorMessage = "Reverse2 不能超过 1000 个字符")]
+ public string Reverse2 { get; set; }
+
+ ///
+ /// Reverse3
+ ///
+ [Display(Name = "Reverse3"), Description("Reverse3"), MaxLength(1000, ErrorMessage = "Reverse3 不能超过 1000 个字符")]
+ public string Reverse3 { get; set; }
+
+ ///
+ /// Reverse4
+ ///
+ [Display(Name = "Reverse4"), Description("Reverse4"), MaxLength(1000, ErrorMessage = "Reverse4 不能超过 1000 个字符")]
+ public string Reverse4 { get; set; }
+
+ ///
+ /// Reverse5
+ ///
+ [Display(Name = "Reverse5"), Description("Reverse5"), MaxLength(1000, ErrorMessage = "Reverse5 不能超过 1000 个字符")]
+ public string Reverse5 { get; set; }
+ }
+}
diff --git a/Tiobon.Core.Model/Edit/Ghra/Ghra_StaffSocialRelation.Dto.EditInput.cs b/Tiobon.Core.Model/Edit/Ghra/Ghra_StaffSocialRelation.Dto.EditInput.cs
new file mode 100644
index 00000000..7c425d03
--- /dev/null
+++ b/Tiobon.Core.Model/Edit/Ghra/Ghra_StaffSocialRelation.Dto.EditInput.cs
@@ -0,0 +1,27 @@
+/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。
+* Ghra_StaffSocialRelation.cs
+*
+*功 能: N / A
+* 类 名: Ghra_StaffSocialRelation
+*
+* Ver 变更日期 负责人 变更内容
+* ───────────────────────────────────
+*V0.01 2024/12/6 14:25:37 SimonHsiao 初版
+*
+* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 作者:SimonHsiao │
+*└──────────────────────────────────┘
+*/
+
+namespace Tiobon.Core.Model.Models
+{
+
+ ///
+ /// Ghra_StaffSocialRelation (Dto.EditInput)
+ ///
+ public class EditGhra_StaffSocialRelationInput : Ghra_StaffSocialRelationBase
+ {
+ }
+}
diff --git a/Tiobon.Core.Model/Insert/Ghra/Ghra_StaffSocialRelation.Dto.InsertInput.cs b/Tiobon.Core.Model/Insert/Ghra/Ghra_StaffSocialRelation.Dto.InsertInput.cs
new file mode 100644
index 00000000..286d8256
--- /dev/null
+++ b/Tiobon.Core.Model/Insert/Ghra/Ghra_StaffSocialRelation.Dto.InsertInput.cs
@@ -0,0 +1,27 @@
+/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。
+* Ghra_StaffSocialRelation.cs
+*
+*功 能: N / A
+* 类 名: Ghra_StaffSocialRelation
+*
+* Ver 变更日期 负责人 变更内容
+* ───────────────────────────────────
+*V0.01 2024/12/6 14:25:37 SimonHsiao 初版
+*
+* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 作者:SimonHsiao │
+*└──────────────────────────────────┘
+*/
+
+namespace Tiobon.Core.Model.Models
+{
+
+ ///
+ /// Ghra_StaffSocialRelation (Dto.InsertInput)
+ ///
+ public class InsertGhra_StaffSocialRelationInput : Ghra_StaffSocialRelationBase
+ {
+ }
+}
diff --git a/Tiobon.Core.Model/Models/Ghra/Ghra_StaffSocialRelation.cs b/Tiobon.Core.Model/Models/Ghra/Ghra_StaffSocialRelation.cs
new file mode 100644
index 00000000..35c472ab
--- /dev/null
+++ b/Tiobon.Core.Model/Models/Ghra/Ghra_StaffSocialRelation.cs
@@ -0,0 +1,142 @@
+/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。
+* Ghra_StaffSocialRelation.cs
+*
+*功 能: N / A
+* 类 名: Ghra_StaffSocialRelation
+*
+* Ver 变更日期 负责人 变更内容
+* ───────────────────────────────────
+*V0.01 2024/12/6 14:25:37 SimonHsiao 初版
+*
+* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 作者:SimonHsiao │
+*└──────────────────────────────────┘
+*/
+namespace Tiobon.Core.Model.Models;
+
+
+///
+/// Ghra_StaffSocialRelation (Model)
+///
+[SugarTable("Ghra_StaffSocialRelation", "Ghra_StaffSocialRelation"), Entity(TableCnName = "Ghra_StaffSocialRelation", TableName = "Ghra_StaffSocialRelation")]
+public class Ghra_StaffSocialRelation : BasePoco1
+{
+
+ ///
+ /// StaffSocialRelationID
+ ///
+[SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true), Display(Name = "表主键")]
+ public int? StaffSocialRelationID { get; set; }
+
+ ///
+ /// StaffID
+ ///
+ public int? StaffID { get; set; }
+
+ ///
+ /// RelationType
+ ///
+ [Display(Name = "RelationType"), Description("RelationType"), MaxLength(100, ErrorMessage = "RelationType 不能超过 100 个字符")]
+ public string RelationType { get; set; }
+
+ ///
+ /// RelationName
+ ///
+ [Display(Name = "RelationName"), Description("RelationName"), MaxLength(100, ErrorMessage = "RelationName 不能超过 100 个字符")]
+ public string RelationName { get; set; }
+
+ ///
+ /// IDCardNo
+ ///
+ [Display(Name = "IDCardNo"), Description("IDCardNo"), MaxLength(100, ErrorMessage = "IDCardNo 不能超过 100 个字符")]
+ public string IDCardNo { get; set; }
+
+ ///
+ /// Gender
+ ///
+ [Display(Name = "Gender"), Description("Gender"), MaxLength(100, ErrorMessage = "Gender 不能超过 100 个字符")]
+ public string Gender { get; set; }
+
+ ///
+ /// Birthday
+ ///
+ public DateTime? Birthday { get; set; }
+
+ ///
+ /// CompanyName
+ ///
+ [Display(Name = "CompanyName"), Description("CompanyName"), MaxLength(1000, ErrorMessage = "CompanyName 不能超过 1000 个字符")]
+ public string CompanyName { get; set; }
+
+ ///
+ /// DeptName
+ ///
+ [Display(Name = "DeptName"), Description("DeptName"), MaxLength(1000, ErrorMessage = "DeptName 不能超过 1000 个字符")]
+ public string DeptName { get; set; }
+
+ ///
+ /// RelationAddress
+ ///
+ [Display(Name = "RelationAddress"), Description("RelationAddress"), MaxLength(2000, ErrorMessage = "RelationAddress 不能超过 2000 个字符")]
+ public string RelationAddress { get; set; }
+
+ ///
+ /// RelationTel
+ ///
+ [Display(Name = "RelationTel"), Description("RelationTel"), MaxLength(100, ErrorMessage = "RelationTel 不能超过 100 个字符")]
+ public string RelationTel { get; set; }
+
+ ///
+ /// AttachmentIDs
+ ///
+ [Display(Name = "AttachmentIDs"), Description("AttachmentIDs"), MaxLength(-1, ErrorMessage = "AttachmentIDs 不能超过 -1 个字符")]
+ public string AttachmentIDs { get; set; }
+
+ ///
+ /// RemarkSz
+ ///
+ [Display(Name = "RemarkSz"), Description("RemarkSz"), MaxLength(2000, ErrorMessage = "RemarkSz 不能超过 2000 个字符")]
+ public string RemarkSz { get; set; }
+
+ ///
+ /// SortNo
+ ///
+ public int? SortNo { get; set; }
+
+ ///
+ /// IsDefault
+ ///
+ public int? IsDefault { get; set; }
+
+ ///
+ /// Reverse1
+ ///
+ [Display(Name = "Reverse1"), Description("Reverse1"), MaxLength(1000, ErrorMessage = "Reverse1 不能超过 1000 个字符")]
+ public string Reverse1 { get; set; }
+
+ ///
+ /// Reverse2
+ ///
+ [Display(Name = "Reverse2"), Description("Reverse2"), MaxLength(1000, ErrorMessage = "Reverse2 不能超过 1000 个字符")]
+ public string Reverse2 { get; set; }
+
+ ///
+ /// Reverse3
+ ///
+ [Display(Name = "Reverse3"), Description("Reverse3"), MaxLength(1000, ErrorMessage = "Reverse3 不能超过 1000 个字符")]
+ public string Reverse3 { get; set; }
+
+ ///
+ /// Reverse4
+ ///
+ [Display(Name = "Reverse4"), Description("Reverse4"), MaxLength(1000, ErrorMessage = "Reverse4 不能超过 1000 个字符")]
+ public string Reverse4 { get; set; }
+
+ ///
+ /// Reverse5
+ ///
+ [Display(Name = "Reverse5"), Description("Reverse5"), MaxLength(1000, ErrorMessage = "Reverse5 不能超过 1000 个字符")]
+ public string Reverse5 { get; set; }
+}
diff --git a/Tiobon.Core.Model/View/Ghra/Ghra_StaffSocialRelation.Dto.View.cs b/Tiobon.Core.Model/View/Ghra/Ghra_StaffSocialRelation.Dto.View.cs
new file mode 100644
index 00000000..2a135864
--- /dev/null
+++ b/Tiobon.Core.Model/View/Ghra/Ghra_StaffSocialRelation.Dto.View.cs
@@ -0,0 +1,34 @@
+/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。
+* Ghra_StaffSocialRelation.cs
+*
+*功 能: N / A
+* 类 名: Ghra_StaffSocialRelation
+*
+* Ver 变更日期 负责人 变更内容
+* ───────────────────────────────────
+*V0.01 2024/12/6 14:25:37 SimonHsiao 初版
+*
+* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 作者:SimonHsiao │
+*└──────────────────────────────────┘
+*/
+
+namespace Tiobon.Core.Model.Models;
+
+///
+/// Ghra_StaffSocialRelation(Dto.View1)
+///
+public class Ghra_StaffSocialRelationDto : Ghra_StaffSocialRelation
+{
+///
+/// 创建信息
+///
+public string CreateDataInfo { get; set; }
+
+///
+/// 修改信息
+///
+public string UpdateDataInfo { get; set; }
+}
diff --git a/Tiobon.Core.Services/Ghra/Ghra_StaffSocialRelationServices.cs b/Tiobon.Core.Services/Ghra/Ghra_StaffSocialRelationServices.cs
new file mode 100644
index 00000000..d2cbd572
--- /dev/null
+++ b/Tiobon.Core.Services/Ghra/Ghra_StaffSocialRelationServices.cs
@@ -0,0 +1,23 @@
+
+using Tiobon.Core.IServices;
+using Tiobon.Core.Model.Models;
+using Tiobon.Core.Services.BASE;
+using Tiobon.Core.IRepository.Base;
+using Tiobon.Core.Common.Caches;
+
+namespace Tiobon.Core.Services
+{
+ ///
+ /// Ghra_StaffSocialRelation (服务)
+ ///
+ public class Ghra_StaffSocialRelationServices : BaseServices, IGhra_StaffSocialRelationServices
+ {
+ private readonly IBaseRepository _dal;
+ public Ghra_StaffSocialRelationServices(ICaching caching, IBaseRepository dal)
+ {
+ this._dal = dal;
+ base.BaseDal = dal;
+ base._caching = caching;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs
index 269f57f4..a3223c7e 100644
--- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs
+++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs
@@ -3087,28 +3087,32 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status";
for (int i = 0; i < familys.Count; i++)
{
var family = familys[i];
- var staffEduBG = new Ghra_StaffEduBG()
+ var staffEduBG = new Ghra_StaffSocialRelation()
{
StaffID = staffId,
- BeginDate = education.BeginDate.ObjToString(),
- EndDate = education.EndDate.ObjToString(),
- SchoolName = education.SchoolName,
- DeptName = education.DeptName,
- DegreeLevel = education.DegreeLevel,
- IsGraduate = education.IsGraduate == true ? 1 : 0,
- RemarkSz = education.RemarkSz
+ RelationType = family.RelationType,
+ RelationName = family.RelationName,
+ IDCardNo = family.IDCardNo,
+ Gender = family.Gender,
+ Birthday = family.Birth,
+ CompanyName = family.WorkCompany,
+ //DeptName = family.WorkCompany,
+ RelationAddress = family.RelationAddress,
+ RelationTel = family.Telephone,
+ Reverse1 = family.RelationAge,
+ RemarkSz = family.RemarkSz
};
- var staffEduBGId = await Db.Insertable(staffEduBG).ExecuteReturnIdentityAsync();
- var attachments = await Db.Queryable().Where(x => x.TableName == education.Id.ObjToString()).ToListAsync();
+ var staffSocialRelation = await Db.Insertable(staffEduBG).ExecuteReturnIdentityAsync();
+ var attachments = await Db.Queryable().Where(x => x.TableName == family.Id.ObjToString()).ToListAsync();
if (attachments.Any())
{
attachments.ForEach(x =>
{
x.CreateTime = DateTime.Now;
- x.TableName = "Ghra_StaffEduBG";
+ x.TableName = "Ghra_StaffSocialRelation";
x.StaffID = staffId;
- x.TableKeyID = staffEduBGId;
+ x.TableKeyID = staffSocialRelation;
});
await Db.Insertable(attachments).ExecuteReturnIdentityAsync();
}