导入导出

This commit is contained in:
2026-01-08 14:10:31 +08:00
parent 67a8fc5b27
commit 9123d1ed57

View File

@@ -143,7 +143,7 @@ namespace DOAN.Service.BZFM
/// </summary>
/// <param name="formFile"></param>
/// <returns></returns>
public int Importmaterial(IFormFile formFile)
public ImportResultDto Importmaterial(IFormFile formFile)
{
// TODO 1.构建空的待导入数据集合MmMaterialExcelDto多余部分删除
@@ -168,7 +168,7 @@ namespace DOAN.Service.BZFM
IRow currentRow = sheet.GetRow(row);
if (currentRow != null) // 确保行不为空
{
MmMaterial material = new MmMaterial();
MmMaterialExcelDto material = new MmMaterialExcelDto();
//00 ID
NPOI.SS.UserModel.ICell currentCell_00 = currentRow.GetCell(0);
@@ -272,8 +272,6 @@ namespace DOAN.Service.BZFM
continue;
}
//
//10 状态
NPOI.SS.UserModel.ICell currentCell_10 = currentRow.GetCell(10);