导入导出

This commit is contained in:
2026-01-08 10:58:32 +08:00
parent 2125ef8e9e
commit 98ae907b8a
2 changed files with 1 additions and 4 deletions

View File

@@ -133,9 +133,6 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
[ActionPermissionFilter(Permission = "mmmaterial:import")]
public IActionResult ImportData([FromForm(Name = "file")] IFormFile formFile)
{
List<MmMaterialExcelDto> material = new();
material = stream.Query<MmMaterialExcelDto>(startCell: "A2").ToList();
return SUCCESS(_MmMaterialService.Importmaterial(material));
}

View File

@@ -143,7 +143,7 @@ namespace DOAN.Service.BZFM
/// </summary>
/// <param name="material"></param>
/// <returns></returns>
public ImportResultDto Importmaterial(List<MmMaterialExcelDto> material)
public ImportResultDto Importmaterial(IFormFile formFile)
{
int result = 0;
List<ProWorkorder> materialList = new();