From ed3917a909adf3e7911f1758c1fa5b61380739ca Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 22 Sep 2022 18:04:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AE=AE=E7=AE=A1=E7=90=86-=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E6=B7=BB=E5=8A=A0=E9=BB=98=E8=AE=A4=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PersonnelManagement/MeetingManagementApi.cs | 17 ++++++++++++----- .../MeetingManagementService.cs | 1 - 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PersonnelManagement/MeetingManagementApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PersonnelManagement/MeetingManagementApi.cs index d6b9d3261..219d75a2d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PersonnelManagement/MeetingManagementApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PersonnelManagement/MeetingManagementApi.cs @@ -2,6 +2,8 @@ using Learun.Util; using System.Collections.Generic; using Learun.Application.TwoDevelopment.PersonnelManagement; +using System; + namespace Learun.Application.WebApi { /// @@ -66,8 +68,9 @@ namespace Learun.Application.WebApi public Response GetForm(dynamic _) { string keyValue = this.GetReqData(); - var MeetingManagementData = meetingManagementIBLL.GetMeetingManagementEntity( keyValue ); - var jsonData = new { + var MeetingManagementData = meetingManagementIBLL.GetMeetingManagementEntity(keyValue); + var jsonData = new + { MeetingManagement = MeetingManagementData, }; return Success(jsonData); @@ -96,7 +99,10 @@ namespace Learun.Application.WebApi { ReqFormEntity parameter = this.GetReqData(); MeetingManagementEntity entity = parameter.strEntity.ToObject(); - meetingManagementIBLL.SaveEntity(this.userInfo,parameter.keyValue,entity); + entity.CreateUser = userInfo.userId; + entity.CreateTime = DateTime.Now; + entity.CheckStatus = "0"; + meetingManagementIBLL.SaveEntity(this.userInfo, parameter.keyValue, entity); return Success("保存成功!"); } #endregion @@ -106,9 +112,10 @@ namespace Learun.Application.WebApi /// /// 表单实体类 /// - private class ReqFormEntity { + private class ReqFormEntity + { public string keyValue { get; set; } - public string strEntity{ get; set; } + public string strEntity { get; set; } } #endregion diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingManagement/MeetingManagementService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingManagement/MeetingManagementService.cs index 88491ed25..284ef5188 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingManagement/MeetingManagementService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingManagement/MeetingManagementService.cs @@ -232,7 +232,6 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement else { entity.Create(userInfo); - entity.CreateTime = DateTime.Now; db.Insert(entity); }