diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/JournalApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/JournalApi.cs index 8e497e2de..d098adb46 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/JournalApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/JournalApi.cs @@ -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(); + JournalSendEntity entity = parameter.strEntity.ToObject(); + 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 私有类