From 6316c358fb76343f06ee3b5e6bb84c186bd707c7 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 24 Jun 2022 15:42:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MaterialRelationshipAppService.cs | 9 --------- .../Entities/WMS/WMSJitAppService.cs | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/MaterialRelationships/MaterialRelationshipAppService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/MaterialRelationships/MaterialRelationshipAppService.cs index 30e03bb6..a25df6aa 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/MaterialRelationships/MaterialRelationshipAppService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/MaterialRelationships/MaterialRelationshipAppService.cs @@ -74,18 +74,12 @@ namespace Win.Sfs.SettleAccount.Entities.MaterialRelationships [DisableRequestSizeLimit] public async Task MaterialRelationshipUploadExcelImportMap([FromForm] IFormFileCollection files) { - - ExportImporter _exportImporter = new ExportImporter(); var mapList=_mapRepository.Where(p => p.ProjectName == SettleAccountModuleName.MaterialRelationship).ToList(); var result = await _exportImporter.ExtendExcelImport(files, _excelImportService,mapList); var _ls = ObjectMapper.Map, List>(result); - List _errorList = new List(); - - var checkList = new List(); - if (_ls.Count > 0) { var query = from arc in _ls @@ -143,10 +137,7 @@ namespace Win.Sfs.SettleAccount.Entities.MaterialRelationships ExportImporter _exportImporter = new ExportImporter(); var result = await _exportImporter.UploadExcelImport(files, _excelImportService); var _ls = ObjectMapper.Map, List>(result); - List _errorList = new List(); - - var checkList = new List(); if (_ls.Count > 0) diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSJitAppService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSJitAppService.cs index 2044cf2a..bb0c50f9 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSJitAppService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSJitAppService.cs @@ -554,7 +554,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts var sql = "DECLARE @return_value int\n" + "EXEC @return_value = [dbo].[p_wms_output_cancel_all]\n" + " @billnum = N'{0}',\n" + - " type=0\n" + + " @type =0\n" + "SELECT 'Return Value' = @return_value"; await _wmsRepository.GetDbContext().Database.ExecuteSqlRawAsync( string.Format(sql, input.BillNum)