开班发布新增发布产生讲师上级反馈数据

master
xiaochanghai 1 month ago
parent 7d8b6fb4b0
commit 796e098ad3
  1. 1507
      Model/Tiobon.Web.pdm
  2. 10
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  3. 7
      Tiobon.Core.Model/Base/Ghre/Ghre_SurveyRecord.Dto.Base.cs
  4. 7
      Tiobon.Core.Model/Models/Ghre/Ghre_SurveyRecord.cs
  5. 17
      Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs

File diff suppressed because it is too large Load Diff

@ -9935,6 +9935,11 @@
开班ID 开班ID
</summary> </summary>
</member> </member>
<member name="P:Tiobon.Core.Model.Models.Ghre_SurveyRecordBase.OpenClassFeedbackId">
<summary>
开班反馈单ID
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghre_SurveyRecordDetailBase"> <member name="T:Tiobon.Core.Model.Models.Ghre_SurveyRecordDetailBase">
<summary> <summary>
Ghre_SurveyRecordDetail (Dto.Base) Ghre_SurveyRecordDetail (Dto.Base)
@ -29287,6 +29292,11 @@
开班ID 开班ID
</summary> </summary>
</member> </member>
<member name="P:Tiobon.Core.Model.Models.Ghre_SurveyRecord.OpenClassFeedbackId">
<summary>
开班反馈单ID
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghre_SurveyRecordDetail"> <member name="T:Tiobon.Core.Model.Models.Ghre_SurveyRecordDetail">
<summary> <summary>
Ghre_SurveyRecordDetail (Model) Ghre_SurveyRecordDetail (Model)

@ -6,7 +6,7 @@
* *
* Ver * Ver
* *
*V0.01 2025/5/6 13:17:08 SimonHsiao *V0.01 2025/5/15 16:04:06 SimonHsiao
* *
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. * Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
* *
@ -165,4 +165,9 @@ public class Ghre_SurveyRecordBase
/// 开班ID /// 开班ID
/// </summary> /// </summary>
public long? OpenClassId { get; set; } public long? OpenClassId { get; set; }
/// <summary>
/// 开班反馈单ID
/// </summary>
public long? OpenClassFeedbackId { get; set; }
} }

@ -6,7 +6,7 @@
* *
* Ver * Ver
* *
*V0.01 2025/5/6 13:17:08 SimonHsiao *V0.01 2025/5/15 16:04:06 SimonHsiao
* *
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. * Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
* *
@ -166,4 +166,9 @@ public class Ghre_SurveyRecord : BasePoco
/// 开班ID /// 开班ID
/// </summary> /// </summary>
public long? OpenClassId { get; set; } public long? OpenClassId { get; set; }
/// <summary>
/// 开班反馈单ID
/// </summary>
public long? OpenClassFeedbackId { get; set; }
} }

@ -310,7 +310,21 @@ public class Ghre_SurveyServices : BaseServices<Ghre_Survey, Ghre_SurveyDto, Ins
if (lastRecord.IsNullOrEmpty() || (lastRecord != null && lastRecord.SubmitDate != null) || surveyRecordId == 0) if (lastRecord.IsNullOrEmpty() || (lastRecord != null && lastRecord.SubmitDate != null) || surveyRecordId == 0)
{ {
long? feedbackId = null;
if (openClassId != null)
{
var feedback = new Ghre_OpenClassFeedback()
{
OpenClassId = openClassId,
SurveyId = id,
StaffId = App.User.StaffId,
Source = "Trainee",
EffectiveTime = DateTime.Now,
ExpiryTime = DateTime.MaxValue
};
feedbackId = await Db.Insertable(feedback).ExecuteReturnSnowflakeIdAsync();
}
var record = new Ghre_SurveyRecord() var record = new Ghre_SurveyRecord()
{ {
//Id = recordId, //Id = recordId,
@ -320,7 +334,8 @@ public class Ghre_SurveyServices : BaseServices<Ghre_Survey, Ghre_SurveyDto, Ins
AdjustScore = 0, AdjustScore = 0,
SubmitDate = DateTime.Now, SubmitDate = DateTime.Now,
IsView = false, IsView = false,
OpenClassId = openClassId OpenClassId = openClassId,
OpenClassFeedbackId = feedbackId
}; };
surveyRecordId = await Db.Insertable(record).ExecuteReturnSnowflakeIdAsync(); surveyRecordId = await Db.Insertable(record).ExecuteReturnSnowflakeIdAsync();
} }

Loading…
Cancel
Save