导入导出
This commit is contained in:
@@ -127,10 +127,10 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
|
||||
[ActionPermissionFilter(Permission = "mmmaterial:import")]
|
||||
public IActionResult ImportData([FromForm(Name = "file")] IFormFile formFile)
|
||||
{
|
||||
List<MmMaterialExcelDto> material = new();
|
||||
List<MmMaterialExcelDto2> material = new();
|
||||
using (var stream = formFile.OpenReadStream())
|
||||
{
|
||||
material = stream.Query<MmMaterialExcelDto>(startCell: "A2").ToList();
|
||||
material = stream.Query<MmMaterialExcelDto2>(startCell: "A2").ToList();
|
||||
}
|
||||
|
||||
return SUCCESS(_MmMaterialService.Importmaterial(material));
|
||||
|
||||
Reference in New Issue
Block a user