|
|
@ -80,22 +80,22 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
_excelImportService = excelImportService; |
|
|
|
} |
|
|
|
|
|
|
|
[HttpPost] |
|
|
|
[Route("ExcelImport")] |
|
|
|
[UnitOfWork(false)] |
|
|
|
//[Authorize(SettleAccountPermissions.PriceLists.Create)]
|
|
|
|
virtual public async Task<string> ImportAsync([FromForm] IFormFileCollection files, string version,string accountDate) |
|
|
|
{ |
|
|
|
ExportImporter _exportImporter = new ExportImporter(); |
|
|
|
//[HttpPost]
|
|
|
|
//[Route("ExcelImport")]
|
|
|
|
//[UnitOfWork(false)]
|
|
|
|
////[Authorize(SettleAccountPermissions.PriceLists.Create)]
|
|
|
|
//virtual public async Task<string> ImportAsync([FromForm] IFormFileCollection files, string version,string accountDate)
|
|
|
|
//{
|
|
|
|
// ExportImporter _exportImporter = new ExportImporter();
|
|
|
|
|
|
|
|
var result = await _exportImporter.UploadExcelImport<WmsOutputSumReport>(files, _excelImportService); |
|
|
|
var _list = result.Where(p => p.实际出库数量 != 0).ToList(); |
|
|
|
// var result = await _exportImporter.UploadExcelImport<WmsOutputSumReport>(files, _excelImportService);
|
|
|
|
// var _list = result.Where(p => p.实际出库数量 != 0).ToList();
|
|
|
|
|
|
|
|
_dapper.InsertWmsSum(_list, version,DateTime.Parse(accountDate)); |
|
|
|
// _dapper.InsertWmsSum(_list, version,DateTime.Parse(accountDate));
|
|
|
|
|
|
|
|
|
|
|
|
return ApplicationConsts.SuccessStr; |
|
|
|
} |
|
|
|
// return ApplicationConsts.SuccessStr;
|
|
|
|
//}
|
|
|
|
/// <summary>
|
|
|
|
/// 准时化出库主表
|
|
|
|
/// </summary>
|
|
|
|