瀏覽代碼

招生文件api

新疆影视学院高职
zhangli 3 年之前
父節點
當前提交
c079156061
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. +4
    -3
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EnrollTemplateApi.cs

+ 4
- 3
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EnrollTemplateApi.cs 查看文件

@@ -18,7 +18,9 @@ namespace Learun.Application.WebApi.Modules
//下载人事模板
Get["/downpersonneltemplate"] = DownPersonnelTemplate;

//上传招生文件
Post["/uploadenroll"] = UploadEnroll;
//上传人事文件
Post["/uploadpersonnel"] = UploadPersonnel;
}
private AnnexesFileIBLL annexesFileIBLL = new AnnexesFileBLL();
@@ -87,12 +89,11 @@ namespace Learun.Application.WebApi.Modules
fileAnnexesEntity.F_FileSize = files[0].Value.Length.ToString();
fileAnnexesEntity.F_FileExtensions = FileEextension;
fileAnnexesEntity.F_FileType = FileEextension.Replace(".", "");
//fileAnnexesEntity.F_CreateUserId = userInfo.userId;
//fileAnnexesEntity.F_CreateUserName = userInfo.realName;

annexesFileIBLL.SaveEntity(folderId, fileAnnexesEntity);

enrollData.Create();
enrollData.Id = Guid.NewGuid().ToString();
enrollData.UploadTime = DateTime.Now;
enrollData.Type = type;
enrollData.Path = folderId;
enrollDataIBLL.SaveEntity("",enrollData);


Loading…
取消
儲存