Ver código fonte

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

新疆警官学校中职
ndbs 2 anos atrás
pai
commit
6b960b236c
1 arquivos alterados com 15 adições e 1 exclusões
  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 Ver arquivo

@@ -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 私有类


Carregando…
Cancelar
Salvar