From 6b960b236cdd681ea1c26113e3a7749296b1468f Mon Sep 17 00:00:00 2001 From: ndbs Date: Sat, 26 Nov 2022 18:29:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=20=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=97=A5=E5=BF=97=20=E4=BF=9D=E5=AD=98=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/JournalApi.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 私有类