Browse Source

招生文件api

新疆影视学院高职
zhangli 3 years ago
parent
commit
c079156061
1 changed files with 4 additions and 3 deletions
  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 View File

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


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


annexesFileIBLL.SaveEntity(folderId, fileAnnexesEntity); annexesFileIBLL.SaveEntity(folderId, fileAnnexesEntity);


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


Loading…
Cancel
Save