From c05003c73bbe527478bccc55efe25c19068b6f50 Mon Sep 17 00:00:00 2001 From: Huangxiaoqiang-03 <1247017146@qq.com> Date: 星期三, 23 十月 2024 17:30:42 +0800 Subject: [PATCH] 1 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_StockService/Service/StockInfoService.cs | 20 -------------------- 1 files changed, 0 insertions(+), 20 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_StockService/Service/StockInfoService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_StockService/Service/StockInfoService.cs" index 33c4bce..7b9f254 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_StockService/Service/StockInfoService.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_StockService/Service/StockInfoService.cs" @@ -44,14 +44,6 @@ if (stockInfo.Id == 0) { BaseDal.Db.InsertNav(stockInfo).Include(x => x.Details).ExecuteCommand(); - //stockQuantityChangeRecords = _mapper.Map<List<Dt_StockQuantityChangeRecord>>(stockInfo.Details); - //stockQuantityChangeRecords.ForEach(x => - //{ - // x.PalleCode = stockInfo.PalletCode; - // x.BeforeQuantity = 0; - // x.ChangeQuantity = x.AfterQuantity - x.BeforeQuantity; - // x.ChangeType = StockChangeType.MaterielGroup.ObjToInt(); - //}); details = stockInfo.Details; } else @@ -67,19 +59,7 @@ } - //stockQuantityChangeRecords = _mapper.Map<List<Dt_StockQuantityChangeRecord>>(stockInfo.Details); - //int index = 0; - //stockQuantityChangeRecords.ForEach(x => - //{ - // x.PalleCode = stockInfo.PalletCode; - // x.BeforeQuantity = 0; - // x.ChangeQuantity = x.AfterQuantity - x.BeforeQuantity; - // x.ChangeType = StockChangeType.MaterielGroup.ObjToInt(); - // x.StockDetailId = - // index++; - //}); } - //_stockQuantityChangeRecordRepository.AddData(stockQuantityChangeRecords); stockInfo.Details = details; _recordService.StockQuantityChangeRecordService.AddStockChangeRecord(stockInfo, stockInfo.Details, beforeQuantity, stockInfo.Details.Sum(x => x.StockQuantity) + beforeQuantity, StockChangeType.MaterielGroup); } -- Gitblit v1.9.3