|
|
@ -85,11 +85,11 @@ public class VmiAppService : Controller, IApplicationService, IJobService, ITran |
|
|
|
/// Excel 转 JSON
|
|
|
|
/// </summary>
|
|
|
|
[HttpPost, Consumes("multipart/form-data")] |
|
|
|
public async Task<List<PUB_ADJ_DETAIL_IMP_DTO>> ExcelToJSONAsync(List<IFormFile> files) |
|
|
|
public async Task<List<PUB_ADJ_DETAIL_DTO>> ExcelToJSONAsync(List<IFormFile> files) |
|
|
|
{ |
|
|
|
using var ms = new MemoryStream(); |
|
|
|
await files.FirstOrDefault().OpenReadStream().CopyToAsync(ms).ConfigureAwait(false); |
|
|
|
return this.ImportInternal<PUB_ADJ_DETAIL_IMP_DTO>(ms.ToArray()).Select(o => o.Item1).ToList(); |
|
|
|
return this.ImportInternal<PUB_ADJ_DETAIL_DTO>(ms.ToArray()).Select(o => o.Item1).ToList(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|