|
|
@@ -122,8 +122,15 @@ namespace Learun.Application.WebApi |
|
|
|
/// <returns></returns> |
|
|
|
public Response SaveForm(dynamic _) |
|
|
|
{ |
|
|
|
var loginInfo = LoginUserInfo.Get(); |
|
|
|
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); |
|
|
|
StuLeaveManagementEntity entity = parameter.strEntity.ToObject<StuLeaveManagementEntity>(); |
|
|
|
if (string.IsNullOrEmpty(parameter.keyValue)) |
|
|
|
{ |
|
|
|
entity.CreateUserId = loginInfo.userId; |
|
|
|
entity.CreateUserNo = loginInfo.account; |
|
|
|
entity.CreateTime = DateTime.Now; |
|
|
|
} |
|
|
|
stuLeaveManagementIBLL.SaveEntity(parameter.keyValue, entity); |
|
|
|
return Success("保存成功!"); |
|
|
|
} |
|
|
|