瀏覽代碼

学生请假申请 保存创建时间信息

新疆警官学校中职
zhangli 2 年之前
父節點
當前提交
837c56ddab
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuLeaveManagementApi.cs

+ 7
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuLeaveManagementApi.cs 查看文件

@@ -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("保存成功!");
}


Loading…
取消
儲存