导入功能
This commit is contained in:
@@ -143,7 +143,7 @@ namespace DOAN.Service.BZFM
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="formFile"></param>
|
/// <param name="formFile"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ImportResultDto Importmaterial(IFormFile formFile)
|
public ImportResultDto Importmaterial(IFormFile formFile, string username)
|
||||||
{
|
{
|
||||||
|
|
||||||
// TODO 1.构建空的待导入数据集合MmMaterialExcelDto,多余部分删除
|
// TODO 1.构建空的待导入数据集合MmMaterialExcelDto,多余部分删除
|
||||||
@@ -281,6 +281,8 @@ namespace DOAN.Service.BZFM
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
materialList.Add(material);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -288,7 +290,7 @@ namespace DOAN.Service.BZFM
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return -1;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user