Pārlūkot izejas kodu

接口 工作日志 保存方法修改

新疆警官学校中职
ndbs pirms 2 gadiem
vecāks
revīzija
6b960b236c
1 mainītis faili ar 15 papildinājumiem un 1 dzēšanām
  1. +15
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/JournalApi.cs

+ 15
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/JournalApi.cs Parādīt failu

@@ -32,7 +32,8 @@ namespace Learun.Application.WebApi
Get["/form"] = GetForm;
Post["/delete"] = DeleteForm;
Post["/save"] = SaveForm;
Post["/saveDraft"] = SaveDraft;
Post["/saveDraft"] = SaveDraft;
Post["/savePt"] = SavePt;
}
#region 获取数据

@@ -144,6 +145,19 @@ namespace Learun.Application.WebApi

return Success("保存成功!");
}
public Response SavePt(dynamic _)
{
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>();
JournalSendEntity entity = parameter.strEntity.ToObject<JournalSendEntity>();
var userInfo = LoginUserInfo.Get();
entity.JSenderId = userInfo.userId;
entity.JSender = userInfo.realName;
entity.JIsSend = false;
entity.JSendTime = DateTime.Now;
journalIBLL.SaveEntity(parameter.keyValue, entity);

return Success("保存成功!");
}
#endregion

#region 私有类


Notiek ielāde…
Atcelt
Saglabāt