From 837c56ddabc86c0b4b6115babd880d871c231229 Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Wed, 16 Nov 2022 17:08:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E8=AF=B7=E5=81=87=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=20=E4=BF=9D=E5=AD=98=E5=88=9B=E5=BB=BA=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/StuLeaveManagementApi.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuLeaveManagementApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuLeaveManagementApi.cs index 5546c6a1f..ec6947c2d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuLeaveManagementApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuLeaveManagementApi.cs @@ -122,8 +122,15 @@ namespace Learun.Application.WebApi /// public Response SaveForm(dynamic _) { + var loginInfo = LoginUserInfo.Get(); ReqFormEntity parameter = this.GetReqData(); StuLeaveManagementEntity entity = parameter.strEntity.ToObject(); + if (string.IsNullOrEmpty(parameter.keyValue)) + { + entity.CreateUserId = loginInfo.userId; + entity.CreateUserNo = loginInfo.account; + entity.CreateTime = DateTime.Now; + } stuLeaveManagementIBLL.SaveEntity(parameter.keyValue, entity); return Success("保存成功!"); }