浏览代码

公文查看阅读 手机收件箱附件路径

临城职教中职
ndbs 2 年前
父节点
当前提交
107200e654
共有 3 个文件被更改,包括 19 次插入0 次删除
  1. +13
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Sys_ReceiveFileApi.cs
  2. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SYS_ReceiveMessage/SYS_ReceiveMessageEntity.cs
  3. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SYS_ReceiveMessage/SYS_ReceiveMessageService.cs

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

@@ -28,6 +28,8 @@ namespace Learun.Application.WebApi
Get["/form"] = GetForm;
Post["/delete"] = DeleteForm;
Post["/save"] = SaveForm;
Post["/read"] = NewsRead;
}
#region  获取数据

@@ -112,6 +114,17 @@ namespace Learun.Application.WebApi
sys_ReceiveFileIBLL.SaveEntity(this.userInfo, parameter.keyValue, entity);
return Success("保存成功!");
}

/// <summary>
/// 查阅公文
/// <summary>
/// <returns></returns>
public Response NewsRead(dynamic _)
{
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>();
sys_ReceiveFileIBLL.ReadEntity(parameter.keyValue);
return Success("查阅成功!");
}
#endregion

#region  私有类


+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SYS_ReceiveMessage/SYS_ReceiveMessageEntity.cs 查看文件

@@ -110,6 +110,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
#endregion
#region 扩展字段
/// <summary>
///
/// </summary>
[NotMapped]
public string FilePath { get; set; }
#endregion
}
}


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SYS_ReceiveMessage/SYS_ReceiveMessageService.cs 查看文件

@@ -166,6 +166,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
try
{
var result = this.BaseRepository().FindEntity<SYS_ReceiveMessageEntity>(keyValue);
result.FilePath = result.URL;
result.URL = this.BaseRepository().FindEntity<AnnexesFileEntity>(a => a.F_FolderId == result.URL)?.F_FilePath;
if (!string.IsNullOrEmpty(result.URL))
{


正在加载...
取消
保存