ソースを参照

1.修改日志记录 PackInfoApplyAppService.cs --- ConfirmProductApply (确认包装成品入库数量) 日志记录逻辑

klzhangweiya 1 年間 前
コミット
a62b1eb001

+ 11 - 5
src_0nline/ShwasherSys/ShwasherSys.Application/PackageInfo/PackageApplysApplicationService.cs

@@ -826,6 +826,10 @@ namespace ShwasherSys.PackageInfo
                 currentStore.TimeLastMod = date;
                 currentStore.UserIDLastMod = AbpSession.UserName;
                 await FinshedCurrentStoreRepository.UpdateAsync(currentStore);
+                BusinessLogTypeEnum.Package.WriteLog(LogRepository, "半成品包装",
+                    $"确认成品入库数量U[{entity.Id}-{currentStore.Quantity}-{entity.ActualPackageCount}-{entity.PackageSpecification}]",
+                    entity.ProductionOrderNo, currentStore.CurrentProductStoreHouseNo, entity.ProductNo, entity.StoreLocationNo);
+
             }
             else
             {
@@ -837,14 +841,16 @@ namespace ShwasherSys.PackageInfo
                 currentStore.Quantity = entity.ActualPackageCount * entity.PackageSpecification;
                 currentStore.FreezeQuantity = 0;
                 await FinshedCurrentStoreRepository.InsertAsync(currentStore);
+                BusinessLogTypeEnum.Package.WriteLog(LogRepository, "半成品包装",
+                    $"确认成品入库数量ADD[{entity.Id}-{currentStore.Quantity}-{entity.ActualPackageCount}-{entity.PackageSpecification}]",
+                    entity.ProductionOrderNo, currentStore.CurrentProductStoreHouseNo, entity.ProductNo, entity.StoreLocationNo);
+
             }
 
             await FinshedEnterStoreRepository.UpdateAsync(entity);
-            BusinessLogTypeEnum.Package.WriteLog(LogRepository, "半成品包装",
-                $"确认成品入库数量[{entity.Id}]",
-                entity.ProductionOrderNo, currentStore.CurrentProductStoreHouseNo, entity.ProductNo,entity.StoreLocationNo);
-           
-            
+            // BusinessLogTypeEnum.Package.WriteLog(LogRepository, "半成品包装",
+            //     $"确认成品入库数量[{entity.Id}]",
+            //     entity.ProductionOrderNo, currentStore.CurrentProductStoreHouseNo, entity.ProductNo,entity.StoreLocationNo);
         }
         
         /// <summary>