From 7d8b6fb4b048bbf49c700db1270a98c77ea4b649 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Thu, 15 May 2025 15:45:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E7=8F=AD=E5=8F=91=E5=B8=83=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=8F=91=E5=B8=83=E4=BA=A7=E7=94=9F=E8=AE=B2=E5=B8=88?= =?UTF-8?q?=E4=B8=8A=E7=BA=A7=E5=8F=8D=E9=A6=88=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Ghre/Ghre_OpenClassServices.cs | 28 +- Tiobon.Core/Tiobon.Core.Model.xml | 245 ++++++++++++++++++ Tiobon.Core/Tiobon.Core.xml | 5 + 3 files changed, 263 insertions(+), 15 deletions(-) diff --git a/Tiobon.Core.Services/Ghre/Ghre_OpenClassServices.cs b/Tiobon.Core.Services/Ghre/Ghre_OpenClassServices.cs index f04fe35b..64de5242 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_OpenClassServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_OpenClassServices.cs @@ -456,7 +456,7 @@ public class Ghre_OpenClassServices : BaseServices() - .SetColumns(it => new Ghre_OpenClass() { Status = status, ExamId = examId }) + .SetColumns(it => new Ghre_OpenClass() { ExamId = examId }) .Where(it => it.Id == entity.Id) .ExecuteCommandAsync(); } @@ -476,11 +476,6 @@ public class Ghre_OpenClassServices : BaseServices it.Id == entity.ExamId) .ExecuteCommandAsync(); - - await Db.Updateable() - .SetColumns(it => new Ghre_OpenClass() { Status = status }) - .Where(it => it.Id == entity.Id) - .ExecuteCommandAsync(); } #region 生成反馈数据 @@ -525,26 +520,29 @@ public class Ghre_OpenClassServices : BaseServices it.OpenClassId != null && ids.Contains(it.OpenClassId.Value)) .ExecuteCommandAsync(); - await Db.Updateable() - .SetColumns(it => new Ghre_OpenClass() { Status = status }) - .Where(it => ids.Contains(it.Id)) - .ExecuteCommandAsync(); - await Db.Deleteable() .Where(it => it.OpenClassId != null && ids.Contains(it.OpenClassId.Value)) .ExecuteCommandAsync(); break; + case "Close": + await Db.Updateable() + .SetColumns(it => new Ghre_OpenClassFeedback() { ExpiryTime = DateTime.Now }) + .Where(it => it.OpenClassId != null && ids.Contains(it.OpenClassId.Value)) + .ExecuteCommandAsync(); + break; default: - await Db.Updateable() - .SetColumns(it => new Ghre_OpenClass() { Status = status }) - .Where(it => ids.Contains(it.Id)) - .ExecuteCommandAsync(); break; } + await Db.Updateable() + .SetColumns(it => new Ghre_OpenClass() { Status = status }) + .Where(it => ids.Contains(it.Id)) + .ExecuteCommandAsync(); + + return ServiceResult.OprateSuccess(); } #endregion diff --git a/Tiobon.Core/Tiobon.Core.Model.xml b/Tiobon.Core/Tiobon.Core.Model.xml index e58e0e66..b8136831 100644 --- a/Tiobon.Core/Tiobon.Core.Model.xml +++ b/Tiobon.Core/Tiobon.Core.Model.xml @@ -6675,6 +6675,116 @@ 预留字段12 + + + 开班反馈 (Dto.Base) + + + + + 开班ID + + + + + 问卷调查ID + + + + + 员工ID + + + + + 来源 + + + + + 课程ID + + + + + 生效时间 + + + + + 失效时间 + + + + + 备注 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 开班课表 (Dto.Base) @@ -18112,6 +18222,11 @@ 开班费用 (Dto.EditInput) + + + 开班反馈 (Dto.EditInput) + + 开班课表 (Dto.EditInput) @@ -18763,6 +18878,11 @@ 开班费用 (Dto.InsertInput) + + + 开班反馈 (Dto.InsertInput) + + 开班课表 (Dto.InsertInput) @@ -25982,6 +26102,116 @@ 预留字段12 + + + 开班反馈 (Model) + + + + + 开班ID + + + + + 问卷调查ID + + + + + 员工ID + + + + + 来源 + + + + + 课程ID + + + + + 生效时间 + + + + + 失效时间 + + + + + 备注 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 开班课表 (Model) @@ -38923,6 +39153,21 @@ 员工 + + + 开班反馈(Dto.View1) + + + + + 创建信息 + + + + + 修改信息 + + 开班课表(Dto.View1) diff --git a/Tiobon.Core/Tiobon.Core.xml b/Tiobon.Core/Tiobon.Core.xml index c3e5875d..fde5df77 100644 --- a/Tiobon.Core/Tiobon.Core.xml +++ b/Tiobon.Core/Tiobon.Core.xml @@ -1303,6 +1303,11 @@ 开班费用(Controller) + + + 开班反馈(Controller) + + 开班课表(Controller)